org.apache.commons.jxpath.ri.compiler
Class CoreOperationCompare

java.lang.Object
  extended byorg.apache.commons.jxpath.ri.compiler.Expression
      extended byorg.apache.commons.jxpath.ri.compiler.Operation
          extended byorg.apache.commons.jxpath.ri.compiler.CoreOperation
              extended byorg.apache.commons.jxpath.ri.compiler.CoreOperationCompare
Direct Known Subclasses:
CoreOperationEqual, CoreOperationNotEqual

public abstract class CoreOperationCompare
extends CoreOperation

Common superclass for the implementations of Expression for the operations "=" and "!=".

Version:
$Revision: 1.3 $ $Date: 2004/02/29 14:17:38 $
Author:
Dmitri Plotnikov

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.jxpath.ri.compiler.Expression
Expression.PointerIterator, Expression.ValueIterator
 
Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Operation
args
 
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression
NOT_A_NUMBER, ONE, ZERO
 
Constructor Summary
CoreOperationCompare(Expression arg1, Expression arg2)
           
 
Method Summary
protected  boolean contains(java.util.Iterator it, java.lang.Object value)
           
protected  boolean equal(EvalContext context, Expression left, Expression right)
          Compares two values
protected  boolean equal(java.lang.Object l, java.lang.Object r)
           
protected  boolean findMatch(java.util.Iterator lit, java.util.Iterator rit)
           
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperation
compute, computeValue, getPrecedence, getSymbol, isSymmetric, toString
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Operation
computeContextDependent, getArguments
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression
isContextDependent, iterate, iteratePointers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoreOperationCompare

public CoreOperationCompare(Expression arg1,
                            Expression arg2)
Method Detail

equal

protected boolean equal(EvalContext context,
                        Expression left,
                        Expression right)
Compares two values


contains

protected boolean contains(java.util.Iterator it,
                           java.lang.Object value)

findMatch

protected boolean findMatch(java.util.Iterator lit,
                            java.util.Iterator rit)

equal

protected boolean equal(java.lang.Object l,
                        java.lang.Object r)