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()
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, typeCheck
adoptChildExpression, 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, unordered
public GlobalVariableReference(StructuredQName name)
public GlobalVariableReference(GlobalVariable var)
public Expression copy()
VariableReference
copy
in class VariableReference
public 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)
export
in class VariableReference
out
- the expression presenter used to display the structurepublic Set<Expression> getPreconditions()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.