public class LocalVariableReference extends VariableReference
binding, constantValue, staticTypeEVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties| Constructor and Description |
|---|
LocalVariableReference()
Create a local variable reference.
|
LocalVariableReference(Binding binding)
Create a LocalVariableReference bound to a given Binding
|
| Modifier and Type | Method and 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
|
addToPathMap, computeCardinality, computeSpecialProperties, equals, evaluateItem, explain, fixup, getBinding, getDisplayName, getImplementationMethod, getIntrinsicDependencies, getItemType, hashCode, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, toString, typeCheckadoptChildExpression, 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, typeErrorpublic 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