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.
As of Spring Framework 5.2, this class has been replaced by SimpleAnnotationMetadataReadingVisitor for internal use within the framework, but there is no public replacement for AnnotationMetadataReadingVisitor.
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 Details

    • classLoader

      @Nullable protected final ClassLoader classLoader
      Deprecated.
    • annotationSet

      protected final Set<String> annotationSet
      Deprecated.
    • metaAnnotationMap

      protected final Map<String,Set<String>> metaAnnotationMap
      Deprecated.
    • attributesMap

      protected final org.springframework.util.LinkedMultiValueMap<String,org.springframework.core.annotation.AnnotationAttributes> attributesMap
      Deprecated.
      Declared as a LinkedMultiValueMap instead of a MultiValueMap to 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

      protected final Set<org.springframework.core.type.MethodMetadata> methodMetadataSet
      Deprecated.
  • Constructor Details

    • AnnotationMetadataReadingVisitor

      public AnnotationMetadataReadingVisitor(@Nullable ClassLoader classLoader)
      Deprecated.
  • Method Details

    • getAnnotations

      public org.springframework.core.annotation.MergedAnnotations getAnnotations()
      Deprecated.
      Specified by:
      getAnnotations in interface org.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

      public Set<String> getAnnotationTypes()
      Deprecated.
      Specified by:
      getAnnotationTypes in interface org.springframework.core.type.AnnotationMetadata
    • getMetaAnnotationTypes

      public Set<String> getMetaAnnotationTypes(String annotationName)
      Deprecated.
      Specified by:
      getMetaAnnotationTypes in interface org.springframework.core.type.AnnotationMetadata
    • hasMetaAnnotation

      public boolean hasMetaAnnotation(String metaAnnotationType)
      Deprecated.
      Specified by:
      hasMetaAnnotation in interface org.springframework.core.type.AnnotationMetadata
    • isAnnotated

      public boolean isAnnotated(String annotationName)
      Deprecated.
      Specified by:
      isAnnotated in interface org.springframework.core.type.AnnotatedTypeMetadata
    • hasAnnotation

      public boolean hasAnnotation(String annotationName)
      Deprecated.
      Specified by:
      hasAnnotation in interface org.springframework.core.type.AnnotationMetadata
    • getAnnotationAttributes

      @Nullable public org.springframework.core.annotation.AnnotationAttributes getAnnotationAttributes(String annotationName, boolean classValuesAsString)
      Deprecated.
      Specified by:
      getAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata
    • getAllAnnotationAttributes

      @Nullable public org.springframework.util.MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName, boolean classValuesAsString)
      Deprecated.
      Specified by:
      getAllAnnotationAttributes in interface org.springframework.core.type.AnnotatedTypeMetadata
    • hasAnnotatedMethods

      public boolean hasAnnotatedMethods(String annotationName)
      Deprecated.
      Specified by:
      hasAnnotatedMethods in interface org.springframework.core.type.AnnotationMetadata
    • getAnnotatedMethods

      public Set<org.springframework.core.type.MethodMetadata> getAnnotatedMethods(String annotationName)
      Deprecated.
      Specified by:
      getAnnotatedMethods in interface org.springframework.core.type.AnnotationMetadata
    • getDeclaredMethods

      public Set<org.springframework.core.type.MethodMetadata> getDeclaredMethods()
      Deprecated.
      Specified by:
      getDeclaredMethods in interface org.springframework.core.type.AnnotationMetadata
    • visit

      public void visit(int version, int access, String name, String signature, @Nullable String supername, String[] interfaces)
      Deprecated.
      Overrides:
      visit in class org.springframework.asm.ClassVisitor
    • visitOuterClass

      public void visitOuterClass(String owner, String name, String desc)
      Deprecated.
      Overrides:
      visitOuterClass in class org.springframework.asm.ClassVisitor
    • visitInnerClass

      public void visitInnerClass(String name, @Nullable String outerName, String innerName, int access)
      Deprecated.
      Overrides:
      visitInnerClass in class org.springframework.asm.ClassVisitor
    • visitSource

      public void visitSource(String source, String debug)
      Deprecated.
      Overrides:
      visitSource in class org.springframework.asm.ClassVisitor
    • visitAttribute

      public void visitAttribute(org.springframework.asm.Attribute attr)
      Deprecated.
      Overrides:
      visitAttribute in class org.springframework.asm.ClassVisitor
    • visitField

      public org.springframework.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
      Deprecated.
      Overrides:
      visitField in class org.springframework.asm.ClassVisitor
    • visitEnd

      public void visitEnd()
      Deprecated.
      Overrides:
      visitEnd in class org.springframework.asm.ClassVisitor
    • getClassName

      public String getClassName()
      Deprecated.
      Specified by:
      getClassName in interface org.springframework.core.type.ClassMetadata
    • isInterface

      public boolean isInterface()
      Deprecated.
      Specified by:
      isInterface in interface org.springframework.core.type.ClassMetadata
    • isAnnotation

      public boolean isAnnotation()
      Deprecated.
      Specified by:
      isAnnotation in interface org.springframework.core.type.ClassMetadata
    • isAbstract

      public boolean isAbstract()
      Deprecated.
      Specified by:
      isAbstract in interface org.springframework.core.type.ClassMetadata
    • isFinal

      public boolean isFinal()
      Deprecated.
      Specified by:
      isFinal in interface org.springframework.core.type.ClassMetadata
    • isIndependent

      public boolean isIndependent()
      Deprecated.
      Specified by:
      isIndependent in interface org.springframework.core.type.ClassMetadata
    • hasEnclosingClass

      public boolean hasEnclosingClass()
      Deprecated.
      Specified by:
      hasEnclosingClass in interface org.springframework.core.type.ClassMetadata
    • getEnclosingClassName

      @Nullable public String getEnclosingClassName()
      Deprecated.
      Specified by:
      getEnclosingClassName in interface org.springframework.core.type.ClassMetadata
    • getSuperClassName

      @Nullable public String getSuperClassName()
      Deprecated.
      Specified by:
      getSuperClassName in interface org.springframework.core.type.ClassMetadata
    • getInterfaceNames

      public String[] getInterfaceNames()
      Deprecated.
      Specified by:
      getInterfaceNames in interface org.springframework.core.type.ClassMetadata
    • getMemberClassNames

      public String[] getMemberClassNames()
      Deprecated.
      Specified by:
      getMemberClassNames in interface org.springframework.core.type.ClassMetadata