Package org.graalvm.options
Class OptionDescriptor.Builder
java.lang.Object
org.graalvm.options.OptionDescriptor.Builder
- Enclosing class:
OptionDescriptor
Represents an option descriptor builder.
- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a new option descriptor.category
(OptionCategory category) Defines the user category for this option.deprecated
(boolean deprecated) Defines if this option is deprecated.deprecationMessage
(String deprecationMessage) Specifies a human-readable deprecation reason and the recommended fix.Specifies a human-readable description on how to use the option.stability
(OptionStability stability) Defines the stability of this option.usageSyntax
(String usageSyntax) Specifies a human-readable syntax describing the accepted values for this option.
-
Method Details
-
category
Defines the user category for this option. The default value isOptionCategory.INTERNAL
.- Since:
- 19.0
-
stability
Defines the stability of this option. The default value isOptionStability.EXPERIMENTAL
.- Since:
- 19.0
-
deprecated
Defines if this option is deprecated. The default value for deprecated isfalse
. This can be used to evolve options between releases.- Since:
- 19.0
-
help
Specifies a human-readable description on how to use the option.- Since:
- 19.0
-
usageSyntax
Specifies a human-readable syntax describing the accepted values for this option.- Since:
- 22.1
-
deprecationMessage
Specifies a human-readable deprecation reason and the recommended fix.- Since:
- 20.1.0
-
build
Builds and returns a new option descriptor.- Since:
- 19.0
-