Class CommentLine


  • public class CommentLine
    extends SingleLine
    A comment line.
    Author:
    harald
    • Constructor Detail

      • CommentLine

        public CommentLine​(Document document,
                           int offset,
                           LineType lineType)
        Creates a comment line.
        This line always spans only one line.
        Parameters:
        document - the whole document
        offset - offset to first character within document
        lineType - the line type
    • Method Detail

      • getComment

        public java.lang.String getComment()
                                    throws ModelException
        Gets the comment.
        The leading hash and whitespaces and trailing whitespaces are removed.
        Returns:
        the comment
        Throws:
        ModelException - if not parsed