Example usage for Java java.lang.reflect AnnotatedElement fields, constructors, methods, implement or subclass
The text is from its open source code.
T | getAnnotation(Class Returns this element's annotation for the specified type if such an annotation is present, else null. |
Annotation[] | getAnnotations() Returns annotations that are present on this element. |
T[] | getAnnotationsByType(Class Returns annotations that are associated with this element. |
Class> | getClass() Returns the runtime class of this Object . |
T | getDeclaredAnnotation(Class Returns this element's annotation for the specified type if such an annotation is directly present, else null. |
Annotation[] | getDeclaredAnnotations() Returns annotations that are directly present on this element. |
boolean | isAnnotationPresent(Class extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false. |
String | toString() Returns a string representation of the object. |