接口 MethodMetadata
- 所有超级接口:
AnnotatedTypeMetadata
public interface MethodMetadata extends AnnotatedTypeMetadata
Interface that defines abstract access to the annotations of a specific class, in a form that does not require that class to be loaded yet.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Mark Pollack, Chris Beams, Phillip Webb
- 另请参阅:
StandardMethodMetadata
,AnnotationMetadata.getAnnotatedMethods(java.lang.String)
,AnnotatedTypeMetadata
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getDeclaringClassName()
Return the fully-qualified name of the class that declares this method.String
getMethodName()
Return the name of the method.String
getReturnTypeName()
Return the fully-qualified name of this method's declared return type.boolean
isAbstract()
Return whether the underlying method is effectively abstract: i.e. marked as abstract on a class or declared as a regular, non-default method in an interface.boolean
isFinal()
Return whether the underlying method is marked as 'final'.boolean
isOverridable()
Return whether the underlying method is overridable, i.e. not marked as static, final or private.boolean
isStatic()
Return whether the underlying method is declared as 'static'.从接口继承的方法 org.springframework.core.type.AnnotatedTypeMetadata
getAllAnnotationAttributes, getAllAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, isAnnotated
方法详细资料
getMethodName
String getMethodName()
Return the name of the method.
getDeclaringClassName
String getDeclaringClassName()
Return the fully-qualified name of the class that declares this method.
getReturnTypeName
String getReturnTypeName()
Return the fully-qualified name of this method's declared return type.- 从以下版本开始:
- 4.2
isAbstract
boolean isAbstract()
Return whether the underlying method is effectively abstract: i.e. marked as abstract on a class or declared as a regular, non-default method in an interface.- 从以下版本开始:
- 4.2
isStatic
boolean isStatic()
Return whether the underlying method is declared as 'static'.
isFinal
boolean isFinal()
Return whether the underlying method is marked as 'final'.
isOverridable
boolean isOverridable()
Return whether the underlying method is overridable, i.e. not marked as static, final or private.