Class UndeclaredVariable

All Implemented Interfaces:
SourceLocator, Binding, ContextOriginator, ExpressionOwner, Locatable, Declaration, Location, Traceable, TraceableComponent, Locator

public class UndeclaredVariable extends GlobalVariable
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.
  • Constructor Details Link icon

    • UndeclaredVariable Link icon

      public UndeclaredVariable()
  • Method Details Link icon

    • transferReferences Link icon

      public void transferReferences(GlobalVariable var)
    • compile Link icon

      public void compile(Executable exec, int slot) throws XPathException
      Description copied from class: GlobalVariable
      Create a compiled representation of this global variable. Used in XQuery only.
      Overrides:
      compile in class GlobalVariable
      Parameters:
      exec - the executable
      slot - the slot number allocated to this variable
      Throws:
      XPathException - if compile-time errors are found.