- All Known Implementing Classes:
- ModuleInfo.BuilderBase.ModuleInfoImpl
public interface ModuleInfo
Module info.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forModuleInfo.static classFluent API builder base forModuleInfo.
- 
Field SummaryFields
- 
Method SummaryModifier 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_NAMEThe default module name (i.e., "unnamed").- See Also:
 
- 
FILE_NAMEThe file name in sources ("module-info.java").- See Also:
 
 
- 
- 
Method Details- 
builderCreate a new fluent API builder to customize configuration.- Returns:
- a new builder
 
- 
builderCreate 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
 
- 
nameString name()Name of the module.- Returns:
- module name
 
- 
isOpenboolean isOpen()Whether this module is declared as open module.- Returns:
- whether this module is open
 
- 
requiresList<ModuleInfoRequires> requires()Declared dependencies of the module.- Returns:
- list of requires
 
- 
exportsExports of the module.- Returns:
- map of exported packages (exports x.y.z to a.b.cSomeModule).
 
- 
usesUsed service loader providers.- Returns:
- list of used provider interfaces
 
- 
providesMap of provider interfaces to provider implementations provided by this module.- Returns:
- map of interface to implementations
 
- 
opensMap of opened packages to modules (if any).- Returns:
- map of package to modules
 
- 
firstUnqualifiedExportfirst export that does not export to a specific module (if present).- Returns:
- package that is exported
 
 
-