Package org.graalvm.options
Class OptionDescriptor
java.lang.Object
org.graalvm.options.OptionDescriptor
Represents metadata for a single option.
- Since:
- 19.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classRepresents an option descriptor builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the user category of this option.Returns the deprecation reason and the recommended fix.getHelp()Returns a human-readable description on how to use the option.OptionKey<?> getKey()Returns the key for this option.getName()Returns the name of the option that this descriptor represents.Returns the stability of this option.Specifies a human-readable syntax describing the accepted values for this option.inthashCode()booleanReturnstrueif this option was marked deprecated.booleanReturnstrueif this option is an option map.static <T> OptionDescriptor.BuildernewBuilder(OptionKey<T> key, String name) Creates a new option descriptor builder by key.toString()
-
Method Details
-
getName
Returns the name of the option that this descriptor represents.- Since:
- 19.0
-
getKey
Returns the key for this option.- Since:
- 19.0
-
isDeprecated
public boolean isDeprecated()Returnstrueif this option was marked deprecated. This indicates that the option is going to be removed in a future release or its use is not recommended.- Since:
- 19.0
-
getDeprecationMessage
Returns the deprecation reason and the recommended fix. For newlines, use%n.- Since:
- 20.1.0
-
isOptionMap
public boolean isOptionMap()Returnstrueif this option is an option map. Options maps allow to collect key=value pairs whose keys are unknown beforehand e.g. user defined properties.- Since:
- 19.2
-
getCategory
Returns the user category of this option.- Since:
- 19.0
-
getStability
Returns the stability of this option.- Since:
- 19.0
-
getHelp
Returns a human-readable description on how to use the option. For newlines, use%n.- Since:
- 19.0
-
getUsageSyntax
Specifies a human-readable syntax describing the accepted values for this option.- Returns:
- null if no usage syntax should be used, the usage syntax otherwise
- Since:
- 22.1
-
toString
-
hashCode
public int hashCode() -
equals
-
newBuilder
Creates a new option descriptor builder by key. The option group and name is inferred by the key.- Since:
- 19.0
-