The layout is "unresolved" if the root directory is an empty path
(Path.of("")) and "resolved" otherwise.
The return value of the runtimeDirectory() method call is always a
path starting with the path returned by the rootDirectory() method
call. Public methods without parameters and with the return type Path
in the derived interfaces must comply to this constrain.
| Modifier and Type | Class and Description |
|---|---|
| public static record | AppImageLayout.
Default implementation of |
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: true if the root directory of this app image layout is
not an empty pathReturns |
| public AppImageLayout | Returns: the copy of this app image layout with the specified mapper applied to every paththe mapper to use with every path in this app image layout. mapper)Returns a copy of this app image layout with the specified mapper applied to every path. |
| public AppImageLayout | Returns: an app image layout with the root directory set to an empty pathReturns a copy of this app image layout with the root directory set to an empty
path ( |
| public default AppImageLayout | |
| public Path | Returns: the root directory of this app image layoutRoot directory of this app image layout. |
| public Path | Returns: Java runtime sub-directory within this app imageA path to Java runtime directory. |
| public static PathGroup | Returns: PathGroup object constructed from the given source layout
objectsource layout object appImageLayout)Creates |
| public default AppImageLayout | Returns: an app image layout resolved atPath.of("") pathReturns a copy of this app image layout resolved such that its root directory
is set to an empty path ( |
| isResolved | back to summary |
|---|---|
| public default boolean isResolved() Returns
| |
| map | back to summary |
|---|---|
| public AppImageLayout map(UnaryOperator<Path> mapper) Returns a copy of this app image layout with the specified mapper applied to every path.
| |
| resetRootDirectory | back to summary |
|---|---|
| public AppImageLayout resetRootDirectory() Returns a copy of this app image layout with the root directory set to an empty
path (
| |
| resolveAt | back to summary |
|---|---|
| public default AppImageLayout resolveAt(Path root) Creates a copy of this app image layout resolved at the given root directory.
| |
| rootDirectory | back to summary |
|---|---|
| public Path rootDirectory() Root directory of this app image layout.
It should normally be equal to
| |
| runtimeDirectory | back to summary |
|---|---|
| public Path runtimeDirectory() A path to Java runtime directory. The directory should have standard JDK subdirectories like "bin", "lib", etc.
| |
| toPathGroup | back to summary |
|---|---|
| public static PathGroup toPathGroup(AppImageLayout appImageLayout) Creates
For every call, it will save the return value in the output
| |
| unresolve | back to summary |
|---|---|
| public default AppImageLayout unresolve() Returns a copy of this app image layout resolved such that its root directory
is set to an empty path (
| |
AppImageLayout interface.
| Modifier and Type | Field and Description |
|---|---|
| private final Path | rootDirectory
Record Component accessed by rootDirectory(). |
| private final Path | runtimeDirectory
Record Component accessed by runtimeDirectory(). |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public AppImageLayout | map(UnaryOperator<Path> mapper)
Implements jdk. Returns a copy of this app image layout with the specified mapper applied to every path. |
| public AppImageLayout | resetRootDirectory()
Implements jdk. Returns a copy of this app image layout with the root directory set to an empty
path ( |
| public Path | rootDirectory()
Record Component getter of rootDirectory. Implements jdk. Root directory of this app image layout.
|
| public Path | runtimeDirectory()
Record Component getter of runtimeDirectory. Implements jdk. A path to Java runtime directory.
|
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| rootDirectory | back to summary |
|---|---|
| private final Path rootDirectory Record Component accessed by rootDirectory(). | |
| runtimeDirectory | back to summary |
|---|---|
| private final Path runtimeDirectory Record Component accessed by runtimeDirectory(). | |
| Stub | back to summary |
|---|---|
| public Stub(Path rootDirectory, Path runtimeDirectory) | |
| Stub | back to summary |
|---|---|
| public Stub(Path runtimeDirectory) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| map | back to summary |
|---|---|
| public AppImageLayout map(UnaryOperator<Path> mapper) Implements jdk. Doc from jdk. Returns a copy of this app image layout with the specified mapper applied to every path.
| |
| resetRootDirectory | back to summary |
|---|---|
| public AppImageLayout resetRootDirectory() Implements jdk. Doc from jdk. Returns a copy of this app image layout with the root directory set to an empty
path (
| |
| rootDirectory | back to summary |
|---|---|
| public Path rootDirectory() Record Component getter of rootDirectory. Implements jdk. Doc from jdk. Root directory of this app image layout.
It should normally be equal to | |
| runtimeDirectory | back to summary |
|---|---|
| public Path runtimeDirectory() Record Component getter of runtimeDirectory. Implements jdk. Doc from jdk. A path to Java runtime directory. The directory should have standard JDK subdirectories like "bin", "lib", etc. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |