Package org.jboss.jdeparser
Class BasicJAnnotatable
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.AbstractJDocCommentable
org.jboss.jdeparser.BasicJAnnotatable
- All Implemented Interfaces:
JAnnotatable
,JCommentable
,JDocCommentable
- Direct Known Subclasses:
AbstractJGeneric
,FirstJVarDeclaration
,ImplJEnumConstant
,ImplJParamDeclaration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ImplJAnnotation
add
(ImplJAnnotation item) annotate
(Class<? extends Annotation> type) Add an annotation.Add an annotation.Add an annotation.(package private) void
writeAnnotations
(SourceFileWriter writer, FormatPreferences.Space space) Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeComments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Field Details
-
annotations
-
-
Constructor Details
-
BasicJAnnotatable
BasicJAnnotatable()
-
-
Method Details
-
add
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
writeAnnotations
- Throws:
IOException
-