|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.asm.MethodAdapter
org.springframework.core.type.classreading.MethodMetadataReadingVisitor
final class MethodMetadataReadingVisitor
ASM method visitor which looks for the annotations defined on the method,
exposing them through the MethodMetadata
interface.
| Field Summary | |
|---|---|
private int |
access
|
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
attributeMap
|
private java.lang.ClassLoader |
classLoader
|
private java.lang.String |
declaringClassName
|
private MultiValueMap<java.lang.String,MethodMetadata> |
methodMetadataMap
|
private java.lang.String |
name
|
| Fields inherited from class org.objectweb.asm.MethodAdapter |
|---|
mv |
| Constructor Summary | |
|---|---|
MethodMetadataReadingVisitor(java.lang.String name,
int access,
java.lang.String declaringClassName,
java.lang.ClassLoader classLoader,
MultiValueMap<java.lang.String,MethodMetadata> methodMetadataMap)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAnnotationAttributes(java.lang.String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e. |
java.lang.String |
getDeclaringClassName()
Return the fully-qualified name of the class that declares this method. |
java.lang.String |
getMethodName()
Return the name of the method. |
boolean |
isAnnotated(java.lang.String annotationType)
Determine whether the underlying method has an annotation or meta-annotation of the given type defined. |
boolean |
isFinal()
Return whether the underlying method is marked as 'final'. |
boolean |
isOverridable()
Return whether the underlying method is overridable, i.e. |
boolean |
isStatic()
Return whether the underlying method is declared as 'static'. |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc,
boolean visible)
|
| Methods inherited from class org.objectweb.asm.MethodAdapter |
|---|
visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String name
private final int access
private java.lang.String declaringClassName
private final java.lang.ClassLoader classLoader
private final MultiValueMap<java.lang.String,MethodMetadata> methodMetadataMap
private final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> attributeMap
| Constructor Detail |
|---|
public MethodMetadataReadingVisitor(java.lang.String name,
int access,
java.lang.String declaringClassName,
java.lang.ClassLoader classLoader,
MultiValueMap<java.lang.String,MethodMetadata> methodMetadataMap)
| Method Detail |
|---|
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc,
boolean visible)
visitAnnotation in interface org.objectweb.asm.MethodVisitorvisitAnnotation in class org.objectweb.asm.MethodAdapterpublic java.lang.String getMethodName()
MethodMetadata
getMethodName in interface MethodMetadatapublic boolean isStatic()
MethodMetadata
isStatic in interface MethodMetadatapublic boolean isFinal()
MethodMetadata
isFinal in interface MethodMetadatapublic boolean isOverridable()
MethodMetadata
isOverridable in interface MethodMetadatapublic boolean isAnnotated(java.lang.String annotationType)
MethodMetadata
isAnnotated in interface MethodMetadataannotationType - the annotation type to look for
public java.util.Map<java.lang.String,java.lang.Object> getAnnotationAttributes(java.lang.String annotationType)
MethodMetadata
getAnnotationAttributes in interface MethodMetadataannotationType - the annotation type to look for
null if no matching annotation is defined.public java.lang.String getDeclaringClassName()
MethodMetadata
getDeclaringClassName in interface MethodMetadata
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||