Class DefinitionList
java.lang.Object
com.aquima.interactions.expressions.tsl.parse.nodes.DefinitionList
- All Implemented Interfaces:
IParseNode
Parse node representing a list of TSL nodes.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
append
(IParseNode node) This method may be used to add an element to the list.int
This method returns the position in the original text where the node started.nodeAt
(int index) This method returns the node at the specified index.int
size()
This method returns the number of nodes that are present in the list.
-
Constructor Details
-
Method Details
-
append
This method may be used to add an element to the list.- Parameters:
node
- The element that should be added.- Returns:
- Boolean indicating if the node was actually added.
-
size
public int size()This method returns the number of nodes that are present in the list.- Returns:
- the number of nodes that are present in the list.
-
nodeAt
This method returns the node at the specified index.- Parameters:
index
- The index of the requested node.- Returns:
- The node at the specified index.
-
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.
-