Class ParseNodeBase

    • Constructor Detail

      • ParseNodeBase

        protected ParseNodeBase()
    • Method Detail

      • 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.