public interface AnnotationMetadata extends ClassMetadata, AnnotatedTypeMetadata
StandardAnnotationMetadata
,
MetadataReader.getAnnotationMetadata()
,
AnnotatedTypeMetadata
Modifier and Type | Method and Description |
---|---|
java.util.Set<MethodMetadata> |
getAnnotatedMethods(java.lang.String annotationType)
Retrieve the method metadata for all methods that are annotated
(or meta-annotated) with the given annotation type.
|
java.util.Set<java.lang.String> |
getAnnotationTypes()
Return the names of all annotation types that are present on the
underlying class.
|
java.util.Set<java.lang.String> |
getMetaAnnotationTypes(java.lang.String annotationType)
Return the names of all meta-annotation types present on the
given annotation type on the underlying class.
|
boolean |
hasAnnotatedMethods(java.lang.String annotationType)
Determine whether the underlying class has any methods that are
annotated (or meta-annotated) with the given annotation type.
|
boolean |
hasAnnotation(java.lang.String annotationType)
Determine whether an annotation of the given type is present on
the underlying class.
|
boolean |
hasMetaAnnotation(java.lang.String metaAnnotationType)
Determine whether the underlying class has an annotation that is itself
annotated with the meta-annotation of the given type.
|
getClassName, getEnclosingClassName, getInterfaceNames, getMemberClassNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isAnnotation, isConcrete, isFinal, isIndependent, isInterface
getAllAnnotationAttributes, getAllAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, isAnnotated
java.util.Set<java.lang.String> getAnnotationTypes()
java.util.Set<java.lang.String> getMetaAnnotationTypes(java.lang.String annotationType)
annotationType
- the meta-annotation type to look forboolean hasAnnotation(java.lang.String annotationType)
annotationType
- the annotation type to look forboolean hasMetaAnnotation(java.lang.String metaAnnotationType)
metaAnnotationType
- the meta-annotation type to look forboolean hasAnnotatedMethods(java.lang.String annotationType)
java.util.Set<MethodMetadata> getAnnotatedMethods(java.lang.String annotationType)
For any returned method, AnnotatedTypeMetadata.isAnnotated(java.lang.String)
will
return true
for the given annotation type.
annotationType
- 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.