net.sf.saxon.instruct
Class GlobalVariable
- Container, Serializable, SourceLocator, Binding, EvaluableItem, InstructionInfoProvider, SequenceIterable, SourceLocator, TailCallReturner
public class GlobalVariable
A compiled global variable in a stylesheet or query.
copy , evaluateItem , explain , getCardinality , getEvaluationMode , getInstructionNameCode , getItemType , getLocalSlotNumber , getRequiredType , getSelectExpression , getSelectValue , getSlotNumber , getVariableQName , init , isAssignable , isGlobal , isImplicitlyRequiredParam , isRequiredParam , isTunnelParam , iterate , iterateSubExpressions , optimize , promoteInst , replaceSubExpression , setAssignable , setImplicitlyRequiredParam , setReferenceCount , setRequiredParam , setRequiredType , setSelectExpression , setSlotNumber , setTunnel , setVariableQName , simplify , typeCheck |
assembleParams , assembleTunnelParams , computeCardinality , computeSpecialProperties , createsNewNodes , dynamicError , evaluateAsString , evaluateItem , getImplementationMethod , getInstructionInfo , getInstructionNameCode , getItemType , getSourceLocator , isXSLT , iterate , process , processLeavingTail , promote , promoteInst , simplify |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
GlobalVariable
public GlobalVariable()
Create a global variable
lookForCycles
public void lookForCycles(Stack referees,
XQueryFunctionLibrary globalFunctionLibrary)
throws XPathException
Check for cycles in this variable definition
referees
- the calls leading up to this one; it's an error if this variable is on the
stack, because that means it calls itself directly or indirectly. The stack may contain
variable definitions (GlobalVariable objects) and user-defined functions (UserFunction objects).
It will never contain the same object more than once.globalFunctionLibrary
- the library containing all global functions
setContainsLocals
public void setContainsLocals(SlotManager map)
The expression that initializes a global variable may itself use local variables.
In this case a stack frame needs to be allocated while evaluating the global variable
map
- The stack frame map for local variables used while evaluating this global
variable.
setExecutable
public void setExecutable(Executable executable)
Set the containing executable
executable
- the executable that contains this global variable
setHostLanguage
public void setHostLanguage(int language)
Set the host language for this declaration
language
- the host language (for example XSLT, XQuery)