public interface Annotated
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType)
Gets annotated element's annotation member if exist, null otherwise
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Gets annotated member all annotations.
|
java.lang.reflect.Type |
getBaseType()
Returns type of the element.
|
java.util.Set<java.lang.reflect.Type> |
getTypeClosure()
Returns set of type closures.
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns true if annotated member has annotation for given annotation type,
false otherwise.
|
java.lang.reflect.Type getBaseType()
java.util.Set<java.lang.reflect.Type> getTypeClosure()
getBaseType() is assignable.<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
T - generic annotatation class typeannotationType - class of the annotationjava.util.Set<java.lang.annotation.Annotation> getAnnotations()
boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - type of the annotation