Class ParseNodeBase

java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
All Implemented Interfaces:
IParseNode
Direct Known Subclasses:
AllNode, BinoptNode, CollectNode, ConstexprNode, DeprecatedNode, ExprListNode, ExprNode, FunctionNode, GroupingNode, IdentifierNode, InstanceOfNode, InverseNode, ListopNode, LocalVariableNode, NotNode, PredicateNode, StringNode, TemplateNode, TypeOfNode, UnknownNode, UnpackNode, VariableNode

public class ParseNodeBase extends Object implements IParseNode
Base class for all parsed expression nodes.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ParseNodeBase

      protected ParseNodeBase()
  • Method Details

    • setPosition

      public void setPosition(Position position, Position endPosition)
      This method sets the position information for the node. The position information is injected by the parser.
      Parameters:
      position - The start position information for the node.
      endPosition - The end position information for the node.
    • getPosition

      public Position getPosition()
      Description copied from interface: IParseNode
      This method returns the start position, in the original expression, associated with this (sub) expression node.
      Specified by:
      getPosition in interface IParseNode
      Returns:
      The start position, in the original expression, associated with this (sub) expression node.
    • getEndPosition

      public Position getEndPosition()
      Description copied from interface: IParseNode
      This method returns the end position, in the original expression, associated with this (sub) expression node.
      Specified by:
      getEndPosition in interface IParseNode
      Returns:
      The end position, in the original expression, associated with this (sub) expression node.