@Repeatable(value=APIOption.List.class) @Retention(value=RUNTIME) @Target(value=FIELD) public @interface APIOption
Option
is additionally annotated with APIOption
it will be exposed as
native-image option with the given name.Modifier and Type | Required Element and Description |
---|---|
String |
name
The name of the option when exposed as native-image option.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
customHelp
Provide a custom help message for the option.
|
String[] |
defaultValue
The value that will be passed to a non-boolean option when no
= is specified. |
String |
deprecated |
String[] |
fixedValue
If a
fixedValue is provided the APIOption will not accept custom option
values and instead always use the specified value. |
APIOption.APIOptionKind |
kind |
Class<? extends Function<Object,Object>>[] |
valueTransformer
Allow transforming option values before assigning them to the underlying
Option . |
public abstract String name
public abstract String customHelp
public abstract APIOption.APIOptionKind kind
public abstract String[] defaultValue
=
is specified.
By default --option
form is equivalent to --option=
(it passes empty string).
public abstract String deprecated