public class ArithmeticExpression10 extends ArithmeticExpression implements Callable
ArithmeticExpression
for the non-backwards
compatible case.calculator
operator
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_COST, 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 |
---|---|
AtomicValue |
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, resetLocalStaticProperties
computeCardinality, computeHashCode, displayOperator, equals, export, getImplementationMethod, getLhs, getLhsExpression, getOperandRole, getOperator, getRhs, getRhsExpression, isAssociative, isCommutative, isInverse, operands, optimize, setFlattened, setLhsExpression, setRhsExpression, toShortString, toString
addToPathMap, 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, hasSpecialProperty, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isEqual, isIdentical, isInstruction, isLiftable, isMultiThreaded, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, prepareForStreaming, process, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, typeCheckChildren, typeError, unordered, verifyParentPointers
public ArithmeticExpression10(Expression p0, int operator, Expression p1)
p0
- the first operandoperator
- the operator, for example Token.PLUS
p1
- the second operandpublic Expression typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo) throws XPathException
typeCheck
in class ArithmeticExpression
visitor
- 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 ArithmeticExpression
calc
- the calculator to be usedpublic PlainType getItemType()
getItemType
in class ArithmeticExpression
public Expression copy(RebindingMap rebindings)
copy
in class ArithmeticExpression
rebindings
- protected java.lang.String tag()
BinaryExpression
tag
in class ArithmeticExpression
protected void explainExtraAttributes(ExpressionPresenter out)
BinaryExpression
explainExtraAttributes
in class ArithmeticExpression
out
- the output destination for the displayed expression treepublic AtomicValue evaluateItem(XPathContext context) throws XPathException
evaluateItem
in class ArithmeticExpression
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic AtomicValue call(XPathContext context, Sequence[] arguments) throws XPathException
call
in interface Callable
context
- 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-2020 Saxonica Limited. All rights reserved.