public class ArithmeticExpression10 extends ArithmeticExpression implements Callable
ArithmeticExpression for the non-backwards
compatible case.calculatoroperatorEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD| Constructor and Description |
|---|
ArithmeticExpression10(Expression p0,
int operator,
Expression p1)
Create an arithmetic expression to be evaluated in XPath 1.0 mode
|
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
Expression |
copy(RebindingMap rebindings)
Copy an expression.
|
AtomicValue |
evaluateItem(XPathContext context)
Evaluate the expression.
|
protected void |
explainExtraAttributes(ExpressionPresenter out)
Add subclass-specific attributes to the expression tree explanation.
|
PlainType |
getItemType()
Determine the data type of the expression, if this is known statically
|
void |
setCalculator(Calculator calc)
Set the calculator externally (used when reconstructing the expression tree)
|
protected java.lang.String |
tag()
Get the element name used to identify this expression in exported expression format
|
Expression |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo)
Type-check the expression statically.
|
compute, computeSpecialProperties, getCalculator, getExpressionName, getIntegerBounds, getStaticUType, mapOpCode, resetLocalStaticPropertiescomputeCardinality, computeHashCode, displayOperator, equals, export, getImplementationMethod, getLhs, getLhsExpression, getOperandRole, getOperator, getRhs, getRhsExpression, isAssociative, isCommutative, isInverse, operands, optimize, setFlattened, setLhsExpression, setRhsExpression, toShortString, toStringaddToPathMap, adoptChildExpression, allowExtractingCommonSubexpressions, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getExtraProperty, getInterpretedExpression, getIntrinsicDependencies, getLocalRetainedStaticContext, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getScopingExpression, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, getStreamerName, hasCompatibleStaticContext, hashCode, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isInstruction, isLiftable, isMultiThreaded, isSameExpression, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, process, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, typeCheckChildren, typeError, unordered, verifyParentPointers, verifyParentPointerspublic ArithmeticExpression10(Expression p0, int operator, Expression p1)
p0 - the first operandoperator - the operator, for example Token.PLUSp1 - the second operandpublic Expression typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo) throws XPathException
typeCheck in class ArithmeticExpressionvisitor - an expression visitorcontextInfo - Information available statically about the context item: whether it is (possibly)
absent; its static type; its streaming posture.XPathException - if an error is discovered during this phase
(typically a type error)public void setCalculator(Calculator calc)
setCalculator in class ArithmeticExpressioncalc - the calculator to be usedpublic PlainType getItemType()
getItemType in class ArithmeticExpressionpublic Expression copy(RebindingMap rebindings)
copy in class ArithmeticExpressionrebindings - protected java.lang.String tag()
BinaryExpressiontag in class ArithmeticExpressionprotected void explainExtraAttributes(ExpressionPresenter out)
BinaryExpressionexplainExtraAttributes in class ArithmeticExpressionout - the output destination for the displayed expression treepublic AtomicValue evaluateItem(XPathContext context) throws XPathException
evaluateItem in class ArithmeticExpressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
call in interface Callablecontext - the dynamic evaluation contextarguments - the values of the arguments, supplied as SequenceIteratorsXPathException - if a dynamic error occurs during the evaluation of the expressionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.