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 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 GlobalVariable
actuallyEvaluate, addReference, 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, setDependencies, setIndexedVariable, setOriginalVariable, setPrivate, setRequiredParam, setRequiredType, setStatic, setUnused, setVariableQName, typeCheckMethods inherited from class Actor
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getChildExpression, getColumnNumber, getComponentName, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, isExportable, makeDeclaringComponent, obtainDeclaringComponent, saveLocation, setBody, setChildExpression, setColumnNumber, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Locatable
getLocationMethods inherited from interface 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.
-