See: Description
Interface | Description |
---|---|
RuntimeOptionParser.OptionsParsedListener |
Class | Description |
---|---|
APIOption.DefaultTransformer | |
APIOption.Utils | |
HostedOptionKey<T> |
Defines a hosted
Option that is used during native image generation, in contrast to a
runtime option . |
HostedOptionValues |
The singleton holder of hosted options.
|
OptionUtils |
This class contains static helper methods related to options.
|
RuntimeOptionKey<T> |
Defines a runtime
Option , in contrast to a hosted option . |
RuntimeOptionParser |
Option parser to be used by an application that runs on Substrate VM.
|
RuntimeOptionValues |
The singleton holder of runtime options.
|
SubstrateOptionsParser |
This class contains methods for parsing options and matching them against
OptionDescriptor s. |
XOptions |
A parser for the HotSpot-like memory sizing options "-Xmn", "-Xms", "-Xmx", "-Xss".
|
XOptions.XFlag |
An X flag.
|
Enum | Description |
---|---|
APIOption.APIOptionKind |
APIOptionKind can be used to customize how an
APIOption gets rewritten to its
Option counterpart. |
SubstrateOptionsParser.BooleanOptionFormat |
Constants denoting supported boolean option formats.
|
Annotation Type | Description |
---|---|
APIOption |
If an
Option is additionally annotated with APIOption it will be exposed as
native-image option with the given name. |
APIOption.List |
static final
field that is annotated with the
annotation Option
. Values are stored in
OptionValues
.
Substrate VM has two distinct kinds of options:
HostedOptionKey
.
The option values are maintained by HostedOptionValues
. The
most convenient access to the value of a hosted option is
HostedOptionKey.getValue()
.
Hosted options cannot be changed at run time. Instead they are guaranteed to be constant folded
in the image. This is implemented using the Fold
annotation on HostedOptionKey.getValue()
.
RuntimeOptionKey
. The option values are maintained by
RuntimeOptionValues
. The most convenient access to the value
of a runtime option is RuntimeOptionKey.getValue()
.
Runtime options can be changed at run time.
RuntimeOptionParser.parse(java.lang.String[], java.lang.String)
is a convenient helper to do option
parsing at run time.
OptionValues
. Therefore, access of a Graal option using
OptionKey.getValue(org.graalvm.compiler.options.OptionValues)
requires to explicitly specify one of the two option values of Substrate VM:
HostedOptionValues.singleton()
or
RuntimeOptionValues.singleton()
.