Top Description Methods
org.graalvm.options

public Interface OptionValues


Represents a set of option values based on an OptionDescriptor.
Since
19.0

Method Summary

Modifier and TypeMethod and Description
public <T> T
get(OptionKey<T> optionKey)

Returns the value of a given option.

public OptionDescriptors
getDescriptors()

Returns all available options.

public boolean
hasBeenSet(OptionKey<?> optionKey)

Determines if a value for optionKey has been set explicitly by the Context or Engine, and therefore get(OptionKey) does not call OptionKey#getDefaultValue().

public default boolean
hasSetOptions()

Determines if a value for any of the option keys in option descriptors has been set.

public default <T> void
set(OptionKey<T> optionKey, T value)
Deprecated since 22.0. OptionValues should be read-only.

Sets the value of optionKey to value.

Method Detail

getback to summary
public <T> T get(OptionKey<T> optionKey)

Returns the value of a given option. hasBeenSet(OptionKey) can be used to know whether the value was explicitly set, or is the default value.

Since
19.0
getDescriptorsback to summary
public OptionDescriptors getDescriptors()

Returns all available options.

Since
19.0
hasBeenSetback to summary
public boolean hasBeenSet(OptionKey<?> optionKey)

Determines if a value for optionKey has been set explicitly by the Context or Engine, and therefore get(OptionKey) does not call OptionKey#getDefaultValue().

Since
19.0
hasSetOptionsback to summary
public default boolean hasSetOptions()

Determines if a value for any of the option keys in option descriptors has been set.

Since
19.0
setback to summary
public default <T> void set(OptionKey<T> optionKey, T value)

Deprecated

since 22.0.

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 of optionKey to value.

Annotations
@Deprecated
since:22.0
@SuppressWarnings:unused
Exceptions
UnsupportedOperationException:
because this operation has been deprecated and is no longer supported, in order for OptionValues to be read-only.
Since
19.0