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

java.lang.Object
  |
  +--edu.cmu.aura.service.query.expression.Operator
        |
        +--edu.cmu.aura.service.query.expression.LeafOperator
Direct Known Subclasses:
OpEqual, OpGT, OpGTEQ, OpLT, OpLTEQ, OpNotEqual

public abstract class LeafOperator
extends Operator

FIXME - get rid of Literal class.


Fields inherited from class edu.cmu.aura.service.query.expression.Operator
FALSE, TRUE, UNKNOWN
 
Constructor Summary
LeafOperator()
           
 
Method Summary
 boolean eval(Attribute attrib, Literal literal)
           
 int eval(Attribute attrib, Literal literal, java.util.ArrayList ncAttribs)
           
abstract  boolean eval(java.lang.Object val1, java.lang.Object val2)
           
 boolean isUnary()
           
 
Methods inherited from class edu.cmu.aura.service.query.expression.Operator
eval, eval, eval, eval, eval, eval, eval
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeafOperator

public LeafOperator()
Method Detail

eval

public int eval(Attribute attrib,
                Literal literal,
                java.util.ArrayList ncAttribs)
         throws EvaluationException

eval

public boolean eval(Attribute attrib,
                    Literal literal)
             throws EvaluationException

eval

public abstract boolean eval(java.lang.Object val1,
                             java.lang.Object val2)
                      throws EvaluationException
Overrides:
eval in class Operator

isUnary

public boolean isUnary()
Overrides:
isUnary in class Operator