public static class ArithmeticExpression.NumericArithmetic extends ArithmeticExpression
ArithmeticExpression.DateAndDuration, ArithmeticExpression.DateDifference, ArithmeticExpression.DurationAddition, ArithmeticExpression.DurationDivision, ArithmeticExpression.DurationMultiplication, ArithmeticExpression.NumericArithmetic
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
backCompatible |
operand0, operand1, operator
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
ArithmeticExpression.NumericArithmetic(Expression p1,
int operator,
Expression p2) |
Modifier and Type | Method and Description |
---|---|
static Item |
doArithmetic(Expression operand0,
int operator,
Expression operand1,
XPathContext context,
boolean backwardsCompatible) |
Item |
evaluateItem(XPathContext context)
Evaluate the expression.
|
boolean |
isBackwardsCompatible() |
void |
setBackwardsCompatible(boolean flag) |
getItemType, typeCheck
computeCardinality, computeSpecialProperties, display, displayOperator, equals, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, replaceSubExpression, simplify
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
public ArithmeticExpression.NumericArithmetic(Expression p1, int operator, Expression p2)
public void setBackwardsCompatible(boolean flag)
public boolean isBackwardsCompatible()
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ArithmeticExpression
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic static Item doArithmetic(Expression operand0, int operator, Expression operand1, XPathContext context, boolean backwardsCompatible) throws XPathException
XPathException