|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotable
Annotatable program elements.
| Method Summary | ||
|---|---|---|
GeneratedAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element. |
|
GeneratedAnnotationUse |
annotate(TypeReference clazz)
Adds an annotation to this program element. |
|
|
annotate2(Class<W> clazz)
Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations. |
|
Collection<GeneratedAnnotationUse> |
annotations()
Read-only live view of all annotations on this Annotable |
|
| Method Detail |
|---|
GeneratedAnnotationUse annotate(TypeReference clazz)
clazz - The annotation class to annotate the program element withGeneratedAnnotationUse annotate(Class<? extends Annotation> clazz)
clazz - The annotation class to annotate the program element with<W extends AnnotationWriter> W annotate2(Class<W> clazz)
Collection<GeneratedAnnotationUse> annotations()
Annotable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||