Class UndeclaredVariable

  • All Implemented Interfaces:
    javax.xml.transform.SourceLocator, Binding, ContextOriginator, ExpressionOwner, Location, Declaration, InstructionInfo, org.xml.sax.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 Detail

      • UndeclaredVariable

        public UndeclaredVariable()
    • Method Detail

      • transferReferences

        public void transferReferences​(GlobalVariable var)
      • compile

        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.