| Modifier and Type | Method and Description |
|---|---|
default <T extends Annotation> |
getAnnotations(Class<T> annotationType)
Get program element annotations of a certain annotation type.
|
Set<AnnotatedConstructor<X>> |
getConstructors()
Get the constructors of the type.
|
Set<AnnotatedField<? super X>> |
getFields()
Get the fields of the type.
|
Class<X> |
getJavaClass()
Get the underlying
Class. |
Set<AnnotatedMethod<? super X>> |
getMethods()
Get the methods of the type.
|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentSet<AnnotatedConstructor<X>> getConstructors()
Get the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.
Set<AnnotatedMethod<? super X>> getMethods()
Get the methods of the type.
Set<AnnotatedField<? super X>> getFields()
Get the fields of the type.
default <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 © 2008–2017 JBoss by Red Hat, Inc.. All rights reserved.