Class LocalVariableNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.LocalVariableNode
- All Implemented Interfaces:
IParseNode
This class holds the information for a local variable. A local variable consists of a name, and an expression that
should be used for the value.
- Since:
- 7.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableNode
(String name, IParseNode expr) Constructs the local variable node with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the expression that should be used to determine the value of the variable.getName()
This method returns the name of the local variable.Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
Constructor Details
-
LocalVariableNode
Constructs the local variable node with the required arguments.- Parameters:
name
- The name of the local variable.expr
- The expression that should be used to determine the value of the variable.
-
-
Method Details
-
getName
This method returns the name of the local variable.- Returns:
- The name of the local variable.
-
getExpression
This method returns the expression that should be used to determine the value of the variable.- Returns:
- The expression that should be used to determine the value of the variable.
-