Example usage for Java org.springframework.core.type AnnotationMetadata fields, constructors, methods, implement or subclass
The text is from its open source code.
MultiValueMap | getAllAnnotationAttributes(String annotationName) Retrieve all attributes of all annotations of the given type, if any (i.e. |
Set | getAnnotatedMethods(String annotationName) Retrieve the method metadata for all methods that are annotated (or meta-annotated) with the given annotation type. |
Map | getAnnotationAttributes(String annotationName) Retrieve the attributes of the annotation of the given type, if any (i.e. |
Map | getAnnotationAttributes(String annotationName, boolean classValuesAsString) Retrieve the attributes of the annotation of the given type, if any (i.e. |
Set | getAnnotationTypes() Get the fully qualified class names of all annotation types that are present on the underlying class. |
String | getClassName() Return the name of the underlying class. |
String[] | getInterfaceNames() Return the names of all interfaces that the underlying class implements, or an empty array if there are none. |
Set | getMetaAnnotationTypes(String annotationName) Get the fully qualified class names of all meta-annotation types that are present on the given annotation type on the underlying class. |
boolean | hasAnnotatedMethods(String annotationName) Determine whether the underlying class has any methods that are annotated (or meta-annotated) with the given annotation type. |
boolean | hasAnnotation(String annotationName) Determine whether an annotation of the given type is present on the underlying class. |
boolean | hasMetaAnnotation(String metaAnnotationName) Determine whether the underlying class has an annotation that is itself annotated with the meta-annotation of the given type. |
boolean | isAbstract() Return whether the underlying class is marked as abstract. |
boolean | isAnnotated(String annotationName) Determine whether the underlying element has an annotation or meta-annotation of the given type defined. |
boolean | isConcrete() Return whether the underlying class represents a concrete class, i.e. |
boolean | isIndependent() Determine whether the underlying class is independent, i.e. |
boolean | isInterface() Return whether the underlying class represents an interface. |