Interface IUpdatableModule
- All Known Implementing Classes:
BinaryModuleBinding
,ModuleBinding
,ModuleBinding.UnNamedModule
,SourceModuleBinding
public interface IUpdatableModule
Interface to a module as needed to implement the updates for
--add-reads
and --add-exports
command line options (or corresponding classpath attributes).-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
The compiler first wires modules only, before then wiring packages based on the module graph.static class
Structure for update operations, sorted byIUpdatableModule.UpdateKind
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExports(char[] packageName, char[][] targetModules)
Perform an --add-exports update on the module.void
addReads(char[] moduleName)
Perform an --add-reads update on the module.char[]
name()
Answer the name of the module to update.void
setMainClassName(char[] mainClassName)
Define the ModuleMainClass to be recorded in the generated module-info.class.void
setPackageNames(SimpleSetOfCharArray packageNames)
Passes names of packages to be recorded in the ModulePackages classfile attribute.
-
Method Details
-
name
char[] name()Answer the name of the module to update. -
addReads
void addReads(char[] moduleName)Perform an --add-reads update on the module. -
addExports
void addExports(char[] packageName, char[][] targetModules)Perform an --add-exports update on the module. -
setMainClassName
void setMainClassName(char[] mainClassName)Define the ModuleMainClass to be recorded in the generated module-info.class. -
setPackageNames
Passes names of packages to be recorded in the ModulePackages classfile attribute.
-