Class TextDefinition

  • All Implemented Interfaces:
    IParseNode

    public class TextDefinition
    extends Object
    implements IParseNode
    Parse node representing (static) text from a TSL expression.
    Since:
    6.4
    Author:
    O. Kerpershoek
    • Constructor Detail

      • TextDefinition

        public TextDefinition​(int position,
                              String text)
        Constructs the parse node with the required arguments.
        Parameters:
        position - The position of the text in the TSL expression.
        text - The text of the parse node.
    • Method Detail

      • getText

        public String getText()
        This method returns the text of the parse node.
        Returns:
        The text of the parse node.
      • 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.