Method Summary |
|
public static Annotation | getAnnotation(Class annotationType, Class target) Return the annotation with a specific name for a specific class.
Parameters: annotationType - the annotation class Parameters: target - the java.lang.Class object to find the annotation on. |
public static Annotation | getAnnotation(Class annotationType, Method method) Return the annotation with a specific name for a specific method.
Parameters: annotationType - the annotation class Parameters: method - the java.lang.refect.Method object to find the annotation on. |
public static Annotation | getAnnotation(Class annotationType, Constructor constructor) Return the annotation with a specific name for a specific constructor.
Parameters: annotationType - the annotation class Parameters: constructor - the java.lang.refect.Constructor object to find the annotation on. |
public static Annotation | getAnnotation(Class annotationType, Field field) Return the annotation with a specific name for a specific field.
Parameters: annotationType - the annotation class Parameters: field - the java.lang.reflect.Field object to find the annotation on. |
public static Annotation[] | getAnnotations(Class target) Return all the annotations for a specific class.
Parameters: target - the java.lang.Class object to find the annotations on. |
public static Annotation[] | getAnnotations(Method method) Return all the annotations for a specific method.
Parameters: method - the java.lang.reflect.Method object to find the annotations on. |
public static Annotation[] | getAnnotations(Constructor constructor) Return all the annotations for a specific constructor.
Parameters: constructor - the java.lang.reflect.Constructor object to find the annotations on. |
public static Annotation[] | getAnnotations(Field field) Return all the annotations for a specific field.
Parameters: field - the java.lang.reflect.Field object to find the annotations on. |
public static boolean | isAnnotationPresent(Class annotationType, Class target) Checks if an annotation is present at a specific class. |
public static boolean | isAnnotationPresent(Class annotationType, Method method) Checks if an annotation is present at a specific method. |
public static boolean | isAnnotationPresent(Class annotationType, Constructor constructor) Checks if an annotation is present at a specific method. |
public static boolean | isAnnotationPresent(Class annotationType, Field field) Checks if an annotation is present at a specific field. |