KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gnu > expr > ModuleSet


1 package gnu.expr;
2
3 /** The compiler generates extensions of this class.
4  * For each compiler-generated {@code PACKAGE} the
5  * compiler also generates a class {@code PACKAGE.$ModulesMap$}
6  * that extends {@code ModuleSet}.
7  * This is used to register the modules in a given package
8  * with the active {@link ModuleManager}. This is needed for XQuery where
9  * there may be multiple modules with the same namespace URI. To import
10  * all the modules in a given namespace, the compiler maps the
11  * namespace to a package name, makes sure the package's {@code ModuleSet}
12  * is loaded, and then selects those modules whose namespace URI matches.
13  */

14
15 public abstract class ModuleSet
16 {
17   public static final String JavaDoc MODULES_MAP = "$ModulesMap$";
18
19   /** Next ModuleSet in list headed by {@link ModuleManager#packageInfoChain}. */
20   ModuleSet next;
21
22   /** The compiler generates implementations of this method.
23    * Normally, the implementation calls {@link ModuleManager#register}
24    * once for each each module in the current package.
25    */

26   public abstract void register (ModuleManager manager);
27 }
28
Popular Tags