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
ConstructorDescriptionCommentLine
(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.void
parse()
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:Line
Parses a line.- Overrides:
parse
in 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
-