java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, BindingReference
, InstructionInfo
, org.xml.sax.Locator
public class LocalVariableReference extends VariableReference
Modifier and Type | Field | Description |
---|---|---|
(package private) int |
slotNumber |
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
binding, constantValue, displayName, 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, 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, hasVariableBinding, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, iterateSubExpressions, markTailFunctionCalls, replaceSubExpression, resetLocalStaticProperties, setContainer, setEvaluationMethod, setLocationId, simplify, staticTypeCheck, suppressValidation, typeError
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public LocalVariableReference()
public LocalVariableReference(Binding binding)
binding
- the binding (that is, the declaration of this local variable)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 contextXPathException
- if any dynamic error occurs while evaluating the variable