Uses of Class
java.lang.module.ModuleDescriptor.Builder
Package
Description
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
-
Uses of ModuleDescriptor.Builder in java.lang.module
Modifier and TypeMethodDescriptionModuleDescriptor.Builder.exports
(ModuleDescriptor.Exports e) Adds an exported package.Adds an exported package.Adds an exported package.ModuleDescriptor.Builder.exports
(Set<ModuleDescriptor.Exports.Modifier> ms, String pn) Adds an exported package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.exports
(Set<ModuleDescriptor.Exports.Modifier> ms, String pn, Set<String> targets) Adds an exported package with the given (and possibly empty) set of modifiers.Sets the module main class.static ModuleDescriptor.Builder
ModuleDescriptor.newAutomaticModule
(String name) Instantiates a builder to build a module descriptor for an automatic module.static ModuleDescriptor.Builder
Instantiates a builder to build a module descriptor for a normal module.static ModuleDescriptor.Builder
ModuleDescriptor.newModule
(String name, Set<ModuleDescriptor.Modifier> ms) Instantiates a builder to build a module descriptor.static ModuleDescriptor.Builder
ModuleDescriptor.newOpenModule
(String name) Instantiates a builder to build a module descriptor for an open module.ModuleDescriptor.Builder.opens
(ModuleDescriptor.Opens obj) Adds an open package.Adds an open package.Adds an open package.ModuleDescriptor.Builder.opens
(Set<ModuleDescriptor.Opens.Modifier> ms, String pn) Adds an open package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.opens
(Set<ModuleDescriptor.Opens.Modifier> ms, String pn, Set<String> targets) Adds an open package with the given (and possibly empty) set of modifiers.Adds packages to the module.ModuleDescriptor.Builder.provides
(ModuleDescriptor.Provides p) Provides a service with one or more implementations.Provides implementations of a service.ModuleDescriptor.Builder.requires
(ModuleDescriptor.Requires req) Adds a dependence on a module.Adds a dependence on a module with an empty set of modifiers.ModuleDescriptor.Builder.requires
(Set<ModuleDescriptor.Requires.Modifier> ms, String mn) Adds a dependence on a module with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.requires
(Set<ModuleDescriptor.Requires.Modifier> ms, String mn, ModuleDescriptor.Version compiledVersion) Adds a dependence on a module with the given (and possibly empty) set of modifiers.Adds a service dependence.ModuleDescriptor.Builder.version
(ModuleDescriptor.Version v) Sets the module version.Sets the module version.