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.constant(boolean value) Marks this option as constant.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
-
constant
Marks this option as constant. Constant options useConstantOptionKeyas their key type and must be configured using the system property-Dpolyglot.<option-name>=<value>before the polyglot runtime is initialized. Setting a constant option at runtime viaEngine.Builder.option(String, String)throws anIllegalArgumentException. The default value isfalse.- Since:
- 25.1
- See Also:
-
build
Builds and returns a new option descriptor.- Throws:
IllegalArgumentException- if this descriptor is marked withconstant(true)but the key is not aConstantOptionKey, or if the key is aConstantOptionKeybut the descriptor is not marked withconstant(true).- Since:
- 19.0
-