Interface MethodReference<T,R>

Type Parameters:
T - The type
R - The result type
All Superinterfaces:
AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, Named
All Known Subinterfaces:
BeanDefinitionMethodReference<T,R>, DelegatingExecutableMethod<T,R>, ExecutableMethod<T,R>, MethodBasedRouteMatch<T,R>, MethodExecutionHandle<T,R>, MethodInvocationContext<T,R>, UriRouteMatch<T,R>
All Known Implementing Classes:
AbstractExecutableBeanMethod, AbstractExecutableMethod, MethodInterceptorChain

public interface MethodReference<T,R> extends AnnotationMetadataDelegate, AnnotatedElement
A reference to a method.
Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • getArguments

      Argument[] getArguments()
      Returns:
      The required argument types
    • getTargetMethod

      Method getTargetMethod()
      Returns:
      The target method
    • getReturnType

      ReturnType<R> getReturnType()
      Returns:
      Return the return type
    • getDeclaringType

      Class<T> getDeclaringType()
      Returns:
      The bean that declares this injection point
    • getMethodName

      String getMethodName()
      Returns:
      The name of the method
    • getArgumentTypes

      default Class<?>[] getArgumentTypes()
      Returns:
      The argument types
    • getArgumentNames

      default String[] getArgumentNames()
      Returns:
      The argument types
    • getName

      @NonNull default @NonNull String getName()
      Specified by:
      getName in interface Named
      Returns:
      The name of the component