-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends java.lang.annotation.Annotation>
java.util.Set<T>getAnnotations(java.lang.Class<T> annotationType)Get program element annotations of a certain annotation type.AnnotatedCallable<X>getDeclaringCallable()Get the declaring method or constructor.default java.lang.reflect.ParametergetJavaParameter()Get the underlyingParameter.intgetPosition()Get the position of the parameter in the method or constructor argument list.-
Methods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
-
-
-
Method Detail
-
getPosition
int getPosition()
Get the position of the parameter in the method or constructor argument list.
- Returns:
- the position of the parameter
-
getDeclaringCallable
AnnotatedCallable<X> getDeclaringCallable()
Get the declaring method or constructor.
- Returns:
- the declaring callable
-
getJavaParameter
default java.lang.reflect.Parameter getJavaParameter()
Get the underlyingParameter.- Returns:
- the
Parameter
-
getAnnotations
default <T extends java.lang.annotation.Annotation> java.util.Set<T> getAnnotations(java.lang.Class<T> annotationType)
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
-
-