Interface EnhancedAnnotatedMethod<T,X>

All Superinterfaces:
jakarta.enterprise.inject.spi.Annotated, jakarta.enterprise.inject.spi.AnnotatedCallable<X>, jakarta.enterprise.inject.spi.AnnotatedMember<X>, jakarta.enterprise.inject.spi.AnnotatedMethod<X>, EnhancedAnnotated<T,Method>, EnhancedAnnotatedCallable<T,X,Method>, EnhancedAnnotatedMember<T,X,Method>
All Known Implementing Classes:
EnhancedAnnotatedMethodImpl

public interface EnhancedAnnotatedMethod<T,X> extends EnhancedAnnotatedCallable<T,X,Method>, jakarta.enterprise.inject.spi.AnnotatedMethod<X>
AnnotatedType provides a uniform access to the annotations on an annotated class defined either in Java or XML
Author:
Pete Muir
  • Method Details

    • getParameterTypesAsArray

      Class<?>[] getParameterTypesAsArray()
      Get the parameter types as an array
    • getPropertyName

      String getPropertyName()
      Gets the property name
      Returns:
      The name
    • isEquivalent

      boolean isEquivalent(Method method)
      Checks if a this is equivalent to a JLR method
      Parameters:
      method - The JLR method
      Returns:
      true if equivalent
    • getSignature

      MethodSignature getSignature()
    • getEnhancedParameters

      List<EnhancedAnnotatedParameter<?,X>> getEnhancedParameters(Class<? extends Annotation> annotationType)
      Get the parameters annotated with a given annotation type.
      Specified by:
      getEnhancedParameters in interface EnhancedAnnotatedCallable<T,X,Method>
      Parameters:
      annotationType - The annotation to match
      Returns:
      A set of matching parameter abstractions. Returns an empty list if there are no matches.
    • slim

      jakarta.enterprise.inject.spi.AnnotatedMethod<X> slim()
      Returns a lightweight implementation of AnnotatedMethod with minimal memory footprint.
      Specified by:
      slim in interface EnhancedAnnotated<T,X>
      Specified by:
      slim in interface EnhancedAnnotatedCallable<T,X,Method>
      Specified by:
      slim in interface EnhancedAnnotatedMember<T,X,Method>
      Returns:
      the slim version of this AnnotatedMethod