Class CommentDefinition

java.lang.Object
com.aquima.interactions.expressions.tsl.parse.nodes.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 Details

    • 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 Details

    • 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.