public class UnbackedAnnotated extends BaseAnnotated
| Constructor and Description |
|---|
UnbackedAnnotated(Type baseType,
Set<Type> typeClosure,
Set<Annotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
Set<Annotation> |
getAnnotations()
Get all annotations of the program element.
|
Set<Type> |
getTypeClosure()
Get all types to which the base type should be considered assignable.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
getBaseTypepublic UnbackedAnnotated(Type baseType, Set<Type> typeClosure, Set<Annotation> annotations)
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
AnnotatedGet program element annotation of a certain annotation type.
T - the type of the annotationannotationType - the class of the annotation typepublic Set<Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
annotationType - the annotation type to check forCopyright © 2014. All Rights Reserved.