Debian Codegraph @

net/sf/saxon/query/QueryLibrary.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.query;
9
10 import net.sf.saxon.trans.XPathException;
11
12 /**
13 * A QueryLibrary represents an independently compiled set of query modules that does not include a
14 * main module. Such a library can be compiled once, and then linked to different main modules without
15 * recompilation. The library contains one top-level module (itself a library module) together with the tree
16 * of modules that it imports; it is identified by the module URI of the top-level module.
17 * <p>This is an abstract class; the concrete implementation is in Saxon-EE.</p>
18 */
19 public abstract class QueryLibrary extends QueryModule {
20
21 public QueryLibrary(StaticQueryContext sqc) throws XPathException {
22 super(sqc);
23 }
24
25 /**
26 * Link this library module to a module that imports it
27 *
28 * @param importer the importing module (a user of the library)
29 */
30
31 public abstract void link(QueryModule importer) throws XPathException;
32 }
33