ca.uwaterloo.cs.ql.interp
Class VariableNode

java.lang.Object
  extended by ca.uwaterloo.cs.ql.interp.SyntaxTreeNode
      extended by ca.uwaterloo.cs.ql.interp.ExpressionNode
          extended by ca.uwaterloo.cs.ql.interp.VariableNode
All Implemented Interfaces:
EvalName
Direct Known Subclasses:
AttrSignNode, DollarSignNode

public class VariableNode
extends ExpressionNode
implements EvalName


Constructor Summary
VariableNode(java.lang.String name)
           
 
Method Summary
 java.lang.String evalName(Env env)
           
 Value evaluate(Env env)
           
 java.lang.String getName()
           
 void propagate(Env env, java.lang.Object userObj)
           
 java.lang.String toString()
           
 
Methods inherited from class ca.uwaterloo.cs.ql.interp.SyntaxTreeNode
getLocation, setLocation, strLocation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableNode

public VariableNode(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

propagate

public void propagate(Env env,
                      java.lang.Object userObj)
               throws EvaluationException
Specified by:
propagate in class SyntaxTreeNode
Throws:
EvaluationException

evaluate

public Value evaluate(Env env)
               throws EvaluationException
Specified by:
evaluate in class SyntaxTreeNode
Throws:
EvaluationException

evalName

public java.lang.String evalName(Env env)
                          throws EvaluationException
Specified by:
evalName in interface EvalName
Throws:
EvaluationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object