| Modifier and Type | Field and Description |
|---|---|
| private ModuleHashes | |
| private final InputStream | |
| private String | |
| private ModuleResolution | |
| private Set | |
| private String | |
| private ModuleDescriptor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ModuleInfoExtender | hashes(ModuleHashes hashes)
The ModuleHashes attribute will be emitted to the module-info with
the hashes encapsulated in the given |
| public ModuleInfoExtender | |
| public ModuleInfoExtender | |
| public static ModuleInfoExtender | newExtender(InputStream in)
Returns an |
| public ModuleInfoExtender | |
| public ModuleInfoExtender | |
| public byte[] | |
| public ModuleInfoExtender | version(ModuleDescriptor.
Sets the value for the module version in the Module attribute |
| public void |
| hashes | back to summary |
|---|---|
| private ModuleHashes hashes | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| mainClass | back to summary |
|---|---|
| private String mainClass | |
| moduleResolution | back to summary |
|---|---|
| private ModuleResolution moduleResolution | |
| packages | back to summary |
|---|---|
| private Set<String> packages | |
| targetPlatform | back to summary |
|---|---|
| private String targetPlatform | |
| version | back to summary |
|---|---|
| private ModuleDescriptor. | |
| ModuleInfoExtender | back to summary |
|---|---|
| private ModuleInfoExtender(InputStream in) | |
| hashes | back to summary |
|---|---|
| public ModuleInfoExtender hashes(ModuleHashes hashes) The ModuleHashes attribute will be emitted to the module-info with
the hashes encapsulated in the given | |
| mainClass | back to summary |
|---|---|
| public ModuleInfoExtender mainClass(String mainClass) Sets the value of the ModuleMainClass attribute. API Note This method does not check that the main class is a legal class name in a named package. | |
| moduleResolution | back to summary |
|---|---|
| public ModuleInfoExtender moduleResolution(ModuleResolution mres) Sets the value for the ModuleResolution attribute. | |
| newExtender | back to summary |
|---|---|
| public static ModuleInfoExtender newExtender(InputStream in) Returns an | |
| packages | back to summary |
|---|---|
| public ModuleInfoExtender packages(Set<String> packages) Sets the packages for the ModulePackages attribute API Note This method does not check that the package names are legal package names or that the set of packages is a super set of the packages in the module. | |
| targetPlatform | back to summary |
|---|---|
| public ModuleInfoExtender targetPlatform(String targetPlatform) Sets the value for the ModuleTarget attribute. | |
| toByteArray | back to summary |
|---|---|
| public byte[] toByteArray() throws IOException Returns the bytes of the modified module-info.class. Once this method has been called then the Extender object should be discarded. | |
| version | back to summary |
|---|---|
| public ModuleInfoExtender version(ModuleDescriptor. Sets the value for the module version in the Module attribute | |
| write | back to summary |
|---|---|
| public void write(OutputStream out) throws IOException Outputs the modified module-info.class to the given output stream. Once this method has been called then the Extender object should be discarded. | |