- All Known Implementing Classes:
ModuleInfo.BuilderBase.ModuleInfoImpl
public interface ModuleInfo
Module info.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forModuleInfo
.static class
Fluent API builder base forModuleInfo
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleInfo.Builder
builder()
Create a new fluent API builder to customize configuration.static ModuleInfo.Builder
builder
(ModuleInfo instance) Create a new fluent API builder from an existing instance.exports()
Exports of the module.first export that does not export to a specific module (if present).boolean
isOpen()
Whether this module is declared as open module.name()
Name of the module.opens()
Map of opened packages to modules (if any).provides()
Map of provider interfaces to provider implementations provided by this module.requires()
Declared dependencies of the module.uses()
Used service loader providers.
-
Field Details
-
DEFAULT_MODULE_NAME
The default module name (i.e., "unnamed").- See Also:
-
FILE_NAME
The file name in sources ("module-info.java").- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
name
String name()Name of the module.- Returns:
- module name
-
isOpen
boolean isOpen()Whether this module is declared as open module.- Returns:
- whether this module is open
-
requires
List<ModuleInfoRequires> requires()Declared dependencies of the module.- Returns:
- list of requires
-
exports
Exports of the module.- Returns:
- map of exported packages (exports x.y.z to a.b.cSomeModule).
-
uses
Used service loader providers.- Returns:
- list of used provider interfaces
-
provides
Map of provider interfaces to provider implementations provided by this module.- Returns:
- map of interface to implementations
-
opens
Map of opened packages to modules (if any).- Returns:
- map of package to modules
-
firstUnqualifiedExport
first export that does not export to a specific module (if present).- Returns:
- package that is exported
-