Package org.graalvm.options
Interface OptionValues
public interface OptionValues
Represents a set of option values based on an
OptionDescriptor
.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescription<T> T
Returns the value of a given option.Returns all available options.boolean
hasBeenSet
(OptionKey<?> optionKey) Determines if a value foroptionKey
has been set explicitly by theContext
orEngine
, and thereforeget(OptionKey)
does not callOptionKey.getDefaultValue()
.default boolean
Determines if a value for any of the option keys inoption descriptors
has been set
.default <T> void
Deprecated.
-
Method Details
-
getDescriptors
OptionDescriptors getDescriptors()Returns all available options.- Since:
- 19.0
-
set
Deprecated.OptionValues
should be read-only. If the value of an option needs to be altered after options are set, then the new value should be stored in the language's context or instrument fields and read from there.Sets the value ofoptionKey
tovalue
.- Throws:
UnsupportedOperationException
- because this operation has been deprecated and is no longer supported, in order for OptionValues to be read-only.- Since:
- 19.0
-
get
Returns the value of a given option.hasBeenSet(OptionKey)
can be used to know whether the value was explicitly set, or is thedefault value
.- Since:
- 19.0
-
hasBeenSet
Determines if a value foroptionKey
has been set explicitly by theContext
orEngine
, and thereforeget(OptionKey)
does not callOptionKey.getDefaultValue()
.- Since:
- 19.0
-
hasSetOptions
default boolean hasSetOptions()Determines if a value for any of the option keys inoption descriptors
has been set
.- Since:
- 19.0
-
OptionValues
should be read-only.