public class LocalVariableReference extends VariableReference
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
slotNumber |
binding, constantValue, displayName, staticTypeEVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD| 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, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getExpressionName, getHostLanguage, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, iterateSubExpressions, markTailFunctionCalls, replaceSubExpression, resetLocalStaticProperties, setContainer, setEvaluationMethod, 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