Class MethodMetadataReadingVisitor

java.lang.Object
org.springframework.asm.MethodVisitor
org.grails.asm.MethodMetadataReadingVisitor
All Implemented Interfaces:
org.springframework.core.type.AnnotatedTypeMetadata, org.springframework.core.type.MethodMetadata

@Deprecated public class MethodMetadataReadingVisitor extends org.springframework.asm.MethodVisitor implements org.springframework.core.type.MethodMetadata
Deprecated.
As of Spring Framework 5.2, this class and related classes in this package have been replaced by SimpleAnnotationMetadataReadingVisitor and related classes for internal use within the framework.
ASM method visitor which looks for the annotations defined on a method, exposing them through the MethodMetadata 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:
3.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
    Deprecated.
     
    protected final org.springframework.util.LinkedMultiValueMap<String,org.springframework.core.annotation.AnnotationAttributes>
    Deprecated.
     
    protected final ClassLoader
    Deprecated.
     
    protected final String
    Deprecated.
     
    protected final Map<String,Set<String>>
    Deprecated.
     
    protected final Set<org.springframework.core.type.MethodMetadata>
    Deprecated.
     
    protected final String
    Deprecated.
     
    protected final String
    Deprecated.
     

    Fields inherited from class org.springframework.asm.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Constructor
    Description
    MethodMetadataReadingVisitor(String methodName, int access, String declaringClassName, String returnTypeName, ClassLoader classLoader, Set<org.springframework.core.type.MethodMetadata> methodMetadataSet)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.util.MultiValueMap<String,Object>
    getAllAnnotationAttributes(String annotationName, boolean classValuesAsString)
    Deprecated.
     
    org.springframework.core.annotation.AnnotationAttributes
    getAnnotationAttributes(String annotationName, boolean classValuesAsString)
    Deprecated.
     
    org.springframework.core.annotation.MergedAnnotations
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    isAnnotated(String annotationName)
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    org.springframework.asm.AnnotationVisitor
    visitAnnotation(String desc, boolean visible)
    Deprecated.
     

    Methods inherited from class org.springframework.asm.MethodVisitor

    getDelegate, visitAnnotableParameterCount, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.type.AnnotatedTypeMetadata

    getAllAnnotationAttributes, getAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributes
  • Field Details

    • methodName

      protected final String methodName
      Deprecated.
    • access

      protected final int access
      Deprecated.
    • declaringClassName

      protected final String declaringClassName
      Deprecated.
    • returnTypeName

      protected final String returnTypeName
      Deprecated.
    • classLoader

      @Nullable protected final ClassLoader classLoader
      Deprecated.
    • methodMetadataSet

      protected final Set<org.springframework.core.type.MethodMetadata> methodMetadataSet
      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.
  • Constructor Details

    • MethodMetadataReadingVisitor

      public MethodMetadataReadingVisitor(String methodName, int access, String declaringClassName, String returnTypeName, @Nullable ClassLoader classLoader, Set<org.springframework.core.type.MethodMetadata> methodMetadataSet)
      Deprecated.
  • Method Details

    • getAnnotations

      public org.springframework.core.annotation.MergedAnnotations getAnnotations()
      Deprecated.
      Specified by:
      getAnnotations in interface org.springframework.core.type.AnnotatedTypeMetadata
    • visitAnnotation

      @Nullable public org.springframework.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
      Deprecated.
      Overrides:
      visitAnnotation in class org.springframework.asm.MethodVisitor
    • getMethodName

      public String getMethodName()
      Deprecated.
      Specified by:
      getMethodName in interface org.springframework.core.type.MethodMetadata
    • isAbstract

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

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

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

      public boolean isOverridable()
      Deprecated.
      Specified by:
      isOverridable in interface org.springframework.core.type.MethodMetadata
    • isAnnotated

      public boolean isAnnotated(String annotationName)
      Deprecated.
      Specified by:
      isAnnotated in interface org.springframework.core.type.AnnotatedTypeMetadata
    • 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
    • getDeclaringClassName

      public String getDeclaringClassName()
      Deprecated.
      Specified by:
      getDeclaringClassName in interface org.springframework.core.type.MethodMetadata
    • getReturnTypeName

      public String getReturnTypeName()
      Deprecated.
      Specified by:
      getReturnTypeName in interface org.springframework.core.type.MethodMetadata