Package net.sf.saxon.expr
Class LocalVariableReference
java.lang.Object
net.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.VariableReference
net.sf.saxon.expr.LocalVariableReference
- All Implemented Interfaces:
Serializable
,SourceLocator
,BindingReference
,Container
,Expression
,InstructionInfoProvider
Variable reference: a reference to a local variable. This subclass of VariableReference
bypasses the Binding object to get the value directly from the relevant slot in the local
stackframe.
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.saxon.expr.VariableReference
binding, constantValue, displayName, staticType
Fields inherited from class net.sf.saxon.expr.ComputedExpression
locationId, staticProperties
Fields inherited from interface net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
Replace this VariableReference where appropriate by a more efficient implementation.Methods inherited from class net.sf.saxon.expr.VariableReference
computeCardinality, computeSpecialProperties, copy, display, equals, evaluateItem, fixup, getBinding, getImplementationMethod, getIntrinsicDependencies, getItemType, hashCode, iterate, optimize, process, promote, setStaticType, typeCheck
Methods inherited from class net.sf.saxon.expr.ComputedExpression
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterateSubExpressions, markTailFunctionCalls, replaceSubExpression, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, simplify, suppressValidation, typeError
-
Field Details
-
slotNumber
int slotNumber
-
-
Constructor Details
-
LocalVariableReference
public LocalVariableReference(int slotNumber)
-
-
Method Details
-
getSlotNumber
public int getSlotNumber() -
evaluateVariable
- Overrides:
evaluateVariable
in classVariableReference
- Throws:
XPathException
-
refineVariableReference
public void refineVariableReference()Replace this VariableReference where appropriate by a more efficient implementation.- Overrides:
refineVariableReference
in classVariableReference
-