public static class CompileTheWorld.Config extends HashMap<OptionValue<?>,Object> implements OptionUtils.OptionConsumer
CompileTheWorld.Config
object
should be used in a try-with-resources statement to ensure overriding of options is scoped
properly. For example:
Config config = ...; try (AutoCloseable s = config == null ? null : config.apply()) { // perform a JVMCI compilation }
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Config(String options)
Creates a
CompileTheWorld.Config object by parsing a set of space separated override options. |
Modifier and Type | Method and Description |
---|---|
(package private) OptionValue.OverrideScope |
apply()
Applies the overrides represented by this object.
|
void |
set(OptionDescriptor desc,
Object value) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public Config(String options)
CompileTheWorld.Config
object by parsing a set of space separated override options.options
- a space separated set of option value settings with each option setting in
a format compatible with
OptionUtils.parseOption(String, OptionConsumer)
. Ignored if null.OptionValue.OverrideScope apply()
OptionValue.OverrideScope.close()
is called on the returned object.public void set(OptionDescriptor desc, Object value)
set
in interface OptionUtils.OptionConsumer