Java java.lang.reflect AnnotatedElement fields, constructors, methods, implement or subclass

Example usage for Java java.lang.reflect AnnotatedElement fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.reflect AnnotatedElement.

The text is from its open source code.

Method

TgetAnnotation(Class annotationClass)
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 annotationClass)
Returns annotations that are associated with this element.
ClassgetClass()
Returns the runtime class of this Object .
TgetDeclaredAnnotation(Class annotationClass)
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.
booleanisAnnotationPresent(Class annotationClass)
Returns true if an annotation for the specified type is present on this element, else false.
StringtoString()
Returns a string representation of the object.