|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.VariableReference net.sf.saxon.expr.LocalVariableReference
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.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
---|---|
LocalVariableReference()
Create a local variable reference. |
|
LocalVariableReference(Binding binding)
Create a LocalVariableReference bound to a given Binding |
Method Summary | |
---|---|
ValueRepresentation |
evaluateVariable(XPathContext c)
Return the value of the variable |
int |
getSlotNumber()
Get the slot number allocated to this local variable |
void |
refineVariableReference()
Replace this VariableReference where appropriate by a more efficient implementation. |
void |
setSlotNumber(int slotNumber)
Set the slot number for this local variable, that is, its position in the local stack frame |
Methods inherited from class net.sf.saxon.expr.VariableReference |
---|
addToPathMap, computeCardinality, computeSpecialProperties, copy, equals, evaluateItem, explain, fixup, getBinding, getDisplayName, getImplementationMethod, getIntrinsicDependencies, getItemType, hashCode, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableReference, refineVariableType, setFiltered, setFlattened, setStaticType, toString, typeCheck |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalVariableReference()
public LocalVariableReference(Binding binding)
binding
- the binding (that is, the declaration of this local variable)Method Detail |
---|
public void setSlotNumber(int slotNumber)
slotNumber
- the slot number to be usedpublic int getSlotNumber()
public ValueRepresentation evaluateVariable(XPathContext c) throws XPathException
evaluateVariable
in class VariableReference
c
- the XPath dynamic context
XPathException
- if any dynamic error occurs while evaluating the variablepublic void refineVariableReference()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |