public class CommentLine extends SingleLine
| Constructor and Description |
|---|
CommentLine(Document document,
int offset,
LineType lineType)
Creates a comment line.
This line always spans only one line. |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment()
Gets the comment.
The leading hash and whitespaces and trailing whitespaces are removed. |
void |
parse()
Parses a line.
|
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toStringpublic void parse()
throws ModelException
Lineparse in class SingleLineModelException - if parsing failedpublic String getComment() throws ModelException
ModelException - if not parsedTentackle - a domain driven enterprise framework