|
|||||||||
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.VariableReference |
---|
binding, constantValue, staticType |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
Constructor Summary | |
---|---|
LocalVariableReference()
Create a local variable reference. |
|
LocalVariableReference(Binding binding)
Create a LocalVariableReference bound to a given Binding |
Method Summary | |
---|---|
Expression |
copy()
Create a clone copy of this VariableReference |
ValueRepresentation |
evaluateVariable(XPathContext c)
Return the value of the variable |
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 |
Methods inherited from class net.sf.saxon.expr.VariableReference |
---|
addToPathMap, computeCardinality, computeSpecialProperties, equals, evaluateItem, explain, fixup, getBinding, getDisplayName, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, hashCode, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, toString, typeCheck |
Methods inherited from class java.lang.Object |
---|
clone, finalize, 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 Expression copy()
copy
in class VariableReference
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 variable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |