public class LocalVariableReference extends VariableReference
binding, constantValue, staticType
EFFECTIVE_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 |
---|
LocalVariableReference(LocalBinding binding)
Create a LocalVariableReference bound to a given Binding
|
LocalVariableReference(StructuredQName name)
Create a local variable reference.
|
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Create a clone copy of this VariableReference
|
Sequence |
evaluateVariable(XPathContext c)
Return the value of the variable
|
LocalBinding |
getBinding()
Get the object bound to the variable
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the LocalVariableReference expression
|
int |
getSlotNumber()
Get the slot number allocated to this local variable
|
void |
setSlotNumber(int slotNumber)
Set the slot number for this local variable, that is, its position in the local stack frame
|
addToPathMap, computeCardinality, computeSpecialProperties, copyFrom, equals, evaluateItem, export, fixup, getDisplayName, getEQName, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, getStreamingAdjunct, getVariableName, hashCode, isCompatible, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, setVariableName, toShortString, toString, typeCheck
adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getExpressionName, getHostLanguage, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operands, operandSparseList, optimizeChildren, optimizeForType, promoteChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeCheckChildren, typeError, unordered
public LocalVariableReference(StructuredQName name)
public LocalVariableReference(LocalBinding binding)
binding
- the binding (that is, the declaration of this local variable)public Expression copy()
copy
in class VariableReference
public LocalBinding getBinding()
VariableReference
getBinding
in class VariableReference
public void setSlotNumber(int slotNumber)
slotNumber
- the slot number to be usedpublic int getSlotNumber()
public Sequence evaluateVariable(XPathContext c) throws XPathException
evaluateVariable
in class VariableReference
c
- the XPath dynamic contextXPathException
- if any dynamic error occurs while evaluating the variablepublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class VariableReference
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.