org.planx.xpath.expr.operator
Class EqualityOperator

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.EqualityOperator
Direct Known Subclasses:
EqualOperator, NotEqualOperator

public abstract class EqualityOperator
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
EqualityOperator(Expression e1, Expression e2)
           
 
Method Summary
protected abstract  boolean compare(boolean v1, boolean v2)
           
protected abstract  boolean compare(double v1, double v2)
           
protected abstract  boolean compare(String v1, String v2)
           
protected abstract  boolean compare(XNodeSet o1, XNodeSet o2, Navigator navigator)
           
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

EqualityOperator

public EqualityOperator(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

compare

protected abstract boolean compare(XNodeSet o1,
                                   XNodeSet o2,
                                   Navigator navigator)
                            throws XPathException
Throws:
XPathException

compare

protected abstract boolean compare(boolean v1,
                                   boolean v2)

compare

protected abstract boolean compare(double v1,
                                   double v2)

compare

protected abstract boolean compare(String v1,
                                   String v2)


Copyright © 2010. All Rights Reserved.