< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 57,80 **** * @param strict * Indicates whether module names are checked or not */ ModuleDescriptor.Builder newModuleBuilder(String mn, boolean strict, ! boolean open, ! boolean synthetic); /** ! * Returns the set of packages that are exported (unconditionally or ! * unconditionally). */ ! Set<String> exportedPackages(ModuleDescriptor.Builder builder); /** ! * Returns the set of packages that are opened (unconditionally or ! * unconditionally). */ ! Set<String> openPackages(ModuleDescriptor.Builder builder); /** * Returns a {@code ModuleDescriptor.Requires} of the given modifiers * and module name. */ --- 57,81 ---- * @param strict * Indicates whether module names are checked or not */ ModuleDescriptor.Builder newModuleBuilder(String mn, boolean strict, ! Set<ModuleDescriptor.Modifier> ms); /** ! * Returns a snapshot of the packages in the module. */ ! Set<String> packages(ModuleDescriptor.Builder builder); /** ! * Adds a dependence on a module with the given (possibly un-parsable) ! * version string. */ ! void requires(ModuleDescriptor.Builder builder, ! Set<Requires.Modifier> ms, ! String mn, ! String compiledVersion); /** * Returns a {@code ModuleDescriptor.Requires} of the given modifiers * and module name. */
*** 112,138 **** * of the given service name and providers. */ Provides newProvides(String service, List<String> providers); /** - * Returns a {@code ModuleDescriptor.Version} of the given version. - */ - Version newVersion(String v); - - /** - * Clones the given module descriptor with an augmented set of packages - */ - ModuleDescriptor newModuleDescriptor(ModuleDescriptor md, Set<String> pkgs); - - /** * Returns a new {@code ModuleDescriptor} instance. */ ModuleDescriptor newModuleDescriptor(String name, Version version, ! boolean open, ! boolean automatic, ! boolean synthetic, Set<Requires> requires, Set<Exports> exports, Set<Opens> opens, Set<String> uses, Set<Provides> provides, --- 113,127 ---- * of the given service name and providers. */ Provides newProvides(String service, List<String> providers); /** * Returns a new {@code ModuleDescriptor} instance. */ ModuleDescriptor newModuleDescriptor(String name, Version version, ! Set<ModuleDescriptor.Modifier> ms, Set<Requires> requires, Set<Exports> exports, Set<Opens> opens, Set<String> uses, Set<Provides> provides,
*** 146,156 **** /** * Resolves a collection of root modules, with service binding * and the empty configuration as the parent. The post resolution * checks are optionally run. */ ! Configuration resolveRequiresAndUses(ModuleFinder finder, Collection<String> roots, boolean check, PrintStream traceOutput); } --- 135,145 ---- /** * Resolves a collection of root modules, with service binding * and the empty configuration as the parent. The post resolution * checks are optionally run. */ ! Configuration resolveAndBind(ModuleFinder finder, Collection<String> roots, boolean check, PrintStream traceOutput); }
< prev index next >