ca.uwaterloo.cs.ql.interp.select
Class SelectExpressionNode

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.select.SelectExpressionNode
All Implemented Interfaces:
SelectContext

public class SelectExpressionNode
extends ExpressionNode
implements SelectContext


Constructor Summary
SelectExpressionNode(ExpressionNode exp, SelectConditionNode cond)
           
 
Method Summary
 Value evaluate(Env env)
           
 Tuple getTuple()
           
 void propagate(Env env, java.lang.Object userObj)
           
 void setTuple(Tuple t)
           
 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

SelectExpressionNode

public SelectExpressionNode(ExpressionNode exp,
                            SelectConditionNode cond)
Method Detail

toString

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

getTuple

public Tuple getTuple()
Specified by:
getTuple in interface SelectContext

setTuple

public void setTuple(Tuple t)
Specified by:
setTuple in interface SelectContext

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