java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, InstructionInfoProvider
public static class ArithmeticExpression.DurationDivision extends ArithmeticExpression
ArithmeticExpression.DateAndDuration, ArithmeticExpression.DateDifference, ArithmeticExpression.DurationAddition, ArithmeticExpression.DurationDivision, ArithmeticExpression.DurationMultiplication, ArithmeticExpression.NumericArithmetic
operand0, operand1, operator
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor | Description |
---|---|
DurationDivision(Expression p1,
int operator,
Expression p2) |
Modifier and Type | Method | Description |
---|---|---|
static Item |
doArithmetic(Expression operand0,
Expression operand1,
XPathContext context) |
|
Item |
evaluateItem(XPathContext context) |
Evaluate the expression.
|
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 DurationDivision(Expression p1, int operator, Expression p2)
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, Expression operand1, XPathContext context) throws XPathException
XPathException