public interface AnnotationMetadata extends ClassMetadata, AnnotatedTypeMetadata
StandardAnnotationMetadata, 
MetadataReader.getAnnotationMetadata(), 
AnnotatedTypeMetadata| Modifier and Type | Method and Description | 
|---|---|
| Set<MethodMetadata> | getAnnotatedMethods(String annotationName)Retrieve the method metadata for all methods that are annotated
 (or meta-annotated) with the given annotation type. | 
| default Set<String> | getAnnotationTypes()Get the fully qualified class names of all annotation types that
 are present on the underlying class. | 
| default Set<String> | 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. | 
| default boolean | hasAnnotatedMethods(String annotationName)Determine whether the underlying class has any methods that are
 annotated (or meta-annotated) with the given annotation type. | 
| default boolean | hasAnnotation(String annotationName)Determine whether an annotation of the given type is present on
 the underlying class. | 
| default boolean | hasMetaAnnotation(String metaAnnotationName)Determine whether the underlying class has an annotation that is itself
 annotated with the meta-annotation of the given type. | 
| static AnnotationMetadata | introspect(Class<?> type)Factory method to create a new  AnnotationMetadatainstance
 for the given class using standard reflection. | 
getClassName, getEnclosingClassName, getInterfaceNames, getMemberClassNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isAnnotation, isConcrete, isFinal, isIndependent, isInterfacegetAllAnnotationAttributes, getAllAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotations, isAnnotateddefault Set<String> getAnnotationTypes()
default Set<String> getMetaAnnotationTypes(String annotationName)
annotationName - the fully qualified class name of the meta-annotation
 type to look fordefault boolean hasAnnotation(String annotationName)
annotationName - the fully qualified class name of the annotation
 type to look fortrue if a matching annotation is presentdefault boolean hasMetaAnnotation(String metaAnnotationName)
metaAnnotationName - the fully qualified class name of the
 meta-annotation type to look fortrue if a matching meta-annotation is presentdefault boolean hasAnnotatedMethods(String annotationName)
annotationName - the fully qualified class name of the annotation
 type to look forSet<MethodMetadata> getAnnotatedMethods(String annotationName)
For any returned method, AnnotatedTypeMetadata.isAnnotated(java.lang.String) will
 return true for the given annotation type.
annotationName - the fully qualified class name of the annotation
 type to look forMethodMetadata for methods that have a matching
 annotation. The return value will be an empty set if no methods match
 the annotation type.static AnnotationMetadata introspect(Class<?> type)
AnnotationMetadata instance
 for the given class using standard reflection.type - the class to introspectAnnotationMetadata instance