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 JCommentblockComment()Add a block comment.JCommentlineComment()Add a line comment.(package private) voidwriteComments(SourceFileWriter writer)
-
-
-
Field Detail
-
comments
private java.util.ArrayList<AbstractJComment> comments
-
-
Method Detail
-
lineComment
public JComment lineComment()
Description copied from interface:JCommentableAdd a line comment.- Specified by:
lineCommentin interfaceJCommentable- Returns:
- the line comment body
-
blockComment
public JComment blockComment()
Description copied from interface:JCommentableAdd a block comment.- Specified by:
blockCommentin interfaceJCommentable- Returns:
- the block comment body
-
writeComments
void writeComments(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-