Package org.jboss.jdeparser
Class BasicJCommentable
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- All Implemented Interfaces:
JCommentable
- Direct Known Subclasses:
AbstractJDocCommentable
,BasicJBlock
,BasicJStatement
,ExpressionJStatement
,ImplJLabel
,ImplJSourceFile
,ImplJSwitch
class BasicJCommentable extends java.lang.Object implements JCommentable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<AbstractJComment>
comments
-
Constructor Summary
Constructors Constructor Description BasicJCommentable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComment
blockComment()
Add a block comment.JComment
lineComment()
Add a line comment.(package private) void
writeComments(SourceFileWriter writer)
-
-
-
Field Detail
-
comments
private java.util.ArrayList<AbstractJComment> comments
-
-
Method Detail
-
lineComment
public JComment lineComment()
Description copied from interface:JCommentable
Add a line comment.- Specified by:
lineComment
in interfaceJCommentable
- Returns:
- the line comment body
-
blockComment
public JComment blockComment()
Description copied from interface:JCommentable
Add a block comment.- Specified by:
blockComment
in interfaceJCommentable
- Returns:
- the block comment body
-
writeComments
void writeComments(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-