Class ExprNode
- java.lang.Object
-
- com.aquima.interactions.expressions.parser.ParseNodeBase
-
- com.aquima.interactions.expressions.r7.parser.nodes.ExprNode
-
- All Implemented Interfaces:
IParseNode
public class ExprNode extends ParseNodeBase
This node represents the root of the parse tree.- Since:
- 7.0
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Constructor Description ExprNode(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IParseNode
getExpression()
This method returns the main expression parse tree.LocalVariableNode[]
getVariables()
This method returns an array containing the local variable definitions.-
Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
-
-
-
Constructor Detail
-
ExprNode
public ExprNode(IParseNode expr)
Constructs the expression node without any local variables.- Parameters:
expr
- The node containing the expression parse tree.
-
ExprNode
public ExprNode(IParseNode expr, List<LocalVariableNode> localVariableNodes)
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 Detail
-
getExpression
public IParseNode getExpression()
This method returns the main expression parse tree.- Returns:
- The main expression parse tree.
-
getVariables
public LocalVariableNode[] 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.
-
-