public class LocalVariableReference extends VariableReference
binding, constantValue, staticType
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD
Constructor and Description |
---|
LocalVariableReference()
Create a local variable reference.
|
LocalVariableReference(LocalBinding binding)
Create a LocalVariableReference bound to a given Binding
|
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Create a clone copy of this VariableReference
|
Sequence |
evaluateVariable(XPathContext c)
Return the value of the variable
|
LocalBinding |
getBinding()
Get the object bound to the variable
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the LocalVariableReference expression
|
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, copyFrom, equals, evaluateItem, explain, fixup, getDisplayName, getEQName, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, getStreamingAdjunct, hashCode, isCompatible, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, toShortString, toString, typeCheck
adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExpressionName, getHostLanguage, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operands, replaceOperand, resetLocalStaticProperties, setContainer, setEvaluationMethod, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeError, unordered
public LocalVariableReference()
public LocalVariableReference(LocalBinding binding)
binding
- the binding (that is, the declaration of this local variable)public Expression copy()
copy
in class VariableReference
public LocalBinding getBinding()
VariableReference
getBinding
in class VariableReference
public void setSlotNumber(int slotNumber)
slotNumber
- the slot number to be usedpublic int getSlotNumber()
public Sequence evaluateVariable(XPathContext c) throws XPathException
evaluateVariable
in class VariableReference
c
- the XPath dynamic contextXPathException
- if any dynamic error occurs while evaluating the variablepublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class VariableReference
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.