Class TextDefinition
- java.lang.Object
-
- com.aquima.interactions.expressions.tsl.parse.nodes.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 Summary
Constructors Constructor Description TextDefinition(int position, String text)
Constructs the parse node with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPosition()
This method returns the position in the original text where the node started.String
getText()
This method returns the text of the parse node.
-
-
-
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 interfaceIParseNode
- Returns:
- The character position in the original text where the node started.
-
-