| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| public static record | |
| public static record | |
| pack-priv static record |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static void | |
| pack-priv static int | run(OperatingSystem os, Supplier<CliBundlingEnvironment> bundlingEnvSupplier, PrintWriter out, PrintWriter err, String... args)
|
| private static int | runWithGlobals(OperatingSystem os, Supplier<CliBundlingEnvironment> bundlingEnvSupplier, PrintWriter out, PrintWriter err, String... args)
|
| private static PrintWriter |
| Main | back to summary |
|---|---|
| private Main() | |
| getVersion | back to summary |
|---|---|
| private static String getVersion() | |
| main | back to summary |
|---|---|
| public static void main(String... args) | |
| run | back to summary |
|---|---|
| pack-priv static int run(OperatingSystem os, Supplier<CliBundlingEnvironment> bundlingEnvSupplier, PrintWriter out, PrintWriter err, String... args) | |
| runWithGlobals | back to summary |
|---|---|
| private static int runWithGlobals(OperatingSystem os, Supplier<CliBundlingEnvironment> bundlingEnvSupplier, PrintWriter out, PrintWriter err, String... args) | |
| toPrintWriter | back to summary |
|---|---|
| private static PrintWriter toPrintWriter(PrintStream ps) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Main. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CliBundlingEnvironment | |
| public static Main. | |
| public static Main. |
| INSTANCE | back to summary |
|---|---|
| public static final Main. | |
| DefaultBundlingEnvironmentLoader | back to summary |
|---|---|
| private DefaultBundlingEnvironmentLoader() | |
| get | back to summary |
|---|---|
| public CliBundlingEnvironment get() Implements java. Doc from java. Gets a result.
| |
| valueOf | back to summary |
|---|---|
| public static Main. | |
| values | back to summary |
|---|---|
| public static Main. | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | alwaysPrintStackTrace
Record Component accessed by alwaysPrintStackTrace(). |
| private final Consumer | messagePrinter
Record Component accessed by messagePrinter(). |
| private final boolean | printCommandOutput
Record Component accessed by printCommandOutput(). |
| private final Consumer | stackTracePrinter
Record Component accessed by stackTracePrinter(). |
| Access | Constructor and Description |
|---|---|
| public | ErrorReporter(Consumer<Throwable> stackTracePrinter, Consumer<String> messagePrinter, boolean alwaysPrintStackTrace, boolean printCommandOutput)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| private static boolean | |
| public Consumer | |
| public boolean | |
| private void | |
| private void | |
| public void | |
| public Consumer | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| alwaysPrintStackTrace | back to summary |
|---|---|
| private final boolean alwaysPrintStackTrace Record Component accessed by alwaysPrintStackTrace(). | |
| messagePrinter | back to summary |
|---|---|
| private final Consumer<String> messagePrinter Record Component accessed by messagePrinter(). | |
| printCommandOutput | back to summary |
|---|---|
| private final boolean printCommandOutput Record Component accessed by printCommandOutput(). | |
| stackTracePrinter | back to summary |
|---|---|
| private final Consumer<Throwable> stackTracePrinter Record Component accessed by stackTracePrinter(). | |
| ErrorReporter | back to summary |
|---|---|
| public ErrorReporter(Consumer<Throwable> stackTracePrinter, Consumer<String> messagePrinter, boolean alwaysPrintStackTrace, boolean printCommandOutput) | |
| ErrorReporter | back to summary |
|---|---|
| public ErrorReporter(Consumer<Throwable> stackTracePrinter, Consumer<String> messagePrinter) | |
| alwaysPrintStackTrace | back to summary |
|---|---|
| public boolean alwaysPrintStackTrace() Record Component getter of alwaysPrintStackTrace. | |
| 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 | |
| isSelfContained | back to summary |
|---|---|
| private static boolean isSelfContained(Throwable t) | |
| messagePrinter | back to summary |
|---|---|
| public Consumer Record Component getter of messagePrinter. | |
| printCommandOutput | back to summary |
|---|---|
| public boolean printCommandOutput() Record Component getter of printCommandOutput. | |
| printError | back to summary |
|---|---|
| private void printError(Throwable t, Optional<String> advice) | |
| printExternalCommandError | back to summary |
|---|---|
| private void printExternalCommandError(CommandOutputControl. | |
| reportError | back to summary |
|---|---|
| public void reportError(Throwable t) Implements jdk. | |
| stackTracePrinter | back to summary |
|---|---|
| public Consumer Record Component getter of stackTracePrinter. | |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Supplier | bundlingEnvSupplier
Record Component accessed by bundlingEnvSupplier(). |
| private final OperatingSystem |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Supplier | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public OperatingSystem | |
| public int | run(PrintWriter out, PrintWriter err, String... args)
Implements java. Runs an instance of the tool, returning zero for a successful run. |
| public int | run(PrintStream out, PrintStream err, String... args)
Overrides default java. Runs an instance of the tool, returning zero for a successful run. |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| bundlingEnvSupplier | back to summary |
|---|---|
| private final Supplier<CliBundlingEnvironment> bundlingEnvSupplier Record Component accessed by bundlingEnvSupplier(). | |
| os | back to summary |
|---|---|
| private final OperatingSystem os Record Component accessed by os(). | |
| Provider | back to summary |
|---|---|
| public Provider(Supplier<CliBundlingEnvironment> bundlingEnvSupplier, OperatingSystem os) | |
| Provider | back to summary |
|---|---|
| public Provider() | |
| bundlingEnvSupplier | back to summary |
|---|---|
| public Supplier Record Component getter of bundlingEnvSupplier. | |
| 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 | |
| name | back to summary |
|---|---|
| public String name() Implements java. Doc from java. Returns the name of this tool provider.
| |
| os | back to summary |
|---|---|
| public OperatingSystem os() Record Component getter of os. | |
| run | back to summary |
|---|---|
| public int run(PrintWriter out, PrintWriter err, String... args) Implements java. Doc from java. Runs an instance of the tool, returning zero for a successful run. Any non-zero return value indicates a tool-specific error during the execution. Two streams should be provided, for "expected" output, and for any error messages. If it is not necessary to distinguish the output, the same stream may be used for both.
| |
| run | back to summary |
|---|---|
| public int run(PrintStream out, PrintStream err, String... args) Overrides default java. Doc from java. Runs an instance of the tool, returning zero for a successful run. Any non-zero return value indicates a tool-specific error during the execution. Two streams should be provided, for "expected" output, and for any error messages. If it is not necessary to distinguish the output, the same stream may be used for both.
| |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | errorReporter
Record Component accessed by errorReporter(). |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 Consumer | |
| public final int | |
| pack-priv int | |
| private static Collection | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| errorReporter | back to summary |
|---|---|
| private final Consumer<Throwable> errorReporter Record Component accessed by errorReporter(). | |
| Runner | back to summary |
|---|---|
| pack-priv Runner(Consumer<Throwable> errorReporter) | |
| 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).
| |
| errorReporter | back to summary |
|---|---|
| public Consumer Record Component getter of errorReporter. | |
| 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 | |
| run | back to summary |
|---|---|
| pack-priv int run(Supplier<? extends Collection<? extends Exception>> r) | |
| runIt | back to summary |
|---|---|
| private static Collection | |
| 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. | |