Class CommentDefinition

  • All Implemented Interfaces:
    IParseNode

    public class CommentDefinition
    extends Object
    implements IParseNode
    This node holds a comment definition.
    Since:
    5.0
    Author:
    O. Kerpershoek
    • Constructor Detail

      • CommentDefinition

        public CommentDefinition​(int position,
                                 String text)
        Constructs the comment node with the position and the comment string.
        Parameters:
        position - The position in the TSL where the comment starts.
        text - The text of the comment.
    • Method Detail

      • getText

        public String getText()
        This method returns the text of the comment.
        Returns:
        the text of the comment.
      • getPosition

        public int getPosition()
        Description copied from interface: IParseNode
        This method returns the position in the original text where the node started.
        Specified by:
        getPosition in interface IParseNode
        Returns:
        The character position in the original text where the node started.