ca.uwaterloo.cs.ql.interp
Class SetConstructorNode

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

public class SetConstructorNode
extends ExpressionNode

SetConstructorNode is used to create a set.


Constructor Summary
SetConstructorNode()
           
 
Method Summary
 void addItem(ExpressionNode nd)
           
 Value evaluate(Env env)
           
 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

SetConstructorNode

public SetConstructorNode()
Method Detail

addItem

public void addItem(ExpressionNode nd)

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

toString

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