Class CoreOperationGreaterThan
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.CoreOperationGreaterThan
Implementation of
Expression for the operation ">".-
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_PRECEDENCEFields inherited from class org.apache.commons.jxpath.ri.compiler.Expression
NOT_A_NUMBER, ONE, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionCoreOperationGreaterThan(Expression arg1, Expression arg2) Constructs a new CoreOperationGreaterThan. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanevaluateCompare(int compare) Template method for subclasses to evaluate the result of a comparison.Returns the XPath symbol for this operation, e.g. "+", "div", etc.Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperationRelationalExpression
computeValue, getPrecedence, isSymmetricMethods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperation
compute, toStringMethods inherited from class org.apache.commons.jxpath.ri.compiler.Operation
computeContextDependent, getArgumentsMethods inherited from class org.apache.commons.jxpath.ri.compiler.Expression
isContextDependent, iterate, iteratePointers
-
Constructor Details
-
CoreOperationGreaterThan
Constructs a new CoreOperationGreaterThan.- Parameters:
arg1- left operandarg2- right operand
-
-
Method Details
-
evaluateCompare
Description copied from class:CoreOperationRelationalExpressionTemplate method for subclasses to evaluate the result of a comparison.- Specified by:
evaluateComparein classCoreOperationRelationalExpression- Parameters:
compare- result of comparison to evaluate- Returns:
- ultimate operation success/failure
-
getSymbol
Description copied from class:CoreOperationReturns the XPath symbol for this operation, e.g. "+", "div", etc.- Specified by:
getSymbolin classCoreOperation- Returns:
- String symbol
-