public class StandardMethodMetadata extends Object implements MethodMetadata
MethodMetadata implementation that uses standard reflection
to introspect a given Method.| Constructor and Description |
|---|
StandardMethodMetadata(Method introspectedMethod)
Create a new StandardMethodMetadata wrapper for the given Method.
|
StandardMethodMetadata(Method introspectedMethod,
boolean nestedAnnotationsAsMap)
Create a new StandardMethodMetadata wrapper for the given Method.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAnnotationAttributes(String annotationType)
Retrieve the attributes of the annotation of the given type,
if any (i.e.
|
String |
getDeclaringClassName()
Return the fully-qualified name of the class that declares this method.
|
Method |
getIntrospectedMethod()
Return the underlying Method.
|
String |
getMethodName()
Return the name of the method.
|
boolean |
isAnnotated(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'.
|
public StandardMethodMetadata(Method introspectedMethod)
introspectedMethod - the Method to introspectpublic StandardMethodMetadata(Method introspectedMethod, boolean nestedAnnotationsAsMap)
introspectedMethod - the Method to introspectnestedAnnotationsAsMap - public final Method getIntrospectedMethod()
public String getMethodName()
MethodMetadatagetMethodName in interface MethodMetadatapublic String getDeclaringClassName()
MethodMetadatagetDeclaringClassName in interface MethodMetadatapublic boolean isStatic()
MethodMetadataisStatic in interface MethodMetadatapublic boolean isFinal()
MethodMetadataisFinal in interface MethodMetadatapublic boolean isOverridable()
MethodMetadataisOverridable in interface MethodMetadatapublic boolean isAnnotated(String annotationType)
MethodMetadataisAnnotated in interface MethodMetadataannotationType - the annotation type to look forpublic Map<String,Object> getAnnotationAttributes(String annotationType)
MethodMetadatagetAnnotationAttributes in interface MethodMetadataannotationType - the annotation type to look fornull if no matching annotation is defined.