public class GlobalVariableReference extends VariableReference implements ComponentInvocation
binding, constantValue, staticTypeEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD| Constructor and Description |
|---|
GlobalVariableReference(GlobalVariable var) |
GlobalVariableReference(StructuredQName name) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
copy()
Create a clone copy of this VariableReference
|
Sequence |
evaluateVariable(XPathContext c)
Evaluate this variable
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
int |
getBindingSlot()
Get the binding slot to be used.
|
Component |
getFixedTarget()
Get the target component if this is known in advance, that is, if the target component
is private or final, or in some other cases such as xsl:original.
|
Set<Expression> |
getPreconditions() |
SymbolicName |
getSymbolicName()
Get the symbolic name of the component that this invocation references
|
Component |
getTarget() |
void |
setBindingSlot(int slot)
Set the binding slot to be used.
|
void |
setTarget(Component target) |
addToPathMap, computeCardinality, computeSpecialProperties, copyFrom, equals, evaluateItem, fixup, getBinding, getDisplayName, getEQName, getExpressionCompiler, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, getStreamingAdjunct, getVariableName, hashCode, isCompatible, isFiltered, isFlattened, isInLoop, iterate, optimize, process, promote, refineVariableType, setFiltered, setFlattened, setStaticType, setVariableName, toShortString, toString, typeCheckadoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getExpressionName, getHostLanguage, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operands, operandSparseList, optimizeChildren, optimizeForType, promoteChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeCheckChildren, typeError, unorderedpublic GlobalVariableReference(StructuredQName name)
public GlobalVariableReference(GlobalVariable var)
public Expression copy()
VariableReferencecopy in class VariableReferencepublic void setBindingSlot(int slot)
setBindingSlot in interface ComponentInvocationslot - the offset in the binding vector of the containing package where the target component
can be found.public int getBindingSlot()
getBindingSlot in interface ComponentInvocationpublic SymbolicName getSymbolicName()
getSymbolicName in interface ComponentInvocationpublic void setTarget(Component target)
public Component getTarget()
public Component getFixedTarget()
ComponentInvocationgetFixedTarget in interface ComponentInvocationpublic Sequence evaluateVariable(XPathContext c) throws XPathException
evaluateVariable in class VariableReferencec - the XPath dynamic contextXPathException - if any error occurspublic void export(ExpressionPresenter out)
export in class VariableReferenceout - the expression presenter used to display the structurepublic Set<Expression> getPreconditions()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.