ca.uwaterloo.cs.ql.interp
Class AssignmentExtensionNode

java.lang.Object
  extended by ca.uwaterloo.cs.ql.interp.SyntaxTreeNode
      extended by ca.uwaterloo.cs.ql.interp.StatementNode
          extended by ca.uwaterloo.cs.ql.interp.AssignmentExtensionNode

public class AssignmentExtensionNode
extends StatementNode

Assignment Extensions: += -= *= /=


Constructor Summary
AssignmentExtensionNode(int op, VariableNode left, ExpressionNode expNode)
           
 
Method Summary
 Value evaluate(Env env)
           
 java.lang.String toString()
           
 
Methods inherited from class ca.uwaterloo.cs.ql.interp.StatementNode
getIndent, propagate, shortFormLocation
 
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

AssignmentExtensionNode

public AssignmentExtensionNode(int op,
                               VariableNode left,
                               ExpressionNode expNode)
Method Detail

evaluate

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

toString

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