org.apache.commons.jxpath.ri.compiler

Class CoreOperationCompare

Known Direct 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/interfaces 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(Iterator it, Object value)
protected boolean
equal(Object l, Object r)
protected boolean
equal(EvalContext context, Expression left, Expression right)
Compares two values
protected boolean
findMatch(Iterator lit, 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

compute, computeContextDependent, computeValue, isContextDependent, iterate, iteratePointers

Constructor Details

CoreOperationCompare

public CoreOperationCompare(Expression arg1,
                            Expression arg2)

Method Details

contains

protected boolean contains(Iterator it,
                           Object value)

equal

protected boolean equal(Object l,
                        Object r)

equal

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

findMatch

protected boolean findMatch(Iterator lit,
                            Iterator rit)