public static class ArithmeticExpression.DateAndDuration extends ArithmeticExpression
ArithmeticExpression.DateAndDuration, ArithmeticExpression.DateDifference, ArithmeticExpression.DurationAddition, ArithmeticExpression.DurationDivision, ArithmeticExpression.DurationMultiplication, ArithmeticExpression.NumericArithmeticoperand0, operand1, operatorlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
DateAndDuration(Expression p1,
int operator,
Expression p2,
Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
static Item |
doArithmetic(Expression operand0,
int operator,
Expression operand1,
XPathContext context) |
Item |
evaluateItem(XPathContext context)
Evaluate the expression.
|
getItemType, typeCheckcomputeCardinality, computeSpecialProperties, display, displayOperator, equals, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, replaceSubExpression, simplifyadoptChildExpression, 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, typeErrorpublic DateAndDuration(Expression p1, int operator, Expression p2, Configuration config)
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ArithmeticExpressioncontext - 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) throws XPathException
XPathException