Package jakarta.enterprise.inject.spi
Interface AnnotatedMethod<X>
- Type Parameters:
X- the declaring type
- All Superinterfaces:
Annotated,AnnotatedCallable<X>,AnnotatedMember<X>
Represents a method of a Java type.
- Author:
- Gavin King, Pete Muir
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends Annotation>
Set<T>getAnnotations(Class<T> annotationType) Get program element annotations of a certain annotation type.Get the underlyingMethod.Methods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedCallable
getParametersMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMember
getDeclaringType, isStatic
-
Method Details
-
getJavaMember
Method getJavaMember()Get the underlying
Method.- Specified by:
getJavaMemberin interfaceAnnotatedMember<X>- Returns:
- the
Method
-
getAnnotations
Description copied from interface:AnnotatedGet program element annotations of a certain annotation type.
This method returns back all annotations, including repeatable annotations of this type. The behavior of this method is intended to be the same behavior as
AnnotatedElement.getAnnotationsByType(Class), where repeatable annotations are supported.- Specified by:
getAnnotationsin interfaceAnnotated- Type Parameters:
T- the type of the annotation- Parameters:
annotationType- the class of the annotation type- Returns:
- the program element annotations of the given annotation type, or an empty collection
-