/** * Fixup all references to global functions. This method is called * on completion of query parsing. Each XQueryFunction is required to * bind all references to that function to the object representing the run-time * executable code of the function. * <p>This method is for internal use.</p> * * @param env the static context for the main query body. * @throws net.sf.saxon.trans.XPathException * if an error occurs */ protected void fixupGlobalFunctions(/*@NotNull*/ QueryModule env) throws XPathException { ExpressionVisitor visitor = ExpressionVisitor.make(env); for (XQueryFunction fn : functions.values()) { fn.compile(); } for (XQueryFunction fn : functions.values()) { fn.checkReferences(visitor); } }
/** * Fixup all references to global functions. This method is called * on completion of query parsing. Each XQueryFunction is required to * bind all references to that function to the object representing the run-time * executable code of the function. * <p>This method is for internal use.</p> * * @param env the static context for the main query body. * @throws net.sf.saxon.trans.XPathException * if an error occurs */ protected void fixupGlobalFunctions(/*@NotNull*/ QueryModule env) throws XPathException { ExpressionVisitor visitor = ExpressionVisitor.make(env); for (XQueryFunction fn : functions.values()) { fn.compile(); } for (XQueryFunction fn : functions.values()) { fn.checkReferences(visitor); } }
/** * Fixup all references to global functions. This method is called * on completion of query parsing. Each XQueryFunction is required to * bind all references to that function to the object representing the run-time * executable code of the function. * <p> * This method is for internal use. * @param env the static context for the main query body. */ protected void fixupGlobalFunctions(QueryModule env) throws XPathException { ExpressionVisitor visitor = ExpressionVisitor.make(env); Iterator iter = functions.values().iterator(); while (iter.hasNext()) { XQueryFunction fn = (XQueryFunction)iter.next(); fn.compile(); } iter = functions.values().iterator(); while (iter.hasNext()) { XQueryFunction fn = (XQueryFunction)iter.next(); visitor.setExecutable(fn.getExecutable()); fn.checkReferences(visitor); } }
/** * Fixup all references to global functions. This method is called * on completion of query parsing. Each XQueryFunction is required to * bind all references to that function to the object representing the run-time * executable code of the function. * <p> * This method is for internal use. * @param env the static context for the main query body. */ protected void fixupGlobalFunctions(QueryModule env) throws XPathException { ExpressionVisitor visitor = ExpressionVisitor.make(env); Iterator iter = functions.values().iterator(); while (iter.hasNext()) { XQueryFunction fn = (XQueryFunction)iter.next(); fn.compile(); } iter = functions.values().iterator(); while (iter.hasNext()) { XQueryFunction fn = (XQueryFunction)iter.next(); visitor.setExecutable(fn.getExecutable()); fn.checkReferences(visitor); } }