public interface ModulePool
Modifier and Type | Method and Description |
---|---|
void |
add(ModuleEntry data)
Add a ModuleEntry.
|
boolean |
contains(ModuleEntry data)
Check if the ModulePool contains the given ModuleEntry.
|
Stream<? extends ModuleEntry> |
entries()
Get all ModuleEntry contained in this ModulePool instance.
|
Optional<ModuleEntry> |
findEntry(String path)
Get the ModuleEntry for the passed path.
|
Optional<LinkModule> |
findModule(String name)
Retrieves the module for the provided name.
|
ByteOrder |
getByteOrder()
The ByteOrder currently in use when generating the jimage file.
|
int |
getEntryCount()
Return the number of ModuleEntry count in this ModulePool.
|
int |
getModuleCount()
Return the number of LinkModule count in this ModulePool.
|
Map<String,String> |
getReleaseProperties()
Release properties such as OS, CPU name, version etc.
|
boolean |
isEmpty()
Check if the ModulePool contains some content at all.
|
boolean |
isReadOnly()
Is this a read-only ModulePool?
|
Stream<? extends LinkModule> |
modules()
The stream of modules contained in this ModulePool.
|
void |
transformAndCopy(Function<ModuleEntry,ModuleEntry> transform,
ModulePool output)
Visit each ModuleEntry in this ModulePool to transform it and copy
the transformed ModuleEntry to the output ModulePool.
|
boolean isReadOnly()
void add(ModuleEntry data)
data
- The ModuleEntry to add.Optional<LinkModule> findModule(String name)
name
- The module nameStream<? extends LinkModule> modules()
int getModuleCount()
Stream<? extends ModuleEntry> entries()
int getEntryCount()
Optional<ModuleEntry> findEntry(String path)
path
- A data pathboolean contains(ModuleEntry data)
data
- The module data to check existence for.boolean isEmpty()
void transformAndCopy(Function<ModuleEntry,ModuleEntry> transform, ModulePool output)
transform
- The function called for each ModuleEntry found in the
ModulePool. The transform function should return a ModuleEntry
instance which will be added to the output or it should return null if
the passed ModuleEntry is to be ignored for the output.output
- The ModulePool to be filled with Visitor returned
ModuleEntry.ByteOrder getByteOrder()
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-ea+126