public interface Annotable
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation(Class<A> aClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
|
List<? extends AnnotationMirror> |
getAnnotationMirrors()
Returns the annotations that are directly present on this element.
|
boolean |
hasAnnotation(Class<? extends Annotation> aClazz)
Return true if the element has the annotation.
|
List<? extends AnnotationMirror> getAnnotationMirrors()
<A extends Annotation> A getAnnotation(Class<A> aClass)
A
- the annotation typeaClass
- the Class object corresponding to the annotation typeboolean hasAnnotation(Class<? extends Annotation> aClazz)
aClazz
- Annotation ClassCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.