接口 MethodMetadata

所有超级接口:
AnnotatedTypeMetadata
所有已知实现类:
SimpleMethodMetadata, StandardMethodMetadata

public interface MethodMetadata extends AnnotatedTypeMetadata
Interface that defines abstract access to the annotations of a specific method, in a form that does not require that method's class to be loaded yet.
从以下版本开始:
4.0
作者:
Juergen Hoeller, Mark Pollack, Chris Beams, Phillip Webb
另请参阅:
  • 方法详细资料

    • getMethodName

      String getMethodName()
      Get the name of the underlying method.
    • getDeclaringClassName

      String getDeclaringClassName()
      Get the fully-qualified name of the class that declares the underlying method.
    • getReturnTypeName

      String getReturnTypeName()
      Get the fully-qualified name of the underlying method's declared return type.
    • isAbstract

      boolean isAbstract()
      Determine whether the underlying method is effectively abstract: i.e. marked as abstract in a class or declared as a regular, non-default method in an interface.
    • isStatic

      boolean isStatic()
      Determine whether the underlying method is declared as 'static'.
    • isFinal

      boolean isFinal()
      Determine whether the underlying method is marked as 'final'.
    • isOverridable

      boolean isOverridable()
      Determine whether the underlying method is overridable, i.e. not marked as static, final, or private.
    • getParameterCount

      int getParameterCount()
    • getArgumentTypes

      Type[] getArgumentTypes()
    • getParameterTypes

      Class<?>[] getParameterTypes()