Class LocalVariableNode
- java.lang.Object
-
- com.aquima.interactions.expressions.parser.ParseNodeBase
-
- com.aquima.interactions.expressions.r7.parser.nodes.LocalVariableNode
-
- All Implemented Interfaces:
IParseNode
public class LocalVariableNode extends ParseNodeBase
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
Constructors Constructor Description LocalVariableNode(String name, IParseNode expr)
Constructs the local variable node with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IParseNode
getExpression()
This method returns the expression that should be used to determine the value of the variable.String
getName()
This method returns the name of the local variable.-
Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
-
-
-
Constructor Detail
-
LocalVariableNode
public LocalVariableNode(String name, IParseNode expr)
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 Detail
-
getName
public String getName()
This method returns the name of the local variable.- Returns:
- The name of the local variable.
-
getExpression
public IParseNode 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.
-
-