java.lang.Object
com.aquima.interactions.expressions.tsl.parse.nodes.DefinitionList
All Implemented Interfaces:
IParseNode

public class DefinitionList extends Object implements IParseNode
Parse node representing a list of TSL nodes.
Since:
6.4
Author:
O. Kerpershoek
  • Constructor Details

    • DefinitionList

      public DefinitionList(IParseNode head)
      Constructs the list with the first element.
      Parameters:
      head - The first element of the list.
  • Method Details

    • append

      public boolean append(IParseNode node)
      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

      public IParseNode nodeAt(int index)
      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 interface IParseNode
      Returns:
      The character position in the original text where the node started.