|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AnnotationMetadata
Interface that defines abstract access to the annotations of a specific class, in a form that does not require that class to be loaded yet.
StandardAnnotationMetadata,
MetadataReader.getAnnotationMetadata()| Method Summary | |
|---|---|
java.util.Set<MethodMetadata> |
getAnnotatedMethods()
Retrieve the method metadata for all methods that are annotated with at least one annotation type. |
java.util.Set<MethodMetadata> |
getAnnotatedMethods(java.lang.String annotationType)
Retrieve the method metadata for all methods that have the given annotation type. |
java.util.Map<java.lang.String,java.lang.Object> |
getAnnotationAttributes(java.lang.String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e. |
java.util.Set<java.lang.String> |
getAnnotationTypes()
Return the names of all annotation types defined on the underlying class. |
java.util.Set<java.lang.String> |
getMetaAnnotationTypes(java.lang.String annotationType)
Return the names of all meta-annotation types defined on the given annotation type of the underlying class. |
boolean |
hasAnnotation(java.lang.String annotationType)
Determine whether the underlying class has an annotation of the given type defined. |
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. |
| Methods inherited from interface org.springframework.core.type.ClassMetadata |
|---|
getClassName, getEnclosingClassName, getInterfaceNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isConcrete, isFinal, isIndependent, isInterface |
| Method Detail |
|---|
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 for
boolean hasAnnotation(java.lang.String annotationType)
annotationType - the annotation type to look for
boolean hasMetaAnnotation(java.lang.String metaAnnotationType)
metaAnnotationType - the meta-annotation type to look for
java.util.Map<java.lang.String,java.lang.Object> getAnnotationAttributes(java.lang.String annotationType)
annotationType - the annotation type to look for
null if no matching annotation is defined.java.util.Set<MethodMetadata> getAnnotatedMethods()
MethodMetadata for methods that have annotations.
The return value will be an empty set if no annotated methods are found.java.util.Set<MethodMetadata> getAnnotatedMethods(java.lang.String annotationType)
annotationType - the annotation type to look for
MethodMetadata for methods that have a matching
annotation. The return value will be an empty set if no methods match
the annotation type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||