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 Summary
Constructors Constructor Description CommentDefinition(int position, String text)
Constructs the comment node with the position and the comment string.
-
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 comment.
-
-
-
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 interfaceIParseNode
- Returns:
- The character position in the original text where the node started.
-
-