public class StandardMethodMetadata extends Object implements MethodMetadata
MethodMetadata implementation that uses standard reflection
to introspect a given Method.| Constructor and Description |
|---|
StandardMethodMetadata(Method introspectedMethod)
Deprecated.
since 5.2 in favor of obtaining instances via
AnnotationMetadata |
StandardMethodMetadata(Method introspectedMethod,
boolean nestedAnnotationsAsMap)
Deprecated.
since 5.2 in favor of obtaining instances via
AnnotationMetadata |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
Map<String,Object> |
getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
MergedAnnotations |
getAnnotations()
Return annotation details based on the direct annotations of the
underlying element.
|
String |
getDeclaringClassName()
Get the fully-qualified name of the class that declares the underlying method.
|
Method |
getIntrospectedMethod()
Return the underlying Method.
|
String |
getMethodName()
Get the name of the underlying method.
|
String |
getReturnTypeName()
Get the fully-qualified name of the underlying method's declared return type.
|
int |
hashCode() |
boolean |
isAbstract()
Determine whether the underlying method is effectively abstract:
i.e.
|
boolean |
isFinal()
Determine whether the underlying method is marked as 'final'.
|
boolean |
isOverridable()
Determine whether the underlying method is overridable,
i.e.
|
boolean |
isStatic()
Determine whether the underlying method is declared as 'static'.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllAnnotationAttributes, getAnnotationAttributes, isAnnotated@Deprecated public StandardMethodMetadata(Method introspectedMethod)
AnnotationMetadataintrospectedMethod - the Method to introspect@Deprecated public StandardMethodMetadata(Method introspectedMethod, boolean nestedAnnotationsAsMap)
AnnotationMetadataAnnotationAttributes instead
of actual Annotation instances.introspectedMethod - the Method to introspectnestedAnnotationsAsMap - return nested annotations and annotation arrays as
AnnotationAttributes for compatibility
with ASM-based AnnotationMetadata implementationspublic MergedAnnotations getAnnotations()
AnnotatedTypeMetadatagetAnnotations in interface AnnotatedTypeMetadatapublic final Method getIntrospectedMethod()
public String getMethodName()
MethodMetadatagetMethodName in interface MethodMetadatapublic String getDeclaringClassName()
MethodMetadatagetDeclaringClassName in interface MethodMetadatapublic String getReturnTypeName()
MethodMetadatagetReturnTypeName 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 MethodMetadata@Nullable public Map<String,Object> 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)