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 Summary
Constructors Modifier Constructor Description protected
ParseNodeBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position
getEndPosition()
This method returns the end position, in the original expression, associated with this (sub) expression node.Position
getPosition()
This method returns the start position, in the original expression, associated with this (sub) expression node.void
setPosition(Position position, Position endPosition)
This method sets the position information for the node.
-
-
-
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 interfaceIParseNode
- 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 interfaceIParseNode
- Returns:
- The end position, in the original expression, associated with this (sub) expression node.
-
-