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, writeDocComments
blockComment, lineComment, writeComments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockComment, lineComment
private java.util.ArrayList<ImplJAnnotation> annotations
private ImplJAnnotation add(ImplJAnnotation item)
public JAnnotation annotate(java.lang.String type)
JAnnotatable
annotate
in interface JAnnotatable
type
- the type of the annotation to addpublic JAnnotation annotate(JType type)
JAnnotatable
annotate
in interface JAnnotatable
type
- the type of the annotation to addpublic JAnnotation annotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)
JAnnotatable
annotate
in interface JAnnotatable
type
- the type of the annotation to addvoid writeAnnotations(SourceFileWriter writer, FormatPreferences.Space space) throws java.io.IOException
java.io.IOException