edu.cmu.aura.service.query.expression
Class LeafExpressionNode
java.lang.Object
|
+--edu.cmu.aura.service.query.ExpressionNode
|
+--edu.cmu.aura.service.query.expression.LeafExpressionNode
- public class LeafExpressionNode
- extends ExpressionNode
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LeafExpressionNode
public LeafExpressionNode()
LeafExpressionNode
public LeafExpressionNode(LeafOperator leafOperator,
java.lang.String attribName,
Literal literal)
getOperator
public 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.
eval
public 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.
eval
public 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.
getLeftChild
public 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 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.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object