API Docsruntime-kit 1.0
All types

BuildPlan

Javarecordin example.runtimesince 1.0

public record BuildPlan(String mainClass, List<String> arguments)
Inheritance
  1. Object
  2. Record
  3. BuildPlan

Describes how to build a Java application as a native executable.

Pass this plan to a Planner.Local for validation against a Target. For example:

var plan = new BuildPlan("example.Main", List.of("-O2"));

Record components

mainClassString
the fully qualified entry point
argumentsList<String>
compiler arguments in invocation order

Constructors1

BuildPlan(String, List<String>)

BuildPlan

public BuildPlan(String mainClass, List<String> arguments)

Creates a plan with a stable copy of the arguments.

Parameters

mainClassString
the fully qualified entry point
argumentsList<String>
compiler arguments in invocation order

Methods6

static BuildPlan defaults(String)

defaults

static
public static BuildPlan defaults(String mainClass)

Returns a plan for the entry point using default compiler settings.

Parameters

mainClassString
the fully qualified entry point

Returns

BuildPlan
a plan with an empty argument list
String toString()

toString

public final String toString()

Returns a string containing the record class name and its component names and values.

Returns

String
Returns a string containing the record class name and its component names and values.

Overrides toString().

int hashCode()

hashCode

public final int hashCode()

Returns a hash code computed from the record components.

Returns

int
Returns a hash code computed from the record components.

Overrides hashCode().

boolean equals(Object)

equals

public final boolean equals(Object o)

Returns whether the other object is a record of the same class with equal components.

Parameters

oObject
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).

String mainClass()

mainClass

public String mainClass()

the fully qualified entry point

Returns

String
the fully qualified entry point
List<String> arguments()

arguments

public List<String> arguments()

compiler arguments in invocation order

Returns

List<String>
compiler arguments in invocation order

Inherited members

From class Object

getClass, notify, notifyAll, wait, wait, wait