|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotable
This interface provides a way to interact this model elements that can have annotations.
| Method Summary | ||
|---|---|---|
|
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. |
|
| Method Detail |
|---|
List<? extends AnnotationMirror> getAnnotationMirrors()
<A extends Annotation> A getAnnotation(Class<A> aClass)
A - the annotation typeaClass - the Class object corresponding to the annotation type
boolean hasAnnotation(Class<? extends Annotation> aClazz)
aClazz - Annotation Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||