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


Constructor Summary
LeafExpressionNode()
           
LeafExpressionNode(LeafOperator leafOperator, java.lang.String attribName, Literal literal)
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeafExpressionNode

public LeafExpressionNode()

LeafExpressionNode

public LeafExpressionNode(LeafOperator leafOperator,
                          java.lang.String attribName,
                          Literal literal)
Method Detail

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