java.lang.Object
org.tentackle.model.parse.Line
org.tentackle.model.parse.SingleLine
org.tentackle.model.parse.CommentLine
A comment line.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionCommentLine(Document document, int offset, LineType lineType) Creates a comment line.
This line always spans only one line. -
Method Summary
Modifier and TypeMethodDescriptionGets 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
-
Constructor Details
-
CommentLine
Creates a comment line.
This line always spans only one line.- Parameters:
document- the whole documentoffset- offset to first character within documentlineType- the line type
-
-
Method Details
-
parse
Description copied from class:LineParses a line.- Overrides:
parsein classSingleLine- Throws:
ModelException- if parsing failed
-
getComment
Gets the comment.
The leading hash and whitespaces and trailing whitespaces are removed.- Returns:
- the comment
- Throws:
ModelException- if not parsed
-