|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JAnnotatable
Annotatable program elements.
Method Summary | ||
---|---|---|
JAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element. |
|
JAnnotationUse |
annotate(JClass 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<JAnnotationUse> |
annotations()
Read-only live view of all annotations on this JAnnotatable |
Method Detail |
---|
JAnnotationUse annotate(JClass clazz)
clazz
- The annotation class to annotate the program element withJAnnotationUse annotate(Class<? extends Annotation> clazz)
clazz
- The annotation class to annotate the program element with<W extends JAnnotationWriter> W annotate2(Class<W> clazz)
Collection<JAnnotationUse> annotations()
JAnnotatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |