@java.lang.Deprecated public class MethodMetadataReadingVisitor extends org.springframework.asm.MethodVisitor implements org.springframework.core.type.MethodMetadata
ASM method visitor which looks for the annotations defined on a method, exposing them through the org.springframework.core.type.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.
Modifiers | Name | Description |
---|---|---|
protected int |
access |
|
protected org.springframework.util.LinkedMultiValueMap<java.lang.String, org.springframework.core.annotation.AnnotationAttributes> |
attributesMap |
|
protected java.lang.ClassLoader |
classLoader |
|
protected java.lang.String |
declaringClassName |
|
protected java.util.Map<java.lang.String, java.util.Set<java.lang.String>> |
metaAnnotationMap |
|
protected java.util.Set<org.springframework.core.type.MethodMetadata> |
methodMetadataSet |
|
protected java.lang.String |
methodName |
|
protected java.lang.String |
returnTypeName |
Constructor and description |
---|
MethodMetadataReadingVisitor(java.lang.String methodName, int access, java.lang.String declaringClassName, java.lang.String returnTypeName, java.lang.ClassLoader classLoader, java.util.Set<org.springframework.core.type.MethodMetadata> methodMetadataSet) |
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 org.springframework.core.annotation.AnnotationAttributes |
getAnnotationAttributes(java.lang.String annotationName, boolean classValuesAsString) |
|
public org.springframework.core.annotation.MergedAnnotations |
getAnnotations() |
|
public java.lang.String |
getDeclaringClassName() |
|
public java.lang.String |
getMethodName() |
|
public java.lang.String |
getReturnTypeName() |
|
public boolean |
isAbstract() |
|
public boolean |
isAnnotated(java.lang.String annotationName) |
|
public boolean |
isFinal() |
|
public boolean |
isOverridable() |
|
public boolean |
isStatic() |
|
public org.springframework.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc, boolean visible) |
Methods inherited from class | Name |
---|---|
class org.springframework.asm.MethodVisitor |
org.springframework.asm.MethodVisitor#visitFrame(int, int, [Ljava.lang.Object;, int, [Ljava.lang.Object;), org.springframework.asm.MethodVisitor#visitAnnotation(java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitEnd(), org.springframework.asm.MethodVisitor#visitCode(), org.springframework.asm.MethodVisitor#visitFieldInsn(int, java.lang.String, java.lang.String, java.lang.String), org.springframework.asm.MethodVisitor#visitInsn(int), org.springframework.asm.MethodVisitor#visitMaxs(int, int), org.springframework.asm.MethodVisitor#visitVarInsn(int, int), org.springframework.asm.MethodVisitor#visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String), org.springframework.asm.MethodVisitor#visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitTypeInsn(int, java.lang.String), org.springframework.asm.MethodVisitor#visitIntInsn(int, int), org.springframework.asm.MethodVisitor#visitLdcInsn(java.lang.Object), org.springframework.asm.MethodVisitor#visitParameter(java.lang.String, int), org.springframework.asm.MethodVisitor#visitAnnotationDefault(), org.springframework.asm.MethodVisitor#visitTypeAnnotation(int, org.springframework.asm.TypePath, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitAnnotableParameterCount(int, boolean), org.springframework.asm.MethodVisitor#visitParameterAnnotation(int, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitAttribute(org.springframework.asm.Attribute), org.springframework.asm.MethodVisitor#visitInvokeDynamicInsn(java.lang.String, java.lang.String, org.springframework.asm.Handle, [Ljava.lang.Object;), org.springframework.asm.MethodVisitor#visitJumpInsn(int, org.springframework.asm.Label), org.springframework.asm.MethodVisitor#visitLabel(org.springframework.asm.Label), org.springframework.asm.MethodVisitor#visitIincInsn(int, int), org.springframework.asm.MethodVisitor#visitTableSwitchInsn(int, int, org.springframework.asm.Label, [Lorg.springframework.asm.Label;), org.springframework.asm.MethodVisitor#visitLookupSwitchInsn(org.springframework.asm.Label, [I, [Lorg.springframework.asm.Label;), org.springframework.asm.MethodVisitor#visitMultiANewArrayInsn(java.lang.String, int), org.springframework.asm.MethodVisitor#visitInsnAnnotation(int, org.springframework.asm.TypePath, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitTryCatchBlock(org.springframework.asm.Label, org.springframework.asm.Label, org.springframework.asm.Label, java.lang.String), org.springframework.asm.MethodVisitor#visitTryCatchAnnotation(int, org.springframework.asm.TypePath, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitLocalVariable(java.lang.String, java.lang.String, java.lang.String, org.springframework.asm.Label, org.springframework.asm.Label, int), org.springframework.asm.MethodVisitor#visitLocalVariableAnnotation(int, org.springframework.asm.TypePath, [Lorg.springframework.asm.Label;, [Lorg.springframework.asm.Label;, [I, java.lang.String, boolean), org.springframework.asm.MethodVisitor#visitLineNumber(int, org.springframework.asm.Label), org.springframework.asm.MethodVisitor#getDelegate(), org.springframework.asm.MethodVisitor#wait(long, int), org.springframework.asm.MethodVisitor#wait(), org.springframework.asm.MethodVisitor#wait(long), org.springframework.asm.MethodVisitor#equals(java.lang.Object), org.springframework.asm.MethodVisitor#toString(), org.springframework.asm.MethodVisitor#hashCode(), org.springframework.asm.MethodVisitor#getClass(), org.springframework.asm.MethodVisitor#notify(), org.springframework.asm.MethodVisitor#notifyAll() |