public interface JAnnotatable
Modifier and Type | Method and Description |
---|---|
JAnnotation |
annotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)
Add an annotation.
|
JAnnotation |
annotate(JType type)
Add an annotation.
|
JAnnotation |
annotate(java.lang.String type)
Add an annotation.
|
JAnnotation annotate(java.lang.String type)
type
- the type of the annotation to addJAnnotation annotate(JType type)
type
- the type of the annotation to addJAnnotation annotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)
type
- the type of the annotation to add