public class LocalVariableReference extends VariableReference
binding, constantValue, staticTypeEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, INHERITED_CONTEXT, INSPECTION_CONTEXT, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, NAVIGATION_CONTEXT, NODE_VALUE_CONTEXT, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, W3C_CONSUMING, W3C_FREE_RANGING, W3C_GROUP_CONSUMING, W3C_MOTIONLESS, 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 | 
| Sequence | evaluateVariable(XPathContext c)Return the value of 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, equals, evaluateItem, explain, fixup, getBinding, getDisplayName, getEQName, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, getStreamability, 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, getStreamingAdjunct, getSystemId, getSystemId, hasVariableBinding, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSubExpressionInfo, iterateSubExpressions, markTailFunctionCalls, replaceSubExpression, resetLocalStaticProperties, setContainer, setEvaluationMethod, setLocationId, simplify, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, 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 Sequence evaluateVariable(XPathContext c) throws XPathException
evaluateVariable in class VariableReferencec - the XPath dynamic contextXPathException - if any dynamic error occurs while evaluating the variablepublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class VariableReferenceCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.