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
Base class for all parsed expression nodes.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the end position, in the original expression, associated with this (sub) expression node.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.
-
Constructor Details
-
ParseNodeBase
protected ParseNodeBase()
-
-
Method Details
-
setPosition
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
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
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.
-