X - the declaring typepublic interface AnnotatedField<X> extends AnnotatedMember<X>
Represents a field of a Java class.
Field| Modifier and Type | Method and Description |
|---|---|
default <T extends Annotation> |
getAnnotations(Class<T> annotationType)
Get program element annotations of a certain annotation type.
|
Field |
getJavaMember()
Get the underlying
Field. |
getDeclaringType, isStaticgetAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentField getJavaMember()
Get the underlying Field.
getJavaMember in interface AnnotatedMember<X>Fielddefault <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)
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.
getAnnotations in interface AnnotatedT - the type of the annotationannotationType - the class of the annotation typeCopyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.