edu.cmu.aura.service.query.expression
Class BoolExpressionNode

java.lang.Object
  |
  +--edu.cmu.aura.service.query.ExpressionNode
        |
        +--edu.cmu.aura.service.query.expression.BoolExpressionNode

public class BoolExpressionNode
extends ExpressionNode


Constructor Summary
BoolExpressionNode()
           
BoolExpressionNode(BooleanOperator operator, ExpressionNode leftChild)
           
BoolExpressionNode(BooleanOperator operator, ExpressionNode leftChild, ExpressionNode rightChild)
           
 
Method Summary
 boolean eval(ServiceObject sObject)
          NOTE: Do not use this function.
 int eval(ServiceObject sObject, java.util.ArrayList ncAttribs)
          NOTE: Do not use this function.
 java.lang.Object getLeftChild()
          Get the left child of this node.
 Operator getOperator()
          Get this nodes Operator.
 java.lang.Object getRightChild()
          Get the right child of this node.
 void setLeftChild(ExpressionNode leftChild)
           
 void setOperator(BooleanOperator operator)
           
 void setRightChild(ExpressionNode rightChild)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoolExpressionNode

public BoolExpressionNode()

BoolExpressionNode

public BoolExpressionNode(BooleanOperator operator,
                          ExpressionNode leftChild,
                          ExpressionNode rightChild)

BoolExpressionNode

public BoolExpressionNode(BooleanOperator operator,
                          ExpressionNode leftChild)
Method Detail

getOperator

public final Operator getOperator()
Description copied from class: ExpressionNode
Get this nodes Operator.
Overrides:
getOperator in class ExpressionNode
Following copied from class: edu.cmu.aura.service.query.ExpressionNode
Returns:
this node's Operator.

setOperator

public final void setOperator(BooleanOperator operator)

eval

public final boolean eval(ServiceObject sObject)
                   throws EvaluationException
Description copied from class: ExpressionNode
NOTE: Do not use this function. It is for internal use only. Evaluate the expression at this node.
Overrides:
eval in class ExpressionNode
Following copied from class: edu.cmu.aura.service.query.ExpressionNode
Parameters:
sObject - the ServiceObject to evaluate this expression node on.
Returns:
the value obtained by evaluating this expression.

eval

public final int eval(ServiceObject sObject,
                      java.util.ArrayList ncAttribs)
               throws EvaluationException
Description copied from class: ExpressionNode
NOTE: Do not use this function. It is for internal use only. Evaluate the expression at this node.
Overrides:
eval in class ExpressionNode
Following copied from class: edu.cmu.aura.service.query.ExpressionNode
Parameters:
sObject - the ServiceObject to evaluate this expression node on.
Returns:
the value obtained by evaluating this expression.

getLeftChild

public final java.lang.Object getLeftChild()
Description copied from class: ExpressionNode
Get the left child of this node.
Overrides:
getLeftChild in class ExpressionNode
Following copied from class: edu.cmu.aura.service.query.ExpressionNode
Returns:
the left child of this node.

getRightChild

public final java.lang.Object getRightChild()
Description copied from class: ExpressionNode
Get the right child of this node.
Overrides:
getRightChild in class ExpressionNode
Following copied from class: edu.cmu.aura.service.query.ExpressionNode
Returns:
the right child of this node.

setLeftChild

public final void setLeftChild(ExpressionNode leftChild)

setRightChild

public final void setRightChild(ExpressionNode rightChild)