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, visitVarInsn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllAnnotationAttributes, getAnnotationAttributes
protected 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()
AnnotatedTypeMetadata
getAnnotations
in interface AnnotatedTypeMetadata
@Nullable public AnnotationVisitor visitAnnotation(String desc, boolean visible)
MethodVisitor
visitAnnotation
in class MethodVisitor
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public String getMethodName()
MethodMetadata
getMethodName
in interface MethodMetadata
public boolean isAbstract()
MethodMetadata
isAbstract
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(String annotationName)
AnnotatedTypeMetadata
If this method returns true
, then
AnnotatedTypeMetadata.getAnnotationAttributes(java.lang.String)
will return a non-null Map.
isAnnotated
in interface AnnotatedTypeMetadata
annotationName
- the fully qualified class name of the annotation
type to look for@Nullable public AnnotationAttributes getAnnotationAttributes(String annotationName, boolean classValuesAsString)
AnnotatedTypeMetadata
getAnnotationAttributes
in interface AnnotatedTypeMetadata
annotationName
- 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)
AnnotatedTypeMetadata
getAllAnnotationAttributes
in interface AnnotatedTypeMetadata
annotationName
- 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()
MethodMetadata
getDeclaringClassName
in interface MethodMetadata
public String getReturnTypeName()
MethodMetadata
getReturnTypeName
in interface MethodMetadata