Package net.sf.saxon.query
Class UndeclaredVariable
java.lang.Object
net.sf.saxon.expr.instruct.Actor
net.sf.saxon.expr.instruct.GlobalVariable
net.sf.saxon.query.UndeclaredVariable
- All Implemented Interfaces:
SourceLocator
,Binding
,ContextOriginator
,ExpressionOwner
,Locatable
,Declaration
,Location
,Traceable
,TraceableComponent
,Locator
An UndeclaredVariable object is created when a reference is encountered to a variable
that has not yet been declared. This can happen as a result of recursive module imports.
These references are resolved at the end of query parsing.
-
Field Summary
Fields inherited from class net.sf.saxon.expr.instruct.GlobalVariable
references
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
compile
(Executable exec, int slot) Create a compiled representation of this global variable.void
Methods inherited from class net.sf.saxon.expr.instruct.GlobalVariable
actuallyEvaluate, addReference, checkCircularity, countReferences, evaluateVariable, evaluateVariable, export, gatherProperties, getBinderySlotNumber, getDescription, getFlags, getHostLanguage, getIntegerBoundsForVariable, getLocalSlotNumber, getObjectName, getOriginalVariable, getProperty, getRequiredType, getSelectValue, getSymbolicName, getTracingTag, getUltimateOriginalVariable, getVariableQName, init, isAssignable, isGlobal, isIndexedVariable, isPrivate, isRequiredParam, isStatic, isUnused, iterateReferences, lookForCycles, registerReference, setAssignable, setBinderySlotNumber, setContainsLocals, setIndexedVariable, setOriginalVariable, setPrivate, setRequiredParam, setRequiredType, setStatic, setUnused, setVariableQName, typeCheck
Methods inherited from class net.sf.saxon.expr.instruct.Actor
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getChildExpression, getColumnNumber, getComponentName, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, isExportable, makeDeclaringComponent, obtainDeclaringComponent, process, saveLocation, setBody, setChildExpression, setColumnNumber, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.expr.Locatable
getLocation
Methods inherited from interface net.sf.saxon.trace.TraceableComponent
getBody, setBody
-
Constructor Details
-
Method Details
-
transferReferences
-
compile
Description copied from class:GlobalVariable
Create a compiled representation of this global variable. Used in XQuery only.- Overrides:
compile
in classGlobalVariable
- Parameters:
exec
- the executableslot
- the slot number allocated to this variable- Throws:
XPathException
- if compile-time errors are found.
-