Class CoreOperationLessThan
- java.lang.Object
-
- org.apache.commons.jxpath.ri.compiler.Expression
-
- org.apache.commons.jxpath.ri.compiler.Operation
-
- org.apache.commons.jxpath.ri.compiler.CoreOperation
-
- org.apache.commons.jxpath.ri.compiler.CoreOperationRelationalExpression
-
- org.apache.commons.jxpath.ri.compiler.CoreOperationLessThan
-
public class CoreOperationLessThan extends CoreOperationRelationalExpression
Implementation ofExpression
for the operation "<".- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
-
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.CoreOperation
ADD_PRECEDENCE, AND_PRECEDENCE, COMPARE_PRECEDENCE, MULTIPLY_PRECEDENCE, NEGATE_PRECEDENCE, OR_PRECEDENCE, RELATIONAL_EXPR_PRECEDENCE, UNION_PRECEDENCE
-
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression
NOT_A_NUMBER, ONE, ZERO
-
-
Constructor Summary
Constructors Constructor Description CoreOperationLessThan(Expression arg1, Expression arg2)
Create a new CoreOperationLessThan.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
evaluateCompare(int compare)
Template method for subclasses to evaluate the result of a comparison.java.lang.String
getSymbol()
Returns the XPath symbol for this operation, e.g.-
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperationRelationalExpression
computeValue, getPrecedence, isSymmetric
-
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperation
compute, 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
-
-
-
-
Constructor Detail
-
CoreOperationLessThan
public CoreOperationLessThan(Expression arg1, Expression arg2)
Create a new CoreOperationLessThan.- Parameters:
arg1
- left Expressionarg2
- right Expression
-
-
Method Detail
-
evaluateCompare
protected boolean evaluateCompare(int compare)
Description copied from class:CoreOperationRelationalExpression
Template method for subclasses to evaluate the result of a comparison.- Specified by:
evaluateCompare
in classCoreOperationRelationalExpression
- Parameters:
compare
- result of comparison to evaluate- Returns:
- ultimate operation success/failure
-
getSymbol
public java.lang.String getSymbol()
Description copied from class:CoreOperation
Returns the XPath symbol for this operation, e.g. "+", "div", etc.- Specified by:
getSymbol
in classCoreOperation
- Returns:
- String symbol
-
-