public class UnbackedAnnotated extends BaseAnnotated
| Constructor and Description |
|---|
UnbackedAnnotated(java.lang.reflect.Type baseType,
java.util.Set<java.lang.reflect.Type> typeClosure,
java.util.Set<java.lang.annotation.Annotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Get all annotations of the program element.
|
java.util.Set<java.lang.reflect.Type> |
getTypeClosure()
Get all types to which the base type should be considered assignable.
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
getBaseTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationsByTypepublic UnbackedAnnotated(java.lang.reflect.Type baseType,
java.util.Set<java.lang.reflect.Type> typeClosure,
java.util.Set<java.lang.annotation.Annotation> annotations)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
AnnotatedGet program element annotation of a certain annotation type.
T - the type of the annotationannotationType - the class of the annotation typepublic java.util.Set<java.lang.annotation.Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
annotationType - the annotation type to check forpublic java.util.Set<java.lang.reflect.Type> getTypeClosure()
AnnotatedGet all types to which the base type should be considered assignable.
Copyright © 2015. All Rights Reserved.