public interface ResourcePool
Modifier and Type | Method and Description |
---|---|
ByteOrder |
byteOrder()
The ByteOrder currently in use when generating the jimage file.
|
boolean |
contains(ResourcePoolEntry data)
Check if the ResourcePool contains the given ResourcePoolEntry.
|
Stream<ResourcePoolEntry> |
entries()
Get all ResourcePoolEntry contained in this ResourcePool instance.
|
int |
entryCount()
Return the number of ResourcePoolEntry count in this ResourcePool.
|
Optional<ResourcePoolEntry> |
findEntry(String path)
Get the ResourcePoolEntry for the passed path.
|
Optional<ResourcePoolEntry> |
findEntryInContext(String path,
ResourcePoolEntry context)
Get the ModuleEntry for the passed path restricted to supplied context.
|
boolean |
isEmpty()
Check if the ResourcePool contains some content at all.
|
ResourcePoolModuleView |
moduleView()
Return the module view of this resource pool.
|
default void |
transformAndCopy(Function<ResourcePoolEntry,ResourcePoolEntry> transform,
ResourcePoolBuilder outBuilder)
Visit each ResourcePoolEntry in this ResourcePool to transform it and copy
the transformed ResourcePoolEntry to the output ResourcePoolBuilder.
|
ResourcePoolModuleView moduleView()
Stream<ResourcePoolEntry> entries()
int entryCount()
Optional<ResourcePoolEntry> findEntry(String path)
path
- A data pathOptional<ResourcePoolEntry> findEntryInContext(String path, ResourcePoolEntry context)
path
- A data pathcontext
- A context of the searchboolean contains(ResourcePoolEntry data)
data
- The module data to check existence for.boolean isEmpty()
ByteOrder byteOrder()
default void transformAndCopy(Function<ResourcePoolEntry,ResourcePoolEntry> transform, ResourcePoolBuilder outBuilder)
transform
- The function called for each ResourcePoolEntry found in the
ResourcePool. The transform function should return a ResourcePoolEntry
instance which will be added to the output or it should return null if
the passed ResourcePoolEntry is to be ignored for the output.outBuilder
- The ResourcePoolBuilder to be filled with Visitor returned
ResourcePoolEntries.
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-09-03-162606.buildd.src