# ⬢ runtime-kit 1.0 Every page: [llms.txt](llms.txt), or all in one file: [llms-full.txt](llms-full.txt) Plan a Java application for the JVM or a native executable. Runtime Kit separates the configuration of an application from the tool that prepares it. An immutable [`BuildPlan`](example/runtime/BuildPlan.md) holds the entry point and compiler arguments. A [`Planner.Local`](example/runtime/Planner.Local.md) validates the plan for the chosen [`Target`](example/runtime/Target.md). Start with the preparation guide for a runnable example, or explore the package reference for constructors, extension points, and error handling. ## Packages - [`example.runtime`](example/runtime/index.md): Plans Java applications for a local JVM or native executable. ## Types in `example.runtime` - [`BuildPlan`](example/runtime/BuildPlan.md) (record): Describes how to build a Java application as a native executable. - [`BuildStep`](example/runtime/BuildStep.md) (interface): A named phase in the preparation of a BuildPlan. - [`Experimental`](example/runtime/Experimental.md) (annotation interface): Marks a runtime API whose contract may evolve before the next release. - [`HotPath`](example/runtime/HotPath.md) (annotation interface): Marks operations used during plan lookup. - [`PlanCatalog`](example/runtime/PlanCatalog.md) (class): Looks up immutable build plans by name. - [`PlanException`](example/runtime/PlanException.md) (exception): Indicates that a BuildPlan cannot be prepared. - [`Planner`](example/runtime/Planner.md) (sealed abstract class): Validates a BuildPlan before handing it to a BuildStep. - [`Planner.Local`](example/runtime/Planner.Local.md) (class): Prepares builds against a locally installed toolchain. - [`Planner.Options`](example/runtime/Planner.Options.md) (record): Configuration for Local, including how to report progress. - [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (enum class): Controls progress while preparing a plan. - [`Target`](example/runtime/Target.md) (enum class): Selects the runtime that will consume a BuildPlan. # ▣ example.runtime [runtime-kit](index.md) · Every page: [llms.txt](llms.txt) Package in runtime-kit. Since 1.0. Reference types generally default to non-null in this null-marked scope. ```java @NullMarked ``` Annotation contracts include null-marked. Plans Java applications for a local JVM or native executable. ### Preparing a build Start with [`example.runtime.BuildPlan.defaults(String)`](example/runtime/BuildPlan.md#defaults%28java.lang.String%29), select a [`example.runtime.Target`](example/runtime/Target.md), and pass the plan to [`example.runtime.Planner.Local`](example/runtime/Planner.Local.md). Preparation validates configuration before a compiler is invoked. ### Extending a build Implement [`example.runtime.BuildStep`](example/runtime/BuildStep.md) to transform a plan into another artifact. Report invalid input with [`example.runtime.PlanException`](example/runtime/PlanException.md). ## Interfaces - [`BuildStep`](example/runtime/BuildStep.md): A named phase in the preparation of a BuildPlan. ## Classes - [`PlanCatalog`](example/runtime/PlanCatalog.md): Looks up immutable build plans by name. - [`Planner`](example/runtime/Planner.md): Validates a BuildPlan before handing it to a BuildStep. ## Records - [`BuildPlan`](example/runtime/BuildPlan.md): Describes how to build a Java application as a native executable. ## Enums - [`Target`](example/runtime/Target.md): Selects the runtime that will consume a BuildPlan. ## Exceptions - [`PlanException`](example/runtime/PlanException.md): Indicates that a BuildPlan cannot be prepared. ## Annotations - [`Experimental`](example/runtime/Experimental.md): Marks a runtime API whose contract may evolve before the next release. - [`HotPath`](example/runtime/HotPath.md): Marks operations used during plan lookup. # ▤ BuildPlan [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Record in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. ```java public record BuildPlan(String mainClass, List arguments) ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Record`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Record.html) > `BuildPlan` Describes how to build a Java application as a native executable. Pass this plan to a [`Planner.Local`](example/runtime/Planner.Local.md) for validation against a [`Target`](example/runtime/Target.md). For example: ```java var plan = new BuildPlan("example.Main", List.of("-O2")); ``` **Record components** - `mainClass` [`String`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html) (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point - `arguments` [`List`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/List.html)`<`[`String`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html)`>` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order **See also** - Write a preparation step - Feature tour - Prepare your first build ## Constructors ### BuildPlan(String, List) `public BuildPlan(String mainClass, List arguments)`. Creates a plan with a stable copy of the arguments. Cite: `example/runtime/BuildPlan.html#(java.lang.String,java.util.List)` Parameters: `mainClass` `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. `arguments` `List` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order. ## Methods ### defaults(String) `public static BuildPlan defaults(String mainClass)`. Returns a plan for the entry point using default compiler settings. Cite: `example/runtime/BuildPlan.html#defaults(java.lang.String)` Parameters: `mainClass` `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. Returns `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): a plan with an empty argument list. ### toString() `public final String toString()`. Returns a string containing the record class name and its component names and values. Cite: `example/runtime/BuildPlan.html#toString()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): Returns a string containing the record class name and its component names and values. Overrides `toString()`. ### hashCode() `public final int hashCode()`. Returns a hash code computed from the record components. Cite: `example/runtime/BuildPlan.html#hashCode()` Returns `int`: Returns a hash code computed from the record components. Overrides `hashCode()`. ### equals(Object) `public final boolean equals(Object o)`. Returns whether the other object is a record of the same class with equal components. Cite: `example/runtime/BuildPlan.html#equals(java.lang.Object)` Parameters: `o` `Object` (nullable, implied by JSpecify’s rule for record equals(Object)): The object to compare with this record. Returns `boolean`: Returns whether the other object is a record of the same class with equal components. Overrides `equals(java.lang.Object)`. ### mainClass() `public String mainClass()`. the fully qualified entry point. Cite: `example/runtime/BuildPlan.html#mainClass()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. ### arguments() `public List arguments()`. compiler arguments in invocation order. Cite: `example/runtime/BuildPlan.html#arguments()` Returns `List` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◇ BuildStep [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. ```java @FunctionalInterface public interface BuildStep ``` A named phase in the preparation of a [`BuildPlan`](example/runtime/BuildPlan.md). **Type parameters** - ``: the artifact produced by the step **See also** - Write a preparation step - Feature tour ## Methods ### prepare(BuildPlan) `T prepare(BuildPlan plan) throws PlanException`. Prepares an artifact without executing the application. Cite: `example/runtime/BuildStep.html#prepare(example.runtime.BuildPlan)` Parameters: `plan` `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): the input configuration. Returns `T` (non-null, implied by the non-null bound of T (@NullMarked on package example.runtime)): the prepared artifact. Throws: `PlanException`: if the configuration cannot be prepared. # @ Experimental [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Annotation interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. ```java @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Experimental ``` Marks a runtime API whose contract may evolve before the next release. ## Elements ### since() `String since() default "1.0"`. The version in which the experiment began. Cite: `example/runtime/Experimental.html#since()` Returns `String` (non-null, implied by Java’s rules for annotation elements). Default: `"1.0"`. # @ HotPath [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Annotation interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. ```java @Retention(RetentionPolicy.CLASS) @Target({ElementType.METHOD}) public @interface HotPath ``` Marks operations used during plan lookup. **See also** - Feature tour # ◆ PlanCatalog [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Class in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. Annotation contracts include safe for concurrent use. ```java @ThreadSafe public final class PlanCatalog ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > `PlanCatalog` Looks up immutable build plans by name. ```java var catalog = new PlanCatalog(Map.of("app", BuildPlan.defaults("example.Main"))); var plan = catalog.find("app"); ``` **See also** - [`BuildPlan`](example/runtime/BuildPlan.md) - Feature tour ## Fields ### FORMAT_VERSION `public static final int FORMAT_VERSION`. The catalog format version. Cite: `example/runtime/PlanCatalog.html#FORMAT_VERSION` Constant value: `1`. ## Constructors ### PlanCatalog(Map) `public PlanCatalog(Map plans)`. Creates a catalog from a snapshot of the supplied plans. Cite: `example/runtime/PlanCatalog.html#(java.util.Map)` Parameters: `plans` `Map` (non-null, implied by @NullMarked on package example.runtime): the named plans to copy. ## Methods ### find(String) `@HotPath public @Nullable BuildPlan find(String name)`. Looks up the plan associated with a name. Cite: `example/runtime/PlanCatalog.html#find(java.lang.String)` Annotation contracts include latency-sensitive. Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): the catalog key. Returns `@Nullable BuildPlan` (nullable): the matching plan, or null on a miss. API note: Use `names()` to list the available keys. Implementation requirements: Lookup does not modify the catalog. Implementation note: Keys are compared using [`String.equals(Object)`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html#equals%28java.lang.Object%29). ### names() `public List<@NonNull String> names()`. Returns the available keys in sorted order. Cite: `example/runtime/PlanCatalog.html#names()` Returns `List<@NonNull String>` (non-null, implied by @NullMarked on package example.runtime): the keys, which are non-null. ### lookup(String) `@NullUnmarked @Deprecated(since = "1.0", forRemoval = true) public BuildPlan lookup(String name)`. Deprecated for removal since 1.0. Cite: `example/runtime/PlanCatalog.html#lookup(java.lang.String)` Use `find(String)` for an explicit nullness contract. Returns a plan through the legacy lookup contract. Annotation contracts include null-unmarked. Parameters: `name` `String`: the catalog key. Returns `BuildPlan`: the lookup result. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ⚡︎ PlanException [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Exception in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. ```java public final class PlanException extends Exception ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Throwable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html) > [`Exception`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Exception.html) > `PlanException` Indicates that a [`BuildPlan`](example/runtime/BuildPlan.md) cannot be prepared. **See also** - Feature tour - Prepare your first build ## Constructors ### PlanException(String) `public PlanException(String reason)`. Creates a failure with an explanation suitable for the build log. Cite: `example/runtime/PlanException.html#(java.lang.String)` Parameters: `reason` `String` (non-null, implied by @NullMarked on package example.runtime): the rejected setting. ## Inherited members - From class [`Throwable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html): [`addSuppressed`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#addSuppressed%28java.lang.Throwable%29), [`fillInStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace%28%29), [`getCause`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getCause%28%29), [`getLocalizedMessage`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage%28%29), [`getMessage`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getMessage%28%29), [`getStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getStackTrace%28%29), [`getSuppressed`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getSuppressed%28%29), [`initCause`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#initCause%28java.lang.Throwable%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintStream%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintWriter%29), [`setStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#setStackTrace%28java.lang.StackTraceElement[]%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ Planner [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Sealed abstract class in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. ```java public abstract sealed class Planner implements BuildStep permits Planner.Local ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > `Planner` Implements: [`BuildStep`](example/runtime/BuildStep.md)`<`[`BuildPlan`](example/runtime/BuildPlan.md)`>` Permitted subtypes: [`Planner.Local`](example/runtime/Planner.Local.md) Validates a [`BuildPlan`](example/runtime/BuildPlan.md) before handing it to a [`BuildStep`](example/runtime/BuildStep.md). Select a [`Target`](example/runtime/Target.md) and call [`prepare(BuildPlan)`](example/runtime/Planner.md#prepare%28example.runtime.BuildPlan%29) to check the entry point. **See also** - [`Planner.Options`](example/runtime/Planner.Options.md) - Feature tour ## Nested types - [`Planner.Local`](example/runtime/Planner.Local.md) (class): Prepares builds against a locally installed toolchain. - [`Planner.Options`](example/runtime/Planner.Options.md) (record): Configuration for Local, including how to report progress. ## Methods ### target() `public abstract Target target()`. Identifies the runtime for prepared plans. Cite: `example/runtime/Planner.html#target()` Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. ### prepare(BuildPlan) `public BuildPlan prepare(BuildPlan plan) throws PlanException`. Validates that the plan names an entry point. Cite: `example/runtime/Planner.html#prepare(example.runtime.BuildPlan)` Parameters: `plan` `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): configuration to validate. Returns `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): the validated plan. Throws: `PlanException`: when the entry point is blank. Overrides `prepare()`. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ Planner.Local [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner`](example/runtime/Planner.md). ```java @Experimental public static final class Planner.Local extends Planner ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Planner`](example/runtime/Planner.md) > `Local` Prepares builds against a locally installed toolchain. **See also** - Prepare your first build ## Constructors ### Local(Planner.Options) `public Local(Planner.Options options)`. Uses explicit planning options. Cite: `example/runtime/Planner.Local.html#(example.runtime.Planner.Options)` Parameters: `options` `Planner.Options` (non-null, implied by @NullMarked on package example.runtime): runtime and progress settings. ### Local(Target) `public Local(Target target)`. Uses the supplied target with quiet progress. Cite: `example/runtime/Planner.Local.html#(example.runtime.Target)` Parameters: `target` `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. ## Methods ### target() `public Target target()`. Identifies the runtime for prepared plans. Cite: `example/runtime/Planner.Local.html#target()` Description copied from `target()`. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. Overrides `target()`. ### runtime() `@Deprecated(since = "1.0") public Target runtime()`. Deprecated since 1.0. Cite: `example/runtime/Planner.Local.html#runtime()` Use `target()`. Returns the configured runtime. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. ## Inherited members - From class [`Planner`](example/runtime/Planner.md): [`prepare`](example/runtime/Planner.md#prepare%28example.runtime.BuildPlan%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▤ Planner.Options [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Record in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner`](example/runtime/Planner.md). ```java public record Planner.Options(Target target, Planner.Options.Detail detail) ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Record`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Record.html) > `Options` Configuration for [`Local`](example/runtime/Planner.Local.md), including how to report progress. **Record components** - `target` [`Target`](example/runtime/Target.md) (non-null, implied by @NullMarked on package example.runtime): the runtime - `detail` [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report **See also** - Prepare your first build ## Nested types - [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (enum class): Controls progress while preparing a plan. ## Constructors ### Options(Target, Planner.Options.Detail) `public Options(Target target, Planner.Options.Detail detail)`. Declared by the compiler. Creates a new Options instance. Cite: `example/runtime/Planner.Options.html#(example.runtime.Target,example.runtime.Planner.Options.Detail)` Parameters: `target` `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. `detail` `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report. ## Methods ### toString() `public final String toString()`. Returns a string containing the record class name and its component names and values. Cite: `example/runtime/Planner.Options.html#toString()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): Returns a string containing the record class name and its component names and values. Overrides `toString()`. ### hashCode() `public final int hashCode()`. Returns a hash code computed from the record components. Cite: `example/runtime/Planner.Options.html#hashCode()` Returns `int`: Returns a hash code computed from the record components. Overrides `hashCode()`. ### equals(Object) `public final boolean equals(Object o)`. Returns whether the other object is a record of the same class with equal components. Cite: `example/runtime/Planner.Options.html#equals(java.lang.Object)` Parameters: `o` `Object` (nullable, implied by JSpecify’s rule for record equals(Object)): The object to compare with this record. Returns `boolean`: Returns whether the other object is a record of the same class with equal components. Overrides `equals(java.lang.Object)`. ### target() `public Target target()`. the runtime. Cite: `example/runtime/Planner.Options.html#target()` Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. ### detail() `public Planner.Options.Detail detail()`. the amount of progress to report. Cite: `example/runtime/Planner.Options.html#detail()` Returns `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ≡ Planner.Options.Detail [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Enum class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner.Options`](example/runtime/Planner.Options.md). ```java public enum Planner.Options.Detail ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html) > `Detail` Controls progress while preparing a plan. ## Enum constants ### QUIET `QUIET`. Report only the result. Cite: `example/runtime/Planner.Options.Detail.html#QUIET` ### VERBOSE `VERBOSE`. Include each preparation step. Cite: `example/runtime/Planner.Options.Detail.html#VERBOSE` ## Methods ### values() `public static Planner.Options.Detail[] values()`. Returns the enum constants in declaration order. Cite: `example/runtime/Planner.Options.Detail.html#values()` Returns `Planner.Options.Detail[]` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constants in declaration order. ### valueOf(String) `public static Planner.Options.Detail valueOf(String name)`. Returns the enum constant with the given name. Cite: `example/runtime/Planner.Options.Detail.html#valueOf(java.lang.String)` Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): The exact name of the enum constant. Returns `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constant with the given name. ## Inherited members - From class [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html): [`compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ≡ Target [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Enum class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. ```java public enum Target ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html) > `Target` Selects the runtime that will consume a [`BuildPlan`](example/runtime/BuildPlan.md). **See also** - Feature tour ## Enum constants ### JVM `JVM`. Use the installed Java virtual machine. Cite: `example/runtime/Target.html#JVM` ### NATIVE `NATIVE`. Compile an operating-system executable. Cite: `example/runtime/Target.html#NATIVE` ## Methods ### values() `public static Target[] values()`. Returns the enum constants in declaration order. Cite: `example/runtime/Target.html#values()` Returns `Target[]` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constants in declaration order. ### valueOf(String) `public static Target valueOf(String name)`. Returns the enum constant with the given name. Cite: `example/runtime/Target.html#valueOf(java.lang.String)` Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): The exact name of the enum constant. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constant with the given name. ## Inherited members - From class [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html): [`compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)