class BasicJAnnotatable extends AbstractJDocCommentable implements JAnnotatable
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<ImplJAnnotation> |
annotations |
| Constructor and Description |
|---|
BasicJAnnotatable() |
| Modifier and Type | Method and Description |
|---|---|
private ImplJAnnotation |
add(ImplJAnnotation item) |
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.
|
(package private) void |
writeAnnotations(SourceFileWriter writer,
FormatPreferences.Space space) |
deprecated, docComment, writeDocCommentsblockComment, lineComment, writeCommentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblockComment, lineCommentprivate java.util.ArrayList<ImplJAnnotation> annotations
private ImplJAnnotation add(ImplJAnnotation item)
public JAnnotation annotate(java.lang.String type)
JAnnotatableannotate in interface JAnnotatabletype - the type of the annotation to addpublic JAnnotation annotate(JType type)
JAnnotatableannotate in interface JAnnotatabletype - the type of the annotation to addpublic JAnnotation annotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)
JAnnotatableannotate in interface JAnnotatabletype - the type of the annotation to addvoid writeAnnotations(SourceFileWriter writer, FormatPreferences.Space space) throws java.io.IOException
java.io.IOException