< prev index next >

src/java.base/share/classes/jdk/internal/misc/JavaLangModuleAccess.java

Print this page




  56      *
  57      * @param strict
  58      *        Indicates whether module names are checked or not
  59      */
  60     ModuleDescriptor.Builder newModuleBuilder(String mn,
  61                                               boolean strict,
  62                                               Set<ModuleDescriptor.Modifier> ms);
  63 
  64     /**
  65      * Returns a snapshot of the packages in the module.
  66      */
  67     Set<String> packages(ModuleDescriptor.Builder builder);
  68 
  69     /**
  70      * Adds a dependence on a module with the given (possibly un-parsable)
  71      * version string.
  72      */
  73     void requires(ModuleDescriptor.Builder builder,
  74                   Set<Requires.Modifier> ms,
  75                   String mn,
  76                   String compiledVersion);
  77 
  78     /**
  79      * Returns a {@code ModuleDescriptor.Requires} of the given modifiers
  80      * and module name.
  81      */
  82     Requires newRequires(Set<Requires.Modifier> ms, String mn, Version v);
  83 
  84     /**
  85      * Returns an unqualified {@code ModuleDescriptor.Exports}
  86      * of the given modifiers and package name source.
  87      */
  88     Exports newExports(Set<Exports.Modifier> ms,
  89                        String source);
  90 
  91     /**
  92      * Returns a qualified {@code ModuleDescriptor.Exports}
  93      * of the given modifiers, package name source and targets.
  94      */
  95     Exports newExports(Set<Exports.Modifier> ms,
  96                        String source,


 110 
 111     /**
 112      * Returns a {@code ModuleDescriptor.Provides}
 113      * of the given service name and providers.
 114      */
 115     Provides newProvides(String service, List<String> providers);
 116 
 117     /**
 118      * Returns a new {@code ModuleDescriptor} instance.
 119      */
 120     ModuleDescriptor newModuleDescriptor(String name,
 121                                          Version version,
 122                                          Set<ModuleDescriptor.Modifier> ms,
 123                                          Set<Requires> requires,
 124                                          Set<Exports> exports,
 125                                          Set<Opens> opens,
 126                                          Set<String> uses,
 127                                          Set<Provides> provides,
 128                                          Set<String> packages,
 129                                          String mainClass,
 130                                          String osName,
 131                                          String osArch,
 132                                          String osVersion,
 133                                          int hashCode);
 134 
 135     /**
 136      * Resolves a collection of root modules, with service binding
 137      * and the empty configuration as the parent. The post resolution
 138      * checks are optionally run.
 139      */
 140     Configuration resolveAndBind(ModuleFinder finder,
 141                                  Collection<String> roots,
 142                                  boolean check,
 143                                  PrintStream traceOutput);
 144 
 145 }


  56      *
  57      * @param strict
  58      *        Indicates whether module names are checked or not
  59      */
  60     ModuleDescriptor.Builder newModuleBuilder(String mn,
  61                                               boolean strict,
  62                                               Set<ModuleDescriptor.Modifier> ms);
  63 
  64     /**
  65      * Returns a snapshot of the packages in the module.
  66      */
  67     Set<String> packages(ModuleDescriptor.Builder builder);
  68 
  69     /**
  70      * Adds a dependence on a module with the given (possibly un-parsable)
  71      * version string.
  72      */
  73     void requires(ModuleDescriptor.Builder builder,
  74                   Set<Requires.Modifier> ms,
  75                   String mn,
  76                   String rawCompiledVersion);
  77 
  78     /**
  79      * Returns a {@code ModuleDescriptor.Requires} of the given modifiers
  80      * and module name.
  81      */
  82     Requires newRequires(Set<Requires.Modifier> ms, String mn, Version v);
  83 
  84     /**
  85      * Returns an unqualified {@code ModuleDescriptor.Exports}
  86      * of the given modifiers and package name source.
  87      */
  88     Exports newExports(Set<Exports.Modifier> ms,
  89                        String source);
  90 
  91     /**
  92      * Returns a qualified {@code ModuleDescriptor.Exports}
  93      * of the given modifiers, package name source and targets.
  94      */
  95     Exports newExports(Set<Exports.Modifier> ms,
  96                        String source,


 110 
 111     /**
 112      * Returns a {@code ModuleDescriptor.Provides}
 113      * of the given service name and providers.
 114      */
 115     Provides newProvides(String service, List<String> providers);
 116 
 117     /**
 118      * Returns a new {@code ModuleDescriptor} instance.
 119      */
 120     ModuleDescriptor newModuleDescriptor(String name,
 121                                          Version version,
 122                                          Set<ModuleDescriptor.Modifier> ms,
 123                                          Set<Requires> requires,
 124                                          Set<Exports> exports,
 125                                          Set<Opens> opens,
 126                                          Set<String> uses,
 127                                          Set<Provides> provides,
 128                                          Set<String> packages,
 129                                          String mainClass,



 130                                          int hashCode);
 131 
 132     /**
 133      * Resolves a collection of root modules, with service binding
 134      * and the empty configuration as the parent. The post resolution
 135      * checks are optionally run.
 136      */
 137     Configuration resolveAndBind(ModuleFinder finder,
 138                                  Collection<String> roots,
 139                                  boolean check,
 140                                  PrintStream traceOutput);
 141 
 142 }
< prev index next >