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