SimpleAnnotationMetadataReadingVisitor
and related classes for internal use within the framework.@Deprecated public class MethodMetadataReadingVisitor extends MethodVisitor implements MethodMetadata
MethodMetadata
interface.| Modifier and Type | Field and Description |
|---|---|
protected int |
access
Deprecated.
|
protected LinkedMultiValueMap<String,AnnotationAttributes> |
attributesMap
Deprecated.
|
protected ClassLoader |
classLoader
Deprecated.
|
protected String |
declaringClassName
Deprecated.
|
protected Map<String,Set<String>> |
metaAnnotationMap
Deprecated.
|
protected Set<MethodMetadata> |
methodMetadataSet
Deprecated.
|
protected String |
methodName
Deprecated.
|
protected String |
returnTypeName
Deprecated.
|
api, mv| Constructor and Description |
|---|
MethodMetadataReadingVisitor(String methodName,
int access,
String declaringClassName,
String returnTypeName,
ClassLoader classLoader,
Set<MethodMetadata> methodMetadataSet)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Deprecated.
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
AnnotationAttributes |
getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Deprecated.
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
MergedAnnotations |
getAnnotations()
Deprecated.
Return annotation details based on the direct annotations of the
underlying element.
|
String |
getDeclaringClassName()
Deprecated.
Get the fully-qualified name of the class that declares the underlying method.
|
String |
getMethodName()
Deprecated.
Get the name of the underlying method.
|
String |
getReturnTypeName()
Deprecated.
Get the fully-qualified name of the underlying method's declared return type.
|
boolean |
isAbstract()
Deprecated.
Determine whether the underlying method is effectively abstract:
i.e.
|
boolean |
isAnnotated(String annotationName)
Deprecated.
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
boolean |
isFinal()
Deprecated.
Determine whether the underlying method is marked as 'final'.
|
boolean |
isOverridable()
Deprecated.
Determine whether the underlying method is overridable,
i.e.
|
boolean |
isStatic()
Deprecated.
Determine whether the underlying method is declared as 'static'.
|
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Deprecated.
Visits an annotation of this method.
|
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, visitVarInsnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllAnnotationAttributes, getAnnotationAttributesprotected final String methodName
protected final int access
protected final String declaringClassName
protected final String returnTypeName
@Nullable protected final ClassLoader classLoader
protected final Set<MethodMetadata> methodMetadataSet
protected final LinkedMultiValueMap<String,AnnotationAttributes> attributesMap
public MethodMetadataReadingVisitor(String methodName, int access, String declaringClassName, String returnTypeName, @Nullable ClassLoader classLoader, Set<MethodMetadata> methodMetadataSet)
public MergedAnnotations getAnnotations()
AnnotatedTypeMetadatagetAnnotations in interface AnnotatedTypeMetadata@Nullable public AnnotationVisitor visitAnnotation(String desc, boolean visible)
MethodVisitorvisitAnnotation in class MethodVisitordesc - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.public String getMethodName()
MethodMetadatagetMethodName in interface MethodMetadatapublic boolean isAbstract()
MethodMetadataisAbstract in interface MethodMetadatapublic boolean isStatic()
MethodMetadataisStatic in interface MethodMetadatapublic boolean isFinal()
MethodMetadataisFinal in interface MethodMetadatapublic boolean isOverridable()
MethodMetadataisOverridable in interface MethodMetadatapublic boolean isAnnotated(String annotationName)
AnnotatedTypeMetadataIf this method returns true, then
AnnotatedTypeMetadata.getAnnotationAttributes(java.lang.String) will return a non-null Map.
isAnnotated in interface AnnotatedTypeMetadataannotationName - the fully qualified class name of the annotation
type to look for@Nullable public AnnotationAttributes getAnnotationAttributes(String annotationName, boolean classValuesAsString)
AnnotatedTypeMetadatagetAnnotationAttributes in interface AnnotatedTypeMetadataannotationName - the fully qualified class name of the annotation
type to look forclassValuesAsString - whether to convert class references to String
class names for exposure as values in the returned Map, instead of Class
references which might potentially have to be loaded firstnull if no matching annotation is defined.@Nullable public MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName, boolean classValuesAsString)
AnnotatedTypeMetadatagetAllAnnotationAttributes in interface AnnotatedTypeMetadataannotationName - the fully qualified class name of the annotation
type to look forclassValuesAsString - whether to convert class references to Stringnull if no matching annotation is defined.AnnotatedTypeMetadata.getAllAnnotationAttributes(String)public String getDeclaringClassName()
MethodMetadatagetDeclaringClassName in interface MethodMetadatapublic String getReturnTypeName()
MethodMetadatagetReturnTypeName in interface MethodMetadata