Interface ModuleInfo
- All Known Implementing Classes:
ModuleInfo.BuilderBase.ModuleInfoImpl
public interface ModuleInfo
Module info.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forModuleInfo.static classFluent API builder base forModuleInfo. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleInfo.Builderbuilder()Create a new fluent API builder to customize configuration.static ModuleInfo.Builderbuilder(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).booleanisOpen()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
-
FILE_NAME
-
-
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
-
isOpen
boolean isOpen()Whether this module is declared as open module.- Returns:
- whether this module is open
-
requires
-
exports
-
uses
-
provides
-
opens
-
firstUnqualifiedExport
-