@java.lang.Deprecated public 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 |
Fields inherited from class | Fields |
---|---|
class ClassMetadataReadingVisitor |
className, enclosingClassName, independentInnerClass, interfaces, isAbstract, isAnnotation, isFinal, isInterface, memberClassNames, superClassName |
Constructor and description |
---|
AnnotationMetadataReadingVisitor(java.lang.ClassLoader classLoader) |
Type Params | Return Type | Name and description |
---|---|---|
|
public org.springframework.util.MultiValueMap<java.lang.String, java.lang.Object> |
getAllAnnotationAttributes(java.lang.String annotationName, boolean classValuesAsString) |
|
public java.util.Set<org.springframework.core.type.MethodMetadata> |
getAnnotatedMethods(java.lang.String annotationName) |
|
public org.springframework.core.annotation.AnnotationAttributes |
getAnnotationAttributes(java.lang.String annotationName, boolean classValuesAsString) |
|
public java.util.Set<java.lang.String> |
getAnnotationTypes() |
|
public org.springframework.core.annotation.MergedAnnotations |
getAnnotations() |
|
public java.util.Set<org.springframework.core.type.MethodMetadata> |
getDeclaredMethods() |
|
public java.util.Set<java.lang.String> |
getMetaAnnotationTypes(java.lang.String annotationName) |
|
public boolean |
hasAnnotatedMethods(java.lang.String annotationName) |
|
public boolean |
hasAnnotation(java.lang.String annotationName) |
|
public boolean |
hasMetaAnnotation(java.lang.String metaAnnotationType) |
|
public boolean |
isAnnotated(java.lang.String annotationName) |
|
public org.springframework.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc, boolean visible) |
|
public 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.