@java.lang.Deprecated class AnnotationMetadataReadingVisitor extends ClassMetadataReadingVisitor implements org.springframework.core.type.AnnotationMetadata
ASM class visitor which looks for the class name and implemented types as well as for the annotations defined on the class, exposing them through the org.springframework.core.type.AnnotationMetadata interface.
Note: This class was ported to Grails 7 from Spring Framework 5.3 as it was removed in Spring 6 without a public replacement.
AnnotationMetadataReadingVisitor
.Modifiers | Name | Description |
---|---|---|
protected java.util.Set<java.lang.String> |
annotationSet |
|
protected org.springframework.util.LinkedMultiValueMap<java.lang.String, org.springframework.core.annotation.AnnotationAttributes> |
attributesMap |
Declared as a org.springframework.util.LinkedMultiValueMap instead of a org.springframework.util.MultiValueMap to ensure that the hierarchical ordering of the entries is preserved. |
protected java.lang.ClassLoader |
classLoader |
|
protected java.util.Map<java.lang.String, java.util.Set<java.lang.String>> |
metaAnnotationMap |
|
protected java.util.Set<org.springframework.core.type.MethodMetadata> |
methodMetadataSet |
Constructor and description |
---|
AnnotationMetadataReadingVisitor(java.lang.ClassLoader classLoader) |
Type Params | Return Type | Name and description |
---|---|---|
|
org.springframework.util.MultiValueMap<java.lang.String, java.lang.Object> |
getAllAnnotationAttributes(java.lang.String annotationName, boolean classValuesAsString) |
|
java.util.Set<org.springframework.core.type.MethodMetadata> |
getAnnotatedMethods(java.lang.String annotationName) |
|
org.springframework.core.annotation.AnnotationAttributes |
getAnnotationAttributes(java.lang.String annotationName, boolean classValuesAsString) |
|
java.util.Set<java.lang.String> |
getAnnotationTypes() |
|
org.springframework.core.annotation.MergedAnnotations |
getAnnotations() |
|
java.util.Set<org.springframework.core.type.MethodMetadata> |
getDeclaredMethods() |
|
java.util.Set<java.lang.String> |
getMetaAnnotationTypes(java.lang.String annotationName) |
|
boolean |
hasAnnotatedMethods(java.lang.String annotationName) |
|
boolean |
hasAnnotation(java.lang.String annotationName) |
|
boolean |
hasMetaAnnotation(java.lang.String metaAnnotationType) |
|
boolean |
isAnnotated(java.lang.String annotationName) |
|
org.springframework.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc, boolean visible) |
|
org.springframework.asm.MethodVisitor |
visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions) |
Methods inherited from class | Name |
---|---|
class ClassMetadataReadingVisitor |
getClassName, getEnclosingClassName, getInterfaceNames, getMemberClassNames, getSuperClassName, hasEnclosingClass, isAbstract, isAnnotation, isFinal, isIndependent, isInterface, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource |
Declared as a org.springframework.util.LinkedMultiValueMap instead of a org.springframework.util.MultiValueMap to ensure that the hierarchical ordering of the entries is preserved.