- java.lang.Object
-
- org.tentackle.model.parse.Line
-
- org.tentackle.model.parse.SingleLine
-
- org.tentackle.model.parse.CommentLine
-
public class CommentLine extends SingleLine
A comment line.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description CommentLine(Document document, int offset, LineType lineType)Creates a comment line.
This line always spans only one line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Gets the comment.
The leading hash and whitespaces and trailing whitespaces are removed.voidparse()Parses a line.-
Methods inherited from class org.tentackle.model.parse.Line
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toString
-
-
-
-
Method Detail
-
parse
public void parse() throws ModelExceptionDescription copied from class:LineParses a line.- Overrides:
parsein classSingleLine- Throws:
ModelException- if parsing failed
-
getComment
public java.lang.String getComment() throws ModelExceptionGets the comment.
The leading hash and whitespaces and trailing whitespaces are removed.- Returns:
- the comment
- Throws:
ModelException- if not parsed
-
-