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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoolExpressionNode
public BoolExpressionNode()
BoolExpressionNode
public BoolExpressionNode(BooleanOperator operator,
ExpressionNode leftChild,
ExpressionNode rightChild)
BoolExpressionNode
public BoolExpressionNode(BooleanOperator operator,
ExpressionNode leftChild)
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)