public class GlobalVariableReference extends VariableReference implements ComponentInvocation
binding, constantValue, staticType
EFFECTIVE_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(RebindingMap rebindings)
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.
|
java.util.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, computeHashCode, computeSpecialProperties, copyFrom, equals, evaluateItem, fixup, getBinding, getDisplayName, getEQName, getExpressionName, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getItemType, getNetCost, getScopingExpression, getStaticUType, getStreamerName, getVariableName, isFiltered, isFlattened, isInLoop, iterate, optimize, process, recomputeInLoop, refineVariableType, setFiltered, setFlattened, setStaticType, setVariableName, toShortString, toString, typeCheck
adoptChildExpression, allowExtractingCommonSubexpressions, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getExtraProperty, getInterpretedExpression, getLocalRetainedStaticContext, getLocation, getObjectName, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, hasCompatibleStaticContext, hashCode, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isInstruction, isLiftable, isMultiThreaded, isSameExpression, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, markTailFunctionCalls, operandList, operands, operandSparseList, optimizeChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setExtraProperty, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, typeCheckChildren, typeError, unordered, verifyParentPointers, verifyParentPointers
public GlobalVariableReference(StructuredQName name)
public GlobalVariableReference(GlobalVariable var)
public Expression copy(RebindingMap rebindings)
VariableReference
copy
in class VariableReference
rebindings
- variables that need to switch to new bindingspublic void setBindingSlot(int slot)
setBindingSlot
in interface ComponentInvocation
slot
- the offset in the binding vector of the containing package where the target component
can be found.public int getBindingSlot()
getBindingSlot
in interface ComponentInvocation
public SymbolicName getSymbolicName()
getSymbolicName
in interface ComponentInvocation
public void setTarget(Component target)
public Component getTarget()
public Component getFixedTarget()
ComponentInvocation
getFixedTarget
in interface ComponentInvocation
public Sequence evaluateVariable(XPathContext c) throws XPathException
evaluateVariable
in class VariableReference
c
- the XPath dynamic contextXPathException
- if any error occurspublic void export(ExpressionPresenter out) throws XPathException
export
in interface ExportAgent
export
in class VariableReference
out
- the expression presenter used to display the structureXPathException
- if the export fails, for example if an expression is found that won't work
in the target environment.public java.util.Set<Expression> getPreconditions()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.