|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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
|
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'. |
AnnotationVisitor |
visitAnnotation(java.lang.String desc,
boolean visible)
|
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 AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
public java.lang.String getMethodName()
MethodMetadata
getMethodName
in interface MethodMetadata
public boolean isStatic()
MethodMetadata
isStatic
in interface MethodMetadata
public boolean isFinal()
MethodMetadata
isFinal
in interface MethodMetadata
public boolean isOverridable()
MethodMetadata
isOverridable
in interface MethodMetadata
public boolean isAnnotated(java.lang.String annotationType)
MethodMetadata
isAnnotated
in interface MethodMetadata
annotationType
- 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 MethodMetadata
annotationType
- 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 |