@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 |
boolean |
extra
This option should only be shown with --help-extra.
|
String[] |
fixedValue
If a
fixedValue is provided the APIOption will not accept custom option
values and instead always use the specified value. |
Class<? extends APIOptionGroup> |
group
Make a boolean option part of a group of boolean options.
|
APIOption.APIOptionKind |
kind |
char |
valueSeparator
Provide a custom separator that should be used to separate the option name from its option
values.
|
Class<? extends Function<Object,Object>>[] |
valueTransformer
Allow transforming option values before assigning them to the underlying
Option. |
public abstract String[] name
public abstract boolean extra
public abstract Class<? extends APIOptionGroup> group
public abstract String customHelp
public abstract APIOption.APIOptionKind kind
public abstract char valueSeparator
'='.public abstract String[] defaultValue
= is specified.
By default --option form is equivalent to --option= (it passes empty string).
public abstract String deprecated