org.planx.xpath.expr.operator
Class RelationalOperator

java.lang.Object
  extended by org.planx.xpath.expr.Expression
      extended by org.planx.xpath.expr.operator.Operator
          extended by org.planx.xpath.expr.operator.RelationalOperator
Direct Known Subclasses:
GreaterOrEqualOperator, GreaterThanOperator, LessOrEqualOperator, LessThanOperator

public abstract class RelationalOperator
extends Operator

Relational operators include equals, not equals, less than, greater then, etc.


Field Summary
 
Fields inherited from class org.planx.xpath.expr.operator.Operator
e1, e2
 
Constructor Summary
RelationalOperator(Expression e1, Expression e2)
           
 
Method Summary
protected abstract  boolean compare(double v1, double v2)
           
protected abstract  boolean compareSets(double v1_min, double v1_max, double v2_min, double v2_max)
           
protected  XObject evaluate(XObject o1, XObject o2, Navigator navigator)
           
 
Methods inherited from class org.planx.xpath.expr.operator.Operator
evaluate, operatorName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationalOperator

public RelationalOperator(Expression e1,
                          Expression e2)
Method Detail

evaluate

protected XObject evaluate(XObject o1,
                           XObject o2,
                           Navigator navigator)
                    throws XPathException
Specified by:
evaluate in class Operator
Throws:
XPathException

compareSets

protected abstract boolean compareSets(double v1_min,
                                       double v1_max,
                                       double v2_min,
                                       double v2_max)

compare

protected abstract boolean compare(double v1,
                                   double v2)


Copyright © 2010. All Rights Reserved.