public class HostedOptionKey<T>
extends org.graalvm.compiler.options.OptionKey<T>
Option
that is used during native image generation, in contrast to a
runtime option
.com.oracle.svm.core.option
Constructor and Description |
---|
HostedOptionKey(T defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDescriptorExists()
Descriptors are not loaded for
HostedOptionKey . |
T |
getValue()
Returns the value of this option in the
HostedOptionValues . |
boolean |
hasBeenSet()
Returns
true if this option has been set in the HostedOptionValues . |
public HostedOptionKey(T defaultValue)
public T getValue()
HostedOptionValues
.
The result of this method is guaranteed to be constant folded in the native image due to the
Fold
annotation.
public boolean hasBeenSet()
true
if this option has been set in the HostedOptionValues
.
The result of this method is guaranteed to be constant folded in the native image due to the
Fold
annotation.
protected boolean checkDescriptorExists()
HostedOptionKey
.checkDescriptorExists
in class org.graalvm.compiler.options.OptionKey<T>