APIdia Launch Partner
Top Description Constructors Methods
jdk.internal.module

public final Class DefaultRoots

extends Object
Class Inheritance
Imports
java.lang.module.ModuleDescriptor, .ModuleFinder, .ModuleReference, java.util.Set, java.util.stream.Collectors

Defines methods to compute the default set of root modules for the unnamed module.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static Set<String>
compute(ModuleFinder finder1, ModuleFinder finder2)

Returns the default set of root modules for the unnamed module from the modules observable with the intersection of two module finders.

public static Set<String>
compute(ModuleFinder finder)

Returns the default set of root modules for the unnamed module from the modules observable with the given module finder.

private static boolean
exportsAPI(ModuleDescriptor descriptor)

Returns true if the given module exports a package to all modules

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultRootsback to summary
private DefaultRoots()

Method Detail

computeback to summary
pack-priv static Set<String> compute(ModuleFinder finder1, ModuleFinder finder2)

Returns the default set of root modules for the unnamed module from the modules observable with the intersection of two module finders. The first module finder should be the module finder that finds modules on the upgrade module path or among the system modules. The second module finder should be the module finder that finds all modules on the module path, or a subset of when using --limit-modules.

computeback to summary
public static Set<String> compute(ModuleFinder finder)

Returns the default set of root modules for the unnamed module from the modules observable with the given module finder. This method is used by the jlink system modules plugin.

exportsAPIback to summary
private static boolean exportsAPI(ModuleDescriptor descriptor)

Returns true if the given module exports a package to all modules