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 Details

    • 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 Details

    • 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.