net.sf.saxon.expr
Class LocalVariableReference
- BindingReference, EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public class LocalVariableReference
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.
addToPathMap , computeCardinality , computeSpecialProperties , copy , equals , evaluateItem , evaluateVariable , explain , fixup , getBinding , getDisplayName , getImplementationMethod , getIntrinsicDependencies , getItemType , hashCode , isFiltered , isFlattened , isInLoop , iterate , optimize , process , promote , refineVariableReference , refineVariableType , setFiltered , setFlattened , setStaticType , toString , typeCheck |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
LocalVariableReference
public LocalVariableReference()
Create a local variable reference. The binding and slot number will be supplied later
LocalVariableReference
public LocalVariableReference(Binding binding)
Create a LocalVariableReference bound to a given Binding
binding
- the binding (that is, the declaration of this local variable)
getSlotNumber
public int getSlotNumber()
Get the slot number allocated to this local variable
refineVariableReference
public void refineVariableReference()
Replace this VariableReference where appropriate by a more efficient implementation.
setSlotNumber
public void setSlotNumber(int slotNumber)
Set the slot number for this local variable, that is, its position in the local stack frame
slotNumber
- the slot number to be used