APIdia Launch Partner
Top Description Methods
jdk.tools.jlink.plugin

public Interface ResourcePoolModule

Known Direct Implementers
jdk.tools.jlink.internal.ImagePluginStack.LastPoolManager.LastModule, jdk.tools.jlink.internal.ResourcePoolManager.ResourcePoolModuleImpl
Imports
java.lang.module.ModuleDescriptor, java.util.Optional, .Set, java.util.stream.Stream

Link-time representation of a module.

Method Summary

Modifier and TypeMethod and Description
public ModuleDescriptor

Returns:

The module descriptor.
descriptor
()

The module descriptor of this module.

public Stream<ResourcePoolEntry>

Returns:

The ResourcePoolEntry stream.
entries
()

Retrieves the stream of ResourcePoolEntry.

public int

Returns:

the entry count.
entryCount
()

Return the number of ResourcePoolEntry count in this ResourcePoolModule.

public Optional<ResourcePoolEntry>

Returns:

A ResourcePoolEntry of the given path, if found.
findEntry
(String
The piece of data path.
path
)

Retrieves a ResourcePoolEntry from the given path (e.g: /mymodule/com.foo.bar/MyClass.class)

public String

Returns:

The module name.
name
()

The module name.

public Set<String>

Returns:

The set of packages.
packages
()

Retrieves all the packages located in this module.

public String

Returns:

The target platform
targetPlatform
()

The target platform

Method Detail

descriptorback to summary
public ModuleDescriptor descriptor()

The module descriptor of this module.

Returns:ModuleDescriptor

The module descriptor.

entriesback to summary
public Stream<ResourcePoolEntry> entries()

Retrieves the stream of ResourcePoolEntry.

Returns:Stream<ResourcePoolEntry>

The ResourcePoolEntry stream.

entryCountback to summary
public int entryCount()

Return the number of ResourcePoolEntry count in this ResourcePoolModule.

Returns:int

the entry count.

findEntryback to summary
public Optional<ResourcePoolEntry> findEntry(String path)

Retrieves a ResourcePoolEntry from the given path (e.g: /mymodule/com.foo.bar/MyClass.class)

Parameters
path:String

The piece of data path.

Returns:Optional<ResourcePoolEntry>

A ResourcePoolEntry of the given path, if found.

nameback to summary
public String name()

The module name.

Returns:String

The module name.

packagesback to summary
public Set<String> packages()

Retrieves all the packages located in this module.

Returns:Set<String>

The set of packages.

targetPlatformback to summary
public String targetPlatform()

The target platform

Returns:String

The target platform