{"symbol":"example.runtime.BuildPlan","href":"example/runtime/BuildPlan.html","name":"BuildPlan","kind":"record","signature":"public record BuildPlan(String mainClass, List<String> arguments)","summary":"Describes how to build a Java application as a native executable.","details":"Pass this plan to a Planner.Local for validation against a Target. For example: var plan = new BuildPlan(\"example.Main\", List.of(\"-O2\"));"}
{"symbol":"example.runtime.BuildPlan(String, List)","href":"example/runtime/BuildPlan.html#%3Cinit%3E(java.lang.String,java.util.List)","name":"BuildPlan","kind":"constructor","signature":"public BuildPlan(String mainClass, List<String> arguments)","summary":"Creates a plan with a stable copy of the arguments.","params":[{"name":"mainClass","type":"String","doc":"the fully qualified entry point"},{"name":"arguments","type":"List<String>","doc":"compiler arguments in invocation order"}]}
{"symbol":"example.runtime.BuildPlan.defaults(String)","href":"example/runtime/BuildPlan.html#defaults(java.lang.String)","name":"defaults","kind":"method","signature":"public static BuildPlan defaults(String mainClass)","summary":"Returns a plan for the entry point using default compiler settings.","params":[{"name":"mainClass","type":"String","doc":"the fully qualified entry point"}],"returns":{"type":"BuildPlan","doc":"a plan with an empty argument list"}}
{"symbol":"example.runtime.BuildPlan.toString()","href":"example/runtime/BuildPlan.html#toString()","name":"toString","kind":"method","signature":"public final String toString()","summary":"Returns a string containing the record class name and its component names and values.","returns":{"type":"String","doc":"Returns a string containing the record class name and its component names and values."}}
{"symbol":"example.runtime.BuildPlan.hashCode()","href":"example/runtime/BuildPlan.html#hashCode()","name":"hashCode","kind":"method","signature":"public final int hashCode()","summary":"Returns a hash code computed from the record components.","returns":{"type":"int","doc":"Returns a hash code computed from the record components."}}
{"symbol":"example.runtime.BuildPlan.equals(Object)","href":"example/runtime/BuildPlan.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public final boolean equals(Object o)","summary":"Returns whether the other object is a record of the same class with equal components.","params":[{"name":"o","type":"Object","doc":"The object to compare with this record."}],"returns":{"type":"boolean","doc":"Returns whether the other object is a record of the same class with equal components."}}
{"symbol":"example.runtime.BuildPlan.mainClass()","href":"example/runtime/BuildPlan.html#mainClass()","name":"mainClass","kind":"method","signature":"public String mainClass()","summary":"the fully qualified entry point","returns":{"type":"String","doc":"the fully qualified entry point"}}
{"symbol":"example.runtime.BuildPlan.arguments()","href":"example/runtime/BuildPlan.html#arguments()","name":"arguments","kind":"method","signature":"public List<String> arguments()","summary":"compiler arguments in invocation order","returns":{"type":"List<String>","doc":"compiler arguments in invocation order"}}
{"symbol":"example.runtime.BuildStep","href":"example/runtime/BuildStep.html","name":"BuildStep","kind":"interface","signature":"public interface BuildStep<T>","summary":"A named phase in the preparation of a BuildPlan."}
{"symbol":"example.runtime.BuildStep.prepare(BuildPlan)","href":"example/runtime/BuildStep.html#prepare(example.runtime.BuildPlan)","name":"prepare","kind":"method","signature":"T prepare(BuildPlan plan) throws PlanException","summary":"Prepares an artifact without executing the application.","params":[{"name":"plan","type":"BuildPlan","doc":"the input configuration"}],"returns":{"type":"T","doc":"the prepared artifact"},"throws":[{"type":"PlanException","doc":"if the configuration cannot be prepared"}]}
{"symbol":"example.runtime.Experimental","href":"example/runtime/Experimental.html","name":"Experimental","kind":"annotation","signature":"public @interface Experimental","summary":"Marks a runtime API whose contract may evolve before the next release."}
{"symbol":"example.runtime.Experimental.since()","href":"example/runtime/Experimental.html#since()","name":"since","kind":"annotationElement","signature":"String since() default \"1.0\"","summary":"The version in which the experiment began.","returns":{"type":"String"},"defaultValue":"\"1.0\""}
{"symbol":"example.runtime.HotPath","href":"example/runtime/HotPath.html","name":"HotPath","kind":"annotation","signature":"public @interface HotPath","summary":"Marks operations used during plan lookup."}
{"symbol":"example.runtime.PlanCatalog","href":"example/runtime/PlanCatalog.html","name":"PlanCatalog","kind":"class","signature":"public final class PlanCatalog","summary":"Looks up immutable build plans by name.","details":"var catalog = new PlanCatalog(Map.of(\"app\", BuildPlan.defaults(\"example.Main\"))); var plan = catalog.find(\"app\");"}
{"symbol":"example.runtime.PlanCatalog.FORMAT_VERSION","href":"example/runtime/PlanCatalog.html#FORMAT_VERSION","name":"FORMAT_VERSION","kind":"field","signature":"public static final int FORMAT_VERSION","summary":"The catalog format version.","value":"1"}
{"symbol":"example.runtime.PlanCatalog(Map)","href":"example/runtime/PlanCatalog.html#%3Cinit%3E(java.util.Map)","name":"PlanCatalog","kind":"constructor","signature":"public PlanCatalog(Map<String, BuildPlan> plans)","summary":"Creates a catalog from a snapshot of the supplied plans.","params":[{"name":"plans","type":"Map<String, BuildPlan>","doc":"the named plans to copy"}]}
{"symbol":"example.runtime.PlanCatalog.find(String)","href":"example/runtime/PlanCatalog.html#find(java.lang.String)","name":"find","kind":"method","signature":"public @Nullable BuildPlan find(String name)","summary":"Looks up the plan associated with a name.","params":[{"name":"name","type":"String","doc":"the catalog key"}],"returns":{"type":"@Nullable BuildPlan","doc":"the matching plan, or null on a miss"}}
{"symbol":"example.runtime.PlanCatalog.names()","href":"example/runtime/PlanCatalog.html#names()","name":"names","kind":"method","signature":"public List<@NonNull String> names()","summary":"Returns the available keys in sorted order.","returns":{"type":"List<@NonNull String>","doc":"the keys, which are non-null"}}
{"symbol":"example.runtime.PlanCatalog.lookup(String)","href":"example/runtime/PlanCatalog.html#lookup(java.lang.String)","name":"lookup","kind":"method","signature":"public BuildPlan lookup(String name)","summary":"Returns a plan through the legacy lookup contract.","deprecated":{"since":"1.0","doc":"Use find(String) for an explicit nullness contract."},"params":[{"name":"name","type":"String","doc":"the catalog key"}],"returns":{"type":"BuildPlan","doc":"the lookup result"}}
{"symbol":"example.runtime.PlanException","href":"example/runtime/PlanException.html","name":"PlanException","kind":"class","signature":"public final class PlanException extends Exception","summary":"Indicates that a BuildPlan cannot be prepared."}
{"symbol":"example.runtime.PlanException(String)","href":"example/runtime/PlanException.html#%3Cinit%3E(java.lang.String)","name":"PlanException","kind":"constructor","signature":"public PlanException(String reason)","summary":"Creates a failure with an explanation suitable for the build log.","params":[{"name":"reason","type":"String","doc":"the rejected setting"}]}
{"symbol":"example.runtime.Planner","href":"example/runtime/Planner.html","name":"Planner","kind":"class","signature":"public abstract sealed class Planner implements BuildStep<BuildPlan> permits Planner.Local","summary":"Validates a BuildPlan before handing it to a BuildStep.","details":"Select a Target and call prepare(BuildPlan) to check the entry point."}
{"symbol":"example.runtime.Planner.target()","href":"example/runtime/Planner.html#target()","name":"target","kind":"method","signature":"public abstract Target target()","summary":"Identifies the runtime for prepared plans.","returns":{"type":"Target","doc":"the selected target"}}
{"symbol":"example.runtime.Planner.prepare(BuildPlan)","href":"example/runtime/Planner.html#prepare(example.runtime.BuildPlan)","name":"prepare","kind":"method","signature":"public BuildPlan prepare(BuildPlan plan) throws PlanException","summary":"Validates that the plan names an entry point.","params":[{"name":"plan","type":"BuildPlan","doc":"configuration to validate"}],"returns":{"type":"BuildPlan","doc":"the validated plan"},"throws":[{"type":"PlanException","doc":"when the entry point is blank"}]}
{"symbol":"example.runtime.Planner.Local","href":"example/runtime/Planner.Local.html","name":"Planner.Local","kind":"class","signature":"public static final class Planner.Local extends Planner","summary":"Prepares builds against a locally installed toolchain."}
{"symbol":"example.runtime.Planner.Local(Planner.Options)","href":"example/runtime/Planner.Local.html#%3Cinit%3E(example.runtime.Planner.Options)","name":"Local","kind":"constructor","signature":"public Local(Planner.Options options)","summary":"Uses explicit planning options.","params":[{"name":"options","type":"Planner.Options","doc":"runtime and progress settings"}]}
{"symbol":"example.runtime.Planner.Local(Target)","href":"example/runtime/Planner.Local.html#%3Cinit%3E(example.runtime.Target)","name":"Local","kind":"constructor","signature":"public Local(Target target)","summary":"Uses the supplied target with quiet progress.","params":[{"name":"target","type":"Target","doc":"the runtime"}]}
{"symbol":"example.runtime.Planner.Local.target()","href":"example/runtime/Planner.Local.html#target()","name":"target","kind":"method","signature":"public Target target()","summary":"Identifies the runtime for prepared plans.","returns":{"type":"Target","doc":"the selected target"}}
{"symbol":"example.runtime.Planner.Local.runtime()","href":"example/runtime/Planner.Local.html#runtime()","name":"runtime","kind":"method","signature":"public Target runtime()","summary":"Returns the configured runtime.","deprecated":{"since":"1.0","doc":"Use target()."},"returns":{"type":"Target","doc":"the selected target"}}
{"symbol":"example.runtime.Planner.Options","href":"example/runtime/Planner.Options.html","name":"Planner.Options","kind":"record","signature":"public record Planner.Options(Target target, Planner.Options.Detail detail)","summary":"Configuration for Local, including how to report progress."}
{"symbol":"example.runtime.Planner.Options(Target, Planner.Options.Detail)","href":"example/runtime/Planner.Options.html#%3Cinit%3E(example.runtime.Target,example.runtime.Planner.Options.Detail)","name":"Options","kind":"constructor","signature":"public Options(Target target, Planner.Options.Detail detail)","summary":"Creates a new Options instance.","params":[{"name":"target","type":"Target","doc":"the runtime"},{"name":"detail","type":"Planner.Options.Detail","doc":"the amount of progress to report"}]}
{"symbol":"example.runtime.Planner.Options.toString()","href":"example/runtime/Planner.Options.html#toString()","name":"toString","kind":"method","signature":"public final String toString()","summary":"Returns a string containing the record class name and its component names and values.","returns":{"type":"String","doc":"Returns a string containing the record class name and its component names and values."}}
{"symbol":"example.runtime.Planner.Options.hashCode()","href":"example/runtime/Planner.Options.html#hashCode()","name":"hashCode","kind":"method","signature":"public final int hashCode()","summary":"Returns a hash code computed from the record components.","returns":{"type":"int","doc":"Returns a hash code computed from the record components."}}
{"symbol":"example.runtime.Planner.Options.equals(Object)","href":"example/runtime/Planner.Options.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public final boolean equals(Object o)","summary":"Returns whether the other object is a record of the same class with equal components.","params":[{"name":"o","type":"Object","doc":"The object to compare with this record."}],"returns":{"type":"boolean","doc":"Returns whether the other object is a record of the same class with equal components."}}
{"symbol":"example.runtime.Planner.Options.target()","href":"example/runtime/Planner.Options.html#target()","name":"target","kind":"method","signature":"public Target target()","summary":"the runtime","returns":{"type":"Target","doc":"the runtime"}}
{"symbol":"example.runtime.Planner.Options.detail()","href":"example/runtime/Planner.Options.html#detail()","name":"detail","kind":"method","signature":"public Planner.Options.Detail detail()","summary":"the amount of progress to report","returns":{"type":"Planner.Options.Detail","doc":"the amount of progress to report"}}
{"symbol":"example.runtime.Planner.Options.Detail","href":"example/runtime/Planner.Options.Detail.html","name":"Planner.Options.Detail","kind":"enum","signature":"public enum Planner.Options.Detail","summary":"Controls progress while preparing a plan."}
{"symbol":"example.runtime.Planner.Options.Detail.values()","href":"example/runtime/Planner.Options.Detail.html#values()","name":"values","kind":"method","signature":"public static Planner.Options.Detail[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"Planner.Options.Detail[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"example.runtime.Planner.Options.Detail.valueOf(String)","href":"example/runtime/Planner.Options.Detail.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static Planner.Options.Detail valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"Planner.Options.Detail","doc":"Returns the enum constant with the given name."}}
{"symbol":"example.runtime.Planner.Options.Detail.QUIET","href":"example/runtime/Planner.Options.Detail.html#QUIET","name":"QUIET","kind":"enumConstant","signature":"QUIET","summary":"Report only the result."}
{"symbol":"example.runtime.Planner.Options.Detail.VERBOSE","href":"example/runtime/Planner.Options.Detail.html#VERBOSE","name":"VERBOSE","kind":"enumConstant","signature":"VERBOSE","summary":"Include each preparation step."}
{"symbol":"example.runtime.Target","href":"example/runtime/Target.html","name":"Target","kind":"enum","signature":"public enum Target","summary":"Selects the runtime that will consume a BuildPlan."}
{"symbol":"example.runtime.Target.values()","href":"example/runtime/Target.html#values()","name":"values","kind":"method","signature":"public static Target[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"Target[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"example.runtime.Target.valueOf(String)","href":"example/runtime/Target.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static Target valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"Target","doc":"Returns the enum constant with the given name."}}
{"symbol":"example.runtime.Target.JVM","href":"example/runtime/Target.html#JVM","name":"JVM","kind":"enumConstant","signature":"JVM","summary":"Use the installed Java virtual machine."}
{"symbol":"example.runtime.Target.NATIVE","href":"example/runtime/Target.html#NATIVE","name":"NATIVE","kind":"enumConstant","signature":"NATIVE","summary":"Compile an operating-system executable."}
