Also: SpringCore
public interface

MethodMetadata

org.springframework.core.type.MethodMetadata
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract Map<StringObject> getAnnotationAttributes(String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e.
abstract String getDeclaringClassName()
Return the fully-qualified name of the class that declares this method.
abstract String getMethodName()
Return the name of the method.
abstract String getMethodReturnType()
Return the fully-qualified name of the return type of the method.
abstract boolean isAnnotated(String annotationType)
Determine whether the underlying method has an annotation or meta-annotation of the given type defined.
abstract boolean isFinal()
Return whether the underlying method is marked as 'final'.
abstract boolean isOverridable()
Return whether the underlying method is overridable, i.e.
abstract boolean isStatic()
Return whether the underlying method is declared as 'static'.

Public Methods

public abstract Map<StringObject> getAnnotationAttributes (String annotationType)

Also: SpringCore

Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying method, as direct annotation or as meta-annotation).

Parameters
annotationType the annotation type to look for
Returns
  • a Map of attributes, with the attribute name as key (e.g. "value") and the defined attribute value as Map value. This return value will be null if no matching annotation is defined.

public abstract String getDeclaringClassName ()

Also: SpringCore

Return the fully-qualified name of the class that declares this method.

public abstract String getMethodName ()

Also: SpringCore

Return the name of the method.

public abstract String getMethodReturnType ()

Also: SpringCore

Return the fully-qualified name of the return type of the method.

public abstract boolean isAnnotated (String annotationType)

Also: SpringCore

Determine whether the underlying method has an annotation or meta-annotation of the given type defined.

Parameters
annotationType the annotation type to look for
Returns
  • whether a matching annotation is defined

public abstract boolean isFinal ()

Also: SpringCore

Return whether the underlying method is marked as 'final'.

public abstract boolean isOverridable ()

Also: SpringCore

Return whether the underlying method is overridable, i.e. not marked as static, final or private.

public abstract boolean isStatic ()

Also: SpringCore

Return whether the underlying method is declared as 'static'.