Modifier and Type | Method and Description |
---|---|
default <T extends Annotation> |
getAnnotations(Class<T> annotationType)
Get program element annotations of a certain annotation type.
|
AnnotatedCallable<X> |
getDeclaringCallable()
Get the declaring method or constructor.
|
default Parameter |
getJavaParameter()
Get the underlying
Parameter . |
int |
getPosition()
Get the position of the parameter in the method or constructor argument list.
|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
int getPosition()
Get the position of the parameter in the method or constructor argument list.
AnnotatedCallable<X> getDeclaringCallable()
Get the declaring method or constructor.
default Parameter getJavaParameter()
Parameter
.Parameter
default <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)
Annotated
Get 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.
getAnnotations
in interface Annotated
T
- the type of the annotationannotationType
- the class of the annotation typeCopyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.