public class EagerLetExpression extends LetExpression
hasLoopingReference, isIndexedVariable, references, requiredType, slotNumber, variableNameEFFECTIVE_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 |
|---|
EagerLetExpression() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
optimize(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Perform optimisation of an expression and its subexpressions.
|
checkPermittedContents, computeCardinality, computeSpecialProperties, copy, effectiveBooleanValue, eval, evaluateItem, evaluatePendingUpdates, export, getCost, getEvaluationMode, getExpressionName, getImplementationMethod, getIntegerBounds, getItemType, getStaticUType, implementsStaticTypeCheck, isInstruction, isLiftable, isNeedsLazyEvaluation, isVacuousExpression, iterate, markTailFunctionCalls, process, processLeavingTail, resetLocalStaticProperties, setEvaluationMode, setInstruction, setNeedsEagerEvaluation, setNeedsLazyEvaluation, staticTypeCheck, toShortString, toString, typeCheckaddReference, addToPathMap, checkForUpdatingSubexpressions, computeDependencies, evaluateVariable, getAction, getActionOp, getIntegerBoundsForVariable, getLocalSlotNumber, getNominalReferenceCount, getObjectName, getRequiredSlots, getRequiredType, getSequence, getSequenceOp, getVariableEQName, getVariableName, getVariableQName, hasVariableBinding, isAssignable, isGlobal, isIndexedVariable, isUpdatingExpression, operands, rebuildReferenceList, refineTypeInformation, removeDeadReferences, replaceVariable, setAction, setIndexedVariable, setRequiredType, setSequence, setSlotNumber, setVariableQName, suppressValidation, unordered, verifyReferencesadoptChildExpression, allowExtractingCommonSubexpressions, checkedOperands, computeHashCode, computeStaticProperties, dynamicError, evaluateAsString, explain, getCardinality, getConfiguration, getConstructType, getDependencies, getEvaluationMethod, getExtraProperty, getInterpretedExpression, getIntrinsicDependencies, getLocalRetainedStaticContext, getLocation, getNetCost, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getScopingExpression, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, getStreamerName, hasCompatibleStaticContext, hashCode, identityHashCode, isCallOn, isCallOnSystemFunction, isIdentical, isMultiThreaded, isSameExpression, isStaticPropertiesKnown, isSubtreeExpression, operandList, operandSparseList, optimizeChildren, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setFlattened, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplify, simplifyChildren, toPattern, typeCheckChildren, typeError, verifyParentPointers, verifyParentPointerspublic Expression optimize(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
LetExpressionThis method is called after all references to functions and variables have been resolved to the declaration of the function or variable, and after all type checking has been done.
optimize in class LetExpressionvisitor - an expression visitorcontextItemType - the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPEXPathException - if an error is discovered during this phase
(typically a type error)Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.