Modifier and Type | Method and Description |
---|---|
default <T extends java.lang.annotation.Annotation> |
getAnnotations(java.lang.Class<T> annotationType)
Get program element annotations of a certain annotation type.
|
java.util.Set<AnnotatedConstructor<X>> |
getConstructors()
Get the constructors of the type.
|
java.util.Set<AnnotatedField<? super X>> |
getFields()
Get the fields of the type.
|
java.lang.Class<X> |
getJavaClass()
Get the underlying
Class . |
java.util.Set<AnnotatedMethod<? super X>> |
getMethods()
Get the methods of the type.
|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
java.lang.Class<X> getJavaClass()
Get the underlying Class
.
Class
java.util.Set<AnnotatedConstructor<X>> getConstructors()
Get the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.
java.util.Set<AnnotatedMethod<? super X>> getMethods()
Get the methods of the type.
java.util.Set<AnnotatedField<? super X>> getFields()
Get the fields of the type.
default <T extends java.lang.annotation.Annotation> java.util.Set<T> getAnnotations(java.lang.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 type