Java Reflection Annotation getAnnotation(Method m, Class annotationClass)

Here you can find the source of getAnnotation(Method m, Class annotationClass)

Description

get Annotation

License

Open Source License

Declaration

@SuppressWarnings({ "rawtypes", "unchecked" })
    public static Annotation getAnnotation(Method m, Class annotationClass) 

Method Source Code


//package com.java2s;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class Main {
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static Annotation getAnnotation(Method m, Class annotationClass) {
        return m.getAnnotation(annotationClass);
    }//  w w w .  j  a v  a  2  s  .com
}

Related

  1. getAnnotation(final Member member, final Class annotation)
  2. getAnnotation(final Method method, final Class annotationClass)
  3. getAnnotation(final Object obj, final Class annoType)
  4. getAnnotation(final Object object, final Class annotationClass)
  5. getAnnotation(Member m, Class annotationClass)
  6. getAnnotation(Method method, Class annotationType)
  7. getAnnotation(Method method, Class annotationClass)
  8. getAnnotation(Method method, Class annotationClass)
  9. getAnnotation(Method method, Class type)