net.sf.saxon.query

Class UndeclaredVariable

Implemented Interfaces:
Declaration, SourceLocator, VariableDeclaration

public class UndeclaredVariable
extends GlobalVariableDefinition

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.query.GlobalVariableDefinition

references

Constructor Summary

UndeclaredVariable()

Method Summary

GlobalVariable
compile(Executable exec, int slot)
Create a compiled representation of this global variable
void
transferReferences(VariableDeclaration var)

Methods inherited from class net.sf.saxon.query.GlobalVariableDefinition

compile, explain, fixupReference, getColumnNumber, getCompiledVariable, getLineNumber, getPublicId, getRequiredType, getSystemId, getVariableQName, iterateReferences, registerReference, setIsParameter, setLineNumber, setRequiredType, setSystemId, setValueExpression, setVariableQName, typeCheck

Constructor Details

UndeclaredVariable

public UndeclaredVariable()

Method Details

compile

public GlobalVariable compile(Executable exec,
                              int slot)
            throws XPathException
Create a compiled representation of this global variable
Overrides:
compile in interface GlobalVariableDefinition
Parameters:
exec - the executable
slot - the slot number allocated to this variable
Returns:
the compiled representation
Throws:
XPathException - if compile-time errors are found.

transferReferences

public void transferReferences(VariableDeclaration var)