Class UndeclaredVariable
java.lang.Object
net.sf.saxon.query.GlobalVariableDefinition
net.sf.saxon.query.UndeclaredVariable
- All Implemented Interfaces:
SourceLocator, VariableDeclaration, Declaration
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 GlobalVariableDefinition
references -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(Executable exec, int slot) Create a compiled representation of this global variablevoidMethods inherited from class GlobalVariableDefinition
explain, getColumnNumber, getCompiledVariable, getLineNumber, getPublicId, getRequiredType, getSystemId, getValueExpression, getVariableQName, isParameter, isPrivate, iterateReferences, registerReference, setIsParameter, setLineNumber, setPrivate, setRequiredType, setSystemId, setValueExpression, setVariableQName, typeCheck
-
Constructor Details
-
UndeclaredVariable
public UndeclaredVariable()
-
-
Method Details
-
transferReferences
-
compile
Description copied from class:GlobalVariableDefinitionCreate a compiled representation of this global variable- Overrides:
compilein classGlobalVariableDefinition- Parameters:
exec- the executableslot- the slot number allocated to this variable- Returns:
- the compiled representation
- Throws:
XPathException- if compile-time errors are found.
-