java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, BindingReference, EvaluableItem, SequenceIterable, InstructionInfo, org.xml.sax.Locatorpublic class LocalVariableReference extends VariableReference
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticPropertiesbinding, constantValue, staticType| Constructor | Description |
|---|---|
LocalVariableReference() |
Create a local variable reference.
|
LocalVariableReference(Binding binding) |
Create a LocalVariableReference bound to a given Binding
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, iterateSubExpressions, markTailFunctionCalls, replaceSubExpression, resetLocalStaticProperties, setContainer, setLocationId, simplify, staticTypeCheck, suppressValidation, typeErrorclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddToPathMap, computeCardinality, computeSpecialProperties, equals, evaluateItem, explain, fixup, getBinding, getDisplayName, getImplementationMethod, getIntrinsicDependencies, getItemType, hashCode, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, toString, typeCheckpublic LocalVariableReference()
public LocalVariableReference(Binding binding)
binding - the binding (that is, the declaration of this local variable)public Expression copy()
copy in class VariableReferencepublic void setSlotNumber(int slotNumber)
slotNumber - the slot number to be usedpublic int getSlotNumber()
public ValueRepresentation evaluateVariable(XPathContext c) throws XPathException
evaluateVariable in class VariableReferencec - the XPath dynamic contextXPathException - if any dynamic error occurs while evaluating the variable