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 TypeMethodDescriptionvoidcompile(Executable exec, int slot) Create a compiled representation of this global variable.voidMethods 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, typeCheckMethods 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, setSystemIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.expr.Locatable
getLocationMethods inherited from interface net.sf.saxon.trace.TraceableComponent
getBody, setBody
-
Constructor Details
-
UndeclaredVariable
public UndeclaredVariable()
-
-
Method Details
-
transferReferences
-
compile
Description copied from class:GlobalVariableCreate a compiled representation of this global variable. Used in XQuery only.- Overrides:
compilein classGlobalVariable- Parameters:
exec- the executableslot- the slot number allocated to this variable- Throws:
XPathException- if compile-time errors are found.
-