Class ExprNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.ExprNode
- All Implemented Interfaces:
IParseNode
This node represents the root of the parse tree.
- Since:
- 7.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionExprNode
(IParseNode expr) Constructs the expression node without any local variables.ExprNode
(IParseNode expr, List<LocalVariableNode> localVariableNodes) Constructs the expression node with a list of local variables. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the main expression parse tree.This method returns an array containing the local variable definitions.Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
Constructor Details
-
ExprNode
Constructs the expression node without any local variables.- Parameters:
expr
- The node containing the expression parse tree.
-
ExprNode
Constructs the expression node with a list of local variables.- Parameters:
expr
- The node containing the expression parse tree.localVariableNodes
- List containing local variable definitions.
-
-
Method Details
-
getExpression
This method returns the main expression parse tree.- Returns:
- The main expression parse tree.
-
getVariables
This method returns an array containing the local variable definitions. As local variables are optional, the returned array will usually be empty (but never null).- Returns:
- An array containing the local variable definitions.
-