Package org.grails.asm
Class AnnotationMetadataReadingVisitor
java.lang.Object
org.springframework.asm.ClassVisitor
org.grails.asm.AnnotationMetadataReadingVisitor
- All Implemented Interfaces:
org.springframework.core.type.AnnotatedTypeMetadata,org.springframework.core.type.AnnotationMetadata,org.springframework.core.type.ClassMetadata
@Deprecated
public class AnnotationMetadataReadingVisitor
extends org.springframework.asm.ClassVisitor
implements org.springframework.core.type.AnnotationMetadata
Deprecated.
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
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.
- Since:
- 2.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.protected final org.springframework.util.LinkedMultiValueMap<String,org.springframework.core.annotation.AnnotationAttributes> Deprecated.Declared as aLinkedMultiValueMapinstead of aMultiValueMapto ensure that the hierarchical ordering of the entries is preserved.protected final ClassLoaderDeprecated.Deprecated.protected final Set<org.springframework.core.type.MethodMetadata>Deprecated.Fields inherited from class org.springframework.asm.ClassVisitor
api, cv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllAnnotationAttributes(String annotationName, boolean classValuesAsString) Deprecated.Set<org.springframework.core.type.MethodMetadata>getAnnotatedMethods(String annotationName) Deprecated.org.springframework.core.annotation.AnnotationAttributesgetAnnotationAttributes(String annotationName, boolean classValuesAsString) Deprecated.org.springframework.core.annotation.MergedAnnotationsDeprecated.Deprecated.Deprecated.Set<org.springframework.core.type.MethodMetadata>Deprecated.Deprecated.String[]Deprecated.String[]Deprecated.getMetaAnnotationTypes(String annotationName) Deprecated.Deprecated.booleanhasAnnotatedMethods(String annotationName) Deprecated.booleanhasAnnotation(String annotationName) Deprecated.booleanDeprecated.booleanhasMetaAnnotation(String metaAnnotationType) Deprecated.booleanDeprecated.booleanisAnnotated(String annotationName) Deprecated.booleanDeprecated.booleanisFinal()Deprecated.booleanDeprecated.booleanDeprecated.voidvisit(int version, int access, String name, String signature, String supername, String[] interfaces) Deprecated.org.springframework.asm.AnnotationVisitorvisitAnnotation(String desc, boolean visible) Deprecated.voidvisitAttribute(org.springframework.asm.Attribute attr) Deprecated.voidvisitEnd()Deprecated.org.springframework.asm.FieldVisitorvisitField(int access, String name, String desc, String signature, Object value) Deprecated.voidvisitInnerClass(String name, String outerName, String innerName, int access) Deprecated.org.springframework.asm.MethodVisitorvisitMethod(int access, String name, String desc, String signature, String[] exceptions) Deprecated.voidvisitOuterClass(String owner, String name, String desc) Deprecated.voidvisitSource(String source, String debug) Deprecated.Methods inherited from class org.springframework.asm.ClassVisitor
getDelegate, visitModule, visitNestHost, visitNestMember, visitPermittedSubclass, visitRecordComponent, visitTypeAnnotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.type.AnnotatedTypeMetadata
getAllAnnotationAttributes, getAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributesMethods inherited from interface org.springframework.core.type.ClassMetadata
getClassName, getEnclosingClassName, getInterfaceNames, getMemberClassNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isAnnotation, isConcrete, isFinal, isIndependent, isInterface
-
Field Details
-
classLoader
Deprecated. -
annotationSet
Deprecated. -
metaAnnotationMap
Deprecated. -
attributesMap
protected final org.springframework.util.LinkedMultiValueMap<String,org.springframework.core.annotation.AnnotationAttributes> attributesMapDeprecated.Declared as aLinkedMultiValueMapinstead of aMultiValueMapto ensure that the hierarchical ordering of the entries is preserved.- See Also:
-
AnnotationReadingVisitorUtils.getMergedAnnotationAttributes(org.springframework.util.LinkedMultiValueMap<java.lang.String, org.springframework.core.annotation.AnnotationAttributes>, java.util.Map<java.lang.String, java.util.Set<java.lang.String>>, java.lang.String)
-
methodMetadataSet
Deprecated.
-
-
Constructor Details
-
AnnotationMetadataReadingVisitor
Deprecated.
-
-
Method Details
-
getAnnotations
public org.springframework.core.annotation.MergedAnnotations getAnnotations()Deprecated.- Specified by:
getAnnotationsin interfaceorg.springframework.core.type.AnnotatedTypeMetadata
-
visitMethod
public org.springframework.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Deprecated. -
visitAnnotation
@Nullable public org.springframework.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible) Deprecated. -
getAnnotationTypes
Deprecated.- Specified by:
getAnnotationTypesin interfaceorg.springframework.core.type.AnnotationMetadata
-
getMetaAnnotationTypes
Deprecated.- Specified by:
getMetaAnnotationTypesin interfaceorg.springframework.core.type.AnnotationMetadata
-
hasMetaAnnotation
Deprecated.- Specified by:
hasMetaAnnotationin interfaceorg.springframework.core.type.AnnotationMetadata
-
isAnnotated
Deprecated.- Specified by:
isAnnotatedin interfaceorg.springframework.core.type.AnnotatedTypeMetadata
-
hasAnnotation
Deprecated.- Specified by:
hasAnnotationin interfaceorg.springframework.core.type.AnnotationMetadata
-
getAnnotationAttributes
@Nullable public org.springframework.core.annotation.AnnotationAttributes getAnnotationAttributes(String annotationName, boolean classValuesAsString) Deprecated.- Specified by:
getAnnotationAttributesin interfaceorg.springframework.core.type.AnnotatedTypeMetadata
-
getAllAnnotationAttributes
@Nullable public org.springframework.util.MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName, boolean classValuesAsString) Deprecated.- Specified by:
getAllAnnotationAttributesin interfaceorg.springframework.core.type.AnnotatedTypeMetadata
-
hasAnnotatedMethods
Deprecated.- Specified by:
hasAnnotatedMethodsin interfaceorg.springframework.core.type.AnnotationMetadata
-
getAnnotatedMethods
Deprecated.- Specified by:
getAnnotatedMethodsin interfaceorg.springframework.core.type.AnnotationMetadata
-
getDeclaredMethods
Deprecated.- Specified by:
getDeclaredMethodsin interfaceorg.springframework.core.type.AnnotationMetadata
-
visit
public void visit(int version, int access, String name, String signature, @Nullable String supername, String[] interfaces) Deprecated.- Overrides:
visitin classorg.springframework.asm.ClassVisitor
-
visitOuterClass
Deprecated.- Overrides:
visitOuterClassin classorg.springframework.asm.ClassVisitor
-
visitInnerClass
Deprecated.- Overrides:
visitInnerClassin classorg.springframework.asm.ClassVisitor
-
visitSource
Deprecated.- Overrides:
visitSourcein classorg.springframework.asm.ClassVisitor
-
visitAttribute
public void visitAttribute(org.springframework.asm.Attribute attr) Deprecated.- Overrides:
visitAttributein classorg.springframework.asm.ClassVisitor
-
visitField
public org.springframework.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value) Deprecated.- Overrides:
visitFieldin classorg.springframework.asm.ClassVisitor
-
visitEnd
public void visitEnd()Deprecated.- Overrides:
visitEndin classorg.springframework.asm.ClassVisitor
-
getClassName
Deprecated.- Specified by:
getClassNamein interfaceorg.springframework.core.type.ClassMetadata
-
isInterface
public boolean isInterface()Deprecated.- Specified by:
isInterfacein interfaceorg.springframework.core.type.ClassMetadata
-
isAnnotation
public boolean isAnnotation()Deprecated.- Specified by:
isAnnotationin interfaceorg.springframework.core.type.ClassMetadata
-
isAbstract
public boolean isAbstract()Deprecated.- Specified by:
isAbstractin interfaceorg.springframework.core.type.ClassMetadata
-
isFinal
public boolean isFinal()Deprecated.- Specified by:
isFinalin interfaceorg.springframework.core.type.ClassMetadata
-
isIndependent
public boolean isIndependent()Deprecated.- Specified by:
isIndependentin interfaceorg.springframework.core.type.ClassMetadata
-
hasEnclosingClass
public boolean hasEnclosingClass()Deprecated.- Specified by:
hasEnclosingClassin interfaceorg.springframework.core.type.ClassMetadata
-
getEnclosingClassName
Deprecated.- Specified by:
getEnclosingClassNamein interfaceorg.springframework.core.type.ClassMetadata
-
getSuperClassName
Deprecated.- Specified by:
getSuperClassNamein interfaceorg.springframework.core.type.ClassMetadata
-
getInterfaceNames
Deprecated.- Specified by:
getInterfaceNamesin interfaceorg.springframework.core.type.ClassMetadata
-
getMemberClassNames
Deprecated.- Specified by:
getMemberClassNamesin interfaceorg.springframework.core.type.ClassMetadata
-
AnnotationMetadataReadingVisitor.