{"symbol":"org.graalvm.home.HomeFinder","href":"org/graalvm/home/HomeFinder.html","name":"HomeFinder","kind":"class","signature":"public abstract class HomeFinder","summary":"A utility class to find various paths of the running GraalVM, as well as the version.","details":"Use HomeFinder.getInstance() to get the singleton instance."}
{"symbol":"org.graalvm.home.HomeFinder()","href":"org/graalvm/home/HomeFinder.html#%3Cinit%3E()","name":"HomeFinder","kind":"constructor","signature":"public HomeFinder()"}
{"symbol":"org.graalvm.home.HomeFinder.getHomeFolder()","href":"org/graalvm/home/HomeFinder.html#getHomeFolder()","name":"getHomeFolder","kind":"method","signature":"public abstract Path getHomeFolder()","returns":{"type":"Path","doc":"the GraalVM home folder if inside GraalVM or null otherwise."}}
{"symbol":"org.graalvm.home.HomeFinder.getVersion()","href":"org/graalvm/home/HomeFinder.html#getVersion()","name":"getVersion","kind":"method","signature":"public abstract String getVersion()","returns":{"type":"String","doc":"the GraalVM version or \"snapshot\" if unknown."}}
{"symbol":"org.graalvm.home.HomeFinder.getLanguageHomes()","href":"org/graalvm/home/HomeFinder.html#getLanguageHomes()","name":"getLanguageHomes","kind":"method","signature":"public abstract Map<String, Path> getLanguageHomes()","returns":{"type":"Map<String, Path>","doc":"a Map of language ids to their home path."}}
{"symbol":"org.graalvm.home.HomeFinder.getToolHomes()","href":"org/graalvm/home/HomeFinder.html#getToolHomes()","name":"getToolHomes","kind":"method","signature":"public abstract Map<String, Path> getToolHomes()","returns":{"type":"Map<String, Path>","doc":"a Map of tool ids to their home path."}}
{"symbol":"org.graalvm.home.HomeFinder.getInstance()","href":"org/graalvm/home/HomeFinder.html#getInstance()","name":"getInstance","kind":"method","signature":"public static HomeFinder getInstance()","returns":{"type":"HomeFinder","doc":"the HomeFinder instance by using a ServiceLoader."},"throws":[{"type":"IllegalStateException","doc":"if no implementation could be found."}]}
{"symbol":"org.graalvm.home.Version","href":"org/graalvm/home/Version.html","name":"Version","kind":"class","signature":"public final class Version implements Comparable<Version>","summary":"A version utility to canonicalize and compare GraalVM versions.","detailsOmitted":true}
{"symbol":"org.graalvm.home.Version.isRelease()","href":"org/graalvm/home/Version.html#isRelease()","name":"isRelease","kind":"method","signature":"public boolean isRelease()","summary":"Returns true if this is a supported release build of GraalVM else false.","details":"Use this for implementation assertions that verify that only releases are deployed to production.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.home.Version.isSnapshot()","href":"org/graalvm/home/Version.html#isSnapshot()","name":"isSnapshot","kind":"method","signature":"public boolean isSnapshot()","summary":"Returns true if this is an unsupported snapshot build of GraalVM else false.","details":"Use this for implementation assertions that verify that only releases are deployed to production.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.home.Version.compareTo(Version)","href":"org/graalvm/home/Version.html#compareTo(org.graalvm.home.Version)","name":"compareTo","kind":"method","signature":"public int compareTo(Version o)","params":[{"name":"o","type":"Version"}],"returns":{"type":"int"}}
{"symbol":"org.graalvm.home.Version.compareTo(int...)","href":"org/graalvm/home/Version.html#compareTo(int...)","name":"compareTo","kind":"method","signature":"public int compareTo(int... compareVersions)","summary":"Compares this version to another GraalVM version.","details":"This is equivalent to using: compareTo(Version.create(compareVersions)) .","params":[{"name":"compareVersions","type":"int..."}],"returns":{"type":"int"}}
{"symbol":"org.graalvm.home.Version.equals(Object)","href":"org/graalvm/home/Version.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.home.Version.hashCode()","href":"org/graalvm/home/Version.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.home.Version.toString()","href":"org/graalvm/home/Version.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.home.Version.format(String)","href":"org/graalvm/home/Version.html#format(java.lang.String)","name":"format","kind":"method","signature":"public String format(String format)","summary":"Format the GraalVM version with a custom format string.","detailsOmitted":true,"params":[{"name":"format","type":"String"}],"returns":{"type":"String"}}
{"symbol":"org.graalvm.home.Version.getComponent(int)","href":"org/graalvm/home/Version.html#getComponent(int)","name":"getComponent","kind":"method","signature":"public int getComponent(int componentIndex)","summary":"Retrieves the numeric value of the version component at the specified index.","details":"Version components are indexed as follows: componentIndex = 0 represents the major version componentIndex = 1 represents the minor version componentIndex = 2 represents the update version If the specified componentIndex exceeds the number of available components, the method returns 0. For example, a version 23.1 will return 0 for componentIndex = 2.","params":[{"name":"componentIndex","type":"int","doc":"the index of the version component to retrieve; must be non-negative"}],"returns":{"type":"int"},"throws":[{"type":"IllegalArgumentException","doc":"if componentIndex is negative"}]}
{"symbol":"org.graalvm.home.Version.parse(String)","href":"org/graalvm/home/Version.html#parse(java.lang.String)","name":"parse","kind":"method","signature":"public static Version parse(String versionString) throws IllegalArgumentException","summary":"Parses a GraalVM version from its String raw format.","details":"Throws IllegalArgumentException if the passed string is not a valid GraalVM version.","params":[{"name":"versionString","type":"String"}],"returns":{"type":"Version"},"throws":[{"type":"IllegalArgumentException"}]}
{"symbol":"org.graalvm.home.Version.create(int...)","href":"org/graalvm/home/Version.html#create(int...)","name":"create","kind":"method","signature":"public static Version create(int... versions) throws IllegalArgumentException","summary":"Constructs a new GraalVM version from a list of version numbers.","details":"The versions must not be null and none of the version numbers must be negative. At least one version number must be non-zero.","params":[{"name":"versions","type":"int..."}],"returns":{"type":"Version"},"throws":[{"type":"IllegalArgumentException"}]}
{"symbol":"org.graalvm.home.Version.getCurrent()","href":"org/graalvm/home/Version.html#getCurrent()","name":"getCurrent","kind":"method","signature":"public static Version getCurrent()","summary":"Returns the current GraalVM version of the installed component.","details":"Never null.","returns":{"type":"Version"}}
{"symbol":"org.graalvm.options.ConstantOptionKey","href":"org/graalvm/options/ConstantOptionKey.html","name":"ConstantOptionKey","kind":"class","signature":"public final class ConstantOptionKey<T> extends OptionKey<T>","summary":"Represents an OptionKey whose value is fixed before the polyglot runtime is initialized and cannot be changed afterwards.","detailsOmitted":true}
{"symbol":"org.graalvm.options.ConstantOptionKey(T)","href":"org/graalvm/options/ConstantOptionKey.html#%3Cinit%3E(T)","name":"ConstantOptionKey","kind":"constructor","signature":"public ConstantOptionKey(T defaultValue)","summary":"Constructs a new constant option key with the given default value.","details":"The default value is used when no value is specified via the system property -Dpolyglot.<option-name>. Throws IllegalArgumentException if no default OptionType could be resolved for the given type. The default value must not be null.","params":[{"name":"defaultValue","type":"T"}]}
{"symbol":"org.graalvm.options.ConstantOptionKey(T, OptionType)","href":"org/graalvm/options/ConstantOptionKey.html#%3Cinit%3E(T,org.graalvm.options.OptionType)","name":"ConstantOptionKey","kind":"constructor","signature":"public ConstantOptionKey(T defaultValue, OptionType<T> type)","summary":"Constructs a new constant option key with an explicit option type and default value.","details":"The default value is used when no value is specified via the system property -Dpolyglot.<option-name>.","params":[{"name":"defaultValue","type":"T"},{"name":"type","type":"OptionType<T>"}]}
{"symbol":"org.graalvm.options.ConstantOptionKey.getConstantValue()","href":"org/graalvm/options/ConstantOptionKey.html#getConstantValue()","name":"getConstantValue","kind":"method","signature":"public T getConstantValue()","summary":"Returns the constant value of this option key.","details":"The value is fixed at class initialization time and remains immutable for the lifetime of the runtime, making this method eligible for constant folding by the GraalVM compiler when the receiver is a heap constant.","returns":{"type":"T"},"throws":[{"type":"IllegalStateException","doc":"if the value has not been set yet, which should not happen in normal usage as the generated option descriptors static initializer sets the value at class load time."}]}
{"symbol":"org.graalvm.options.ConstantOptionKey.setConstantValue(T)","href":"org/graalvm/options/ConstantOptionKey.html#setConstantValue(T)","name":"setConstantValue","kind":"method","signature":"public void setConstantValue(T value)","summary":"Sets the constant value of this option key.","details":"This method is intended to be called from the generated option descriptors static initializer and must not be called after the polyglot runtime has started. In a native image, it must not be called at image run time.","params":[{"name":"value","type":"T"}],"throws":[{"type":"IllegalStateException","doc":"if the value has already been set, or if called at native image run time."}]}
{"symbol":"org.graalvm.options.OptionCategory","href":"org/graalvm/options/OptionCategory.html","name":"OptionCategory","kind":"enum","signature":"public enum OptionCategory","summary":"Categorizes options according to user relevance."}
{"symbol":"org.graalvm.options.OptionCategory.values()","href":"org/graalvm/options/OptionCategory.html#values()","name":"values","kind":"method","signature":"public static OptionCategory[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"OptionCategory[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"org.graalvm.options.OptionCategory.valueOf(String)","href":"org/graalvm/options/OptionCategory.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static OptionCategory valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"OptionCategory","doc":"Returns the enum constant with the given name."}}
{"symbol":"org.graalvm.options.OptionCategory.USER","href":"org/graalvm/options/OptionCategory.html#USER","name":"USER","kind":"enumConstant","signature":"USER","summary":"An option common for users to apply."}
{"symbol":"org.graalvm.options.OptionCategory.EXPERT","href":"org/graalvm/options/OptionCategory.html#EXPERT","name":"EXPERT","kind":"enumConstant","signature":"EXPERT","summary":"An option only relevant in corner cases and for fine-tuning."}
{"symbol":"org.graalvm.options.OptionCategory.INTERNAL","href":"org/graalvm/options/OptionCategory.html#INTERNAL","name":"INTERNAL","kind":"enumConstant","signature":"INTERNAL","summary":"An option only relevant when debugging a language implementation or an instrument."}
{"symbol":"org.graalvm.options.OptionDescriptor","href":"org/graalvm/options/OptionDescriptor.html","name":"OptionDescriptor","kind":"class","signature":"public final class OptionDescriptor","summary":"Represents metadata for a single option."}
{"symbol":"org.graalvm.options.OptionDescriptor.getName()","href":"org/graalvm/options/OptionDescriptor.html#getName()","name":"getName","kind":"method","signature":"public String getName()","summary":"Returns the name of the option that this descriptor represents.","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getKey()","href":"org/graalvm/options/OptionDescriptor.html#getKey()","name":"getKey","kind":"method","signature":"public OptionKey<?> getKey()","summary":"Returns the key for this option.","returns":{"type":"OptionKey<?>"}}
{"symbol":"org.graalvm.options.OptionDescriptor.isDeprecated()","href":"org/graalvm/options/OptionDescriptor.html#isDeprecated()","name":"isDeprecated","kind":"method","signature":"public boolean isDeprecated()","summary":"Returns true if this option was marked deprecated.","details":"This indicates that the option is going to be removed in a future release or its use is not recommended.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getDeprecationMessage()","href":"org/graalvm/options/OptionDescriptor.html#getDeprecationMessage()","name":"getDeprecationMessage","kind":"method","signature":"public String getDeprecationMessage()","summary":"Returns the deprecation reason and the recommended fix.","details":"For newlines, use %n.","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionDescriptor.isOptionMap()","href":"org/graalvm/options/OptionDescriptor.html#isOptionMap()","name":"isOptionMap","kind":"method","signature":"public boolean isOptionMap()","summary":"Returns true if this option is an option map.","details":"Options maps allow to collect key=value pairs whose keys are unknown beforehand e.g. user defined properties.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getCategory()","href":"org/graalvm/options/OptionDescriptor.html#getCategory()","name":"getCategory","kind":"method","signature":"public OptionCategory getCategory()","summary":"Returns the user category of this option.","returns":{"type":"OptionCategory"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getStability()","href":"org/graalvm/options/OptionDescriptor.html#getStability()","name":"getStability","kind":"method","signature":"public OptionStability getStability()","summary":"Returns the stability of this option.","returns":{"type":"OptionStability"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getHelp()","href":"org/graalvm/options/OptionDescriptor.html#getHelp()","name":"getHelp","kind":"method","signature":"public String getHelp()","summary":"Returns a human-readable description on how to use the option.","details":"For newlines, use %n.","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionDescriptor.getUsageSyntax()","href":"org/graalvm/options/OptionDescriptor.html#getUsageSyntax()","name":"getUsageSyntax","kind":"method","signature":"public String getUsageSyntax()","summary":"Specifies a human-readable syntax describing the accepted values for this option.","returns":{"type":"String","doc":"null if no usage syntax should be used, the usage syntax otherwise"}}
{"symbol":"org.graalvm.options.OptionDescriptor.isConstant()","href":"org/graalvm/options/OptionDescriptor.html#isConstant()","name":"isConstant","kind":"method","signature":"public boolean isConstant()","summary":"Returns true if this option is constant.","details":"Constant options value is static and final before the polyglot runtime is initialized and cannot be changed at runtime. The value is read from the system property -Dpolyglot.<option-name>=<value> during class initialization. If absent, the default value is used. Once set, calls to org.graalvm.options.ConstantOptionKey.getConstantValue() on a static final field are eligible for constant folding by the GraalVM compiler, allowing dead branches to be eliminated.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionDescriptor.toString()","href":"org/graalvm/options/OptionDescriptor.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionDescriptor.hashCode()","href":"org/graalvm/options/OptionDescriptor.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.options.OptionDescriptor.equals(Object)","href":"org/graalvm/options/OptionDescriptor.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionDescriptor.newBuilder(OptionKey, String)","href":"org/graalvm/options/OptionDescriptor.html#newBuilder(org.graalvm.options.OptionKey,java.lang.String)","name":"newBuilder","kind":"method","signature":"public static <T> OptionDescriptor.Builder newBuilder(OptionKey<T> key, String name)","summary":"Creates a new option descriptor builder by key.","details":"The option group and name is inferred by the key.","params":[{"name":"key","type":"OptionKey<T>"},{"name":"name","type":"String"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder","href":"org/graalvm/options/OptionDescriptor.Builder.html","name":"OptionDescriptor.Builder","kind":"class","signature":"public final class OptionDescriptor.Builder","summary":"Represents an option descriptor builder."}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.category(OptionCategory)","href":"org/graalvm/options/OptionDescriptor.Builder.html#category(org.graalvm.options.OptionCategory)","name":"category","kind":"method","signature":"public OptionDescriptor.Builder category(OptionCategory category)","summary":"Defines the user category for this option.","details":"The default value is OptionCategory.INTERNAL.","params":[{"name":"category","type":"OptionCategory"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.stability(OptionStability)","href":"org/graalvm/options/OptionDescriptor.Builder.html#stability(org.graalvm.options.OptionStability)","name":"stability","kind":"method","signature":"public OptionDescriptor.Builder stability(OptionStability stability)","summary":"Defines the stability of this option.","details":"The default value is OptionStability.EXPERIMENTAL.","params":[{"name":"stability","type":"OptionStability"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.deprecated(boolean)","href":"org/graalvm/options/OptionDescriptor.Builder.html#deprecated(boolean)","name":"deprecated","kind":"method","signature":"public OptionDescriptor.Builder deprecated(boolean deprecated)","summary":"Defines if this option is deprecated.","details":"The default value for deprecated is false. This can be used to evolve options between releases.","params":[{"name":"deprecated","type":"boolean"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.help(String)","href":"org/graalvm/options/OptionDescriptor.Builder.html#help(java.lang.String)","name":"help","kind":"method","signature":"public OptionDescriptor.Builder help(String help)","summary":"Specifies a human-readable description on how to use the option.","params":[{"name":"help","type":"String"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.usageSyntax(String)","href":"org/graalvm/options/OptionDescriptor.Builder.html#usageSyntax(java.lang.String)","name":"usageSyntax","kind":"method","signature":"public OptionDescriptor.Builder usageSyntax(String usageSyntax)","summary":"Specifies a human-readable syntax describing the accepted values for this option.","params":[{"name":"usageSyntax","type":"String"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.deprecationMessage(String)","href":"org/graalvm/options/OptionDescriptor.Builder.html#deprecationMessage(java.lang.String)","name":"deprecationMessage","kind":"method","signature":"public OptionDescriptor.Builder deprecationMessage(String deprecationMessage)","summary":"Specifies a human-readable deprecation reason and the recommended fix.","params":[{"name":"deprecationMessage","type":"String"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.constant(boolean)","href":"org/graalvm/options/OptionDescriptor.Builder.html#constant(boolean)","name":"constant","kind":"method","signature":"public OptionDescriptor.Builder constant(boolean value)","summary":"Marks this option as constant.","details":"Constant options use ConstantOptionKey as their key type and must be configured using the system property -Dpolyglot.<option-name>=<value> before the polyglot runtime is initialized. Setting a constant option at runtime via org.graalvm.polyglot.Engine.Builder.option(String, String) throws an IllegalArgumentException. The default value is false.","params":[{"name":"value","type":"boolean"}],"returns":{"type":"OptionDescriptor.Builder"}}
{"symbol":"org.graalvm.options.OptionDescriptor.Builder.build()","href":"org/graalvm/options/OptionDescriptor.Builder.html#build()","name":"build","kind":"method","signature":"public OptionDescriptor build()","summary":"Builds and returns a new option descriptor.","returns":{"type":"OptionDescriptor"},"throws":[{"type":"IllegalArgumentException","doc":"if this descriptor is marked with constant(true) but the key is not a ConstantOptionKey, or if the key is a ConstantOptionKey but the descriptor is not marked with constant(true)."}]}
{"symbol":"org.graalvm.options.OptionDescriptors","href":"org/graalvm/options/OptionDescriptors.html","name":"OptionDescriptors","kind":"interface","signature":"public interface OptionDescriptors extends Iterable<OptionDescriptor>","summary":"An interface to a set of OptionDescriptors."}
{"symbol":"org.graalvm.options.OptionDescriptors.EMPTY","href":"org/graalvm/options/OptionDescriptors.html#EMPTY","name":"EMPTY","kind":"field","signature":"OptionDescriptors EMPTY","summary":"An empty set of option descriptors."}
{"symbol":"org.graalvm.options.OptionDescriptors.get(String)","href":"org/graalvm/options/OptionDescriptors.html#get(java.lang.String)","name":"get","kind":"method","signature":"OptionDescriptor get(String optionName)","summary":"Gets the OptionDescriptor matching a given option name or null if this option descriptor set does not contain a matching option name.","params":[{"name":"optionName","type":"String"}],"returns":{"type":"OptionDescriptor"}}
{"symbol":"org.graalvm.options.OptionDescriptors.createUnion(OptionDescriptors...)","href":"org/graalvm/options/OptionDescriptors.html#createUnion(org.graalvm.options.OptionDescriptors...)","name":"createUnion","kind":"method","signature":"static OptionDescriptors createUnion(OptionDescriptors... descriptors)","summary":"Creates a union options descriptor out of multiple given descriptors.","details":"The operation descriptors are not checked for duplicate keys. The option descriptors are iterated in declaration order.","params":[{"name":"descriptors","type":"OptionDescriptors..."}],"returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.options.OptionDescriptors.iterator()","href":"org/graalvm/options/OptionDescriptors.html#iterator()","name":"iterator","kind":"method","signature":"Iterator<OptionDescriptor> iterator()","returns":{"type":"Iterator<OptionDescriptor>"}}
{"symbol":"org.graalvm.options.OptionDescriptors.create(List)","href":"org/graalvm/options/OptionDescriptors.html#create(java.util.List)","name":"create","kind":"method","signature":"static OptionDescriptors create(List<OptionDescriptor> descriptors)","summary":"Creates an OptionDescriptors instance from a list.","details":"The option descriptors implementation is backed by a LinkedHashMap that preserves ordering.","params":[{"name":"descriptors","type":"List<OptionDescriptor>"}],"returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.options.OptionKey","href":"org/graalvm/options/OptionKey.html","name":"OptionKey","kind":"class","signature":"public sealed class OptionKey<T> permits ConstantOptionKey","summary":"Represents the option key for an option specification."}
{"symbol":"org.graalvm.options.OptionKey(T)","href":"org/graalvm/options/OptionKey.html#%3Cinit%3E(T)","name":"OptionKey","kind":"constructor","signature":"public OptionKey(T defaultValue)","summary":"Constructs a new option key given a default value.","details":"Throws IllegalArgumentException if no default OptionType could be resolved for the given type. The default value must not be null.","params":[{"name":"defaultValue","type":"T"}]}
{"symbol":"org.graalvm.options.OptionKey(T, OptionType)","href":"org/graalvm/options/OptionKey.html#%3Cinit%3E(T,org.graalvm.options.OptionType)","name":"OptionKey","kind":"constructor","signature":"public OptionKey(T defaultValue, OptionType<T> type)","summary":"Constructs a new option key given a default value and option key.","params":[{"name":"defaultValue","type":"T"},{"name":"type","type":"OptionType<T>"}]}
{"symbol":"org.graalvm.options.OptionKey.mapOf(Class)","href":"org/graalvm/options/OptionKey.html#mapOf(java.lang.Class)","name":"mapOf","kind":"method","signature":"public static <V> OptionKey<OptionMap<V>> mapOf(Class<V> valueClass)","summary":"Constructs a new option key to group/accumulate options with common prefixes.","detailsOmitted":true,"params":[{"name":"valueClass","type":"Class<V>"}],"returns":{"type":"OptionKey<OptionMap<V>>"}}
{"symbol":"org.graalvm.options.OptionKey.getType()","href":"org/graalvm/options/OptionKey.html#getType()","name":"getType","kind":"method","signature":"public OptionType<T> getType()","summary":"Returns the option type of this key.","returns":{"type":"OptionType<T>"}}
{"symbol":"org.graalvm.options.OptionKey.getDefaultValue()","href":"org/graalvm/options/OptionKey.html#getDefaultValue()","name":"getDefaultValue","kind":"method","signature":"public T getDefaultValue()","summary":"Returns the default value for this option.","returns":{"type":"T"}}
{"symbol":"org.graalvm.options.OptionKey.getValue(OptionValues)","href":"org/graalvm/options/OptionKey.html#getValue(org.graalvm.options.OptionValues)","name":"getValue","kind":"method","signature":"public T getValue(OptionValues values)","summary":"Returns the value of this key given the values.","params":[{"name":"values","type":"OptionValues"}],"returns":{"type":"T"}}
{"symbol":"org.graalvm.options.OptionKey.hasBeenSet(OptionValues)","href":"org/graalvm/options/OptionKey.html#hasBeenSet(org.graalvm.options.OptionValues)","name":"hasBeenSet","kind":"method","signature":"public boolean hasBeenSet(OptionValues values)","summary":"Returns true if a value for this key has been set for the given option values or false if no value has been set.","params":[{"name":"values","type":"OptionValues"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionMap","href":"org/graalvm/options/OptionMap.html","name":"OptionMap","kind":"class","signature":"public final class OptionMap<T>","summary":"Represents a mapping between String keys and values.","details":"Allows to create options to group/accumulate key=value pairs, with a common prefix; whose keys are not known beforehand e.g. user defined properties."}
{"symbol":"org.graalvm.options.OptionMap.empty()","href":"org/graalvm/options/OptionMap.html#empty()","name":"empty","kind":"method","signature":"public static <T> OptionMap<T> empty()","summary":"Returns an empty option map (immutable).","returns":{"type":"OptionMap<T>","doc":"an empty option map"}}
{"symbol":"org.graalvm.options.OptionMap.get(String)","href":"org/graalvm/options/OptionMap.html#get(java.lang.String)","name":"get","kind":"method","signature":"public T get(String key)","summary":"Returns the value to which the specified key is mapped, or null if this option map contains no mapping for the key.","params":[{"name":"key","type":"String","doc":"the key whose associated value is to be returned"}],"returns":{"type":"T","doc":"the value to which the specified key is mapped, or null if this map contains no mapping for the key"}}
{"symbol":"org.graalvm.options.OptionMap.entrySet()","href":"org/graalvm/options/OptionMap.html#entrySet()","name":"entrySet","kind":"method","signature":"public Set<Map.Entry<String, T>> entrySet()","summary":"Returns an unmodifiable Set view of the mappings contained in this map.","returns":{"type":"Set<Map.Entry<String, T>>","doc":"a set view of the mappings contained in this map"}}
{"symbol":"org.graalvm.options.OptionMap.hashCode()","href":"org/graalvm/options/OptionMap.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.options.OptionMap.equals(Object)","href":"org/graalvm/options/OptionMap.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionStability","href":"org/graalvm/options/OptionStability.html","name":"OptionStability","kind":"enum","signature":"public enum OptionStability","summary":"Categorizes options according to their stability."}
{"symbol":"org.graalvm.options.OptionStability.values()","href":"org/graalvm/options/OptionStability.html#values()","name":"values","kind":"method","signature":"public static OptionStability[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"OptionStability[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"org.graalvm.options.OptionStability.valueOf(String)","href":"org/graalvm/options/OptionStability.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static OptionStability valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"OptionStability","doc":"Returns the enum constant with the given name."}}
{"symbol":"org.graalvm.options.OptionStability.STABLE","href":"org/graalvm/options/OptionStability.html#STABLE","name":"STABLE","kind":"enumConstant","signature":"STABLE","summary":"A stable option is expected to remain available for many releases.","details":"End users can rely on such an option being present. A stable option can still be removed but will go through a clear deprecating process before being removed."}
{"symbol":"org.graalvm.options.OptionStability.EXPERIMENTAL","href":"org/graalvm/options/OptionStability.html#EXPERIMENTAL","name":"EXPERIMENTAL","kind":"enumConstant","signature":"EXPERIMENTAL","summary":"An experimental option has no guarantees of stability and might be removed at any point."}
{"symbol":"org.graalvm.options.OptionType","href":"org/graalvm/options/OptionType.html","name":"OptionType","kind":"class","signature":"public final class OptionType<T>","summary":"Represents a type of an option that allows to convert string values to Java values."}
{"symbol":"org.graalvm.options.OptionType(String, Function, Consumer)","href":"org/graalvm/options/OptionType.html#%3Cinit%3E(java.lang.String,java.util.function.Function,java.util.function.Consumer)","name":"OptionType","kind":"constructor","signature":"public OptionType(String name, Function<String, T> stringConverter, Consumer<T> validator)","summary":"Constructs a new option type with name and function that allows to convert a string to the option type and validator of the option values.","params":[{"name":"name","type":"String","doc":"the name of the type."},{"name":"stringConverter","type":"Function<String, T>","doc":"a function that converts a string value to the option value. Can throw IllegalArgumentException to indicate an invalid string."},{"name":"validator","type":"Consumer<T>","doc":"used for validating the option value. Throws IllegalArgumentException if the value is invalid."}]}
{"symbol":"org.graalvm.options.OptionType(String, Function)","href":"org/graalvm/options/OptionType.html#%3Cinit%3E(java.lang.String,java.util.function.Function)","name":"OptionType","kind":"constructor","signature":"public OptionType(String name, Function<String, T> stringConverter)","summary":"Constructs a new option type with name and function that allows to convert a string to the option type.","params":[{"name":"name","type":"String","doc":"the name of the type."},{"name":"stringConverter","type":"Function<String, T>","doc":"a function that converts a string value to the option value. Can throw IllegalArgumentException to indicate an invalid string."}]}
{"symbol":"org.graalvm.options.OptionType(String, T, Function, Consumer)","href":"org/graalvm/options/OptionType.html#%3Cinit%3E(java.lang.String,T,java.util.function.Function,java.util.function.Consumer)","name":"OptionType","kind":"constructor","signature":"public OptionType(String name, T defaultValue, Function<String, T> stringConverter, Consumer<T> validator)","deprecated":{"since":"19.0","doc":"Use OptionType(String, Function, Consumer)"},"params":[{"name":"name","type":"String"},{"name":"defaultValue","type":"T"},{"name":"stringConverter","type":"Function<String, T>"},{"name":"validator","type":"Consumer<T>"}]}
{"symbol":"org.graalvm.options.OptionType(String, T, Function)","href":"org/graalvm/options/OptionType.html#%3Cinit%3E(java.lang.String,T,java.util.function.Function)","name":"OptionType","kind":"constructor","signature":"public OptionType(String name, T defaultValue, Function<String, T> stringConverter)","deprecated":{"since":"19.0","doc":"Use OptionType(String, Function)"},"params":[{"name":"name","type":"String"},{"name":"defaultValue","type":"T"},{"name":"stringConverter","type":"Function<String, T>"}]}
{"symbol":"org.graalvm.options.OptionType.getDefaultValue()","href":"org/graalvm/options/OptionType.html#getDefaultValue()","name":"getDefaultValue","kind":"method","signature":"public T getDefaultValue()","deprecated":{"since":"19.0"},"returns":{"type":"T"}}
{"symbol":"org.graalvm.options.OptionType.getName()","href":"org/graalvm/options/OptionType.html#getName()","name":"getName","kind":"method","signature":"public String getName()","summary":"Returns the name of this type.","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionType.convert(String)","href":"org/graalvm/options/OptionType.html#convert(java.lang.String)","name":"convert","kind":"method","signature":"public T convert(String value)","summary":"Converts a string value, validates it, and converts it to an object of this type.","params":[{"name":"value","type":"String"}],"returns":{"type":"T"},"throws":[{"type":"IllegalArgumentException","doc":"if the value is invalid or cannot be converted."}]}
{"symbol":"org.graalvm.options.OptionType.convert(Object, String, String)","href":"org/graalvm/options/OptionType.html#convert(java.lang.Object,java.lang.String,java.lang.String)","name":"convert","kind":"method","signature":"public T convert(Object previousValue, String nameSuffix, String value)","summary":"Converts a string value, validates it, and converts it to an object of this type.","details":"For option maps includes the previous map stored for the option and the key.","params":[{"name":"previousValue","type":"Object","doc":"the previous value holded by option."},{"name":"nameSuffix","type":"String","doc":"the key for prefix options."},{"name":"value","type":"String"}],"returns":{"type":"T"},"throws":[{"type":"IllegalArgumentException","doc":"if the value is invalid or cannot be converted."}]}
{"symbol":"org.graalvm.options.OptionType.validate(T)","href":"org/graalvm/options/OptionType.html#validate(T)","name":"validate","kind":"method","signature":"public void validate(T value)","summary":"Validates an option value and throws an IllegalArgumentException if the value is invalid.","params":[{"name":"value","type":"T"}],"throws":[{"type":"IllegalArgumentException","doc":"if the value is invalid or cannot be converted."}]}
{"symbol":"org.graalvm.options.OptionType.toString()","href":"org/graalvm/options/OptionType.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.options.OptionType.defaultType(T)","href":"org/graalvm/options/OptionType.html#defaultType(T)","name":"defaultType","kind":"method","signature":"public static <T> OptionType<T> defaultType(T value)","summary":"Returns the default option type for a given value.","details":"Returns null if no default option type is available for the Java type of this value.","params":[{"name":"value","type":"T"}],"returns":{"type":"OptionType<T>"}}
{"symbol":"org.graalvm.options.OptionType.defaultType(Class)","href":"org/graalvm/options/OptionType.html#defaultType(java.lang.Class)","name":"defaultType","kind":"method","signature":"public static <T> OptionType<T> defaultType(Class<T> clazz)","summary":"Returns the default option type for a class.","details":"Returns null if no default option type is available for this Java type.","params":[{"name":"clazz","type":"Class<T>"}],"returns":{"type":"OptionType<T>"}}
{"symbol":"org.graalvm.options.OptionValues","href":"org/graalvm/options/OptionValues.html","name":"OptionValues","kind":"interface","signature":"public interface OptionValues","summary":"Represents a set of option values based on an OptionDescriptor."}
{"symbol":"org.graalvm.options.OptionValues.getDescriptors()","href":"org/graalvm/options/OptionValues.html#getDescriptors()","name":"getDescriptors","kind":"method","signature":"OptionDescriptors getDescriptors()","summary":"Returns all available options.","returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.options.OptionValues.set(OptionKey, T)","href":"org/graalvm/options/OptionValues.html#set(org.graalvm.options.OptionKey,T)","name":"set","kind":"method","signature":"default <T> void set(OptionKey<T> optionKey, T value)","summary":"Sets the value of optionKey to value.","deprecated":{"since":"22.0","doc":"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."},"params":[{"name":"optionKey","type":"OptionKey<T>"},{"name":"value","type":"T"}],"throws":[{"type":"UnsupportedOperationException","doc":"because this operation has been deprecated and is no longer supported, in order for OptionValues to be read-only."}]}
{"symbol":"org.graalvm.options.OptionValues.get(OptionKey)","href":"org/graalvm/options/OptionValues.html#get(org.graalvm.options.OptionKey)","name":"get","kind":"method","signature":"<T> T get(OptionKey<T> optionKey)","summary":"Returns the value of a given option.","details":"hasBeenSet(OptionKey) can be used to know whether the value was explicitly set, or is the default value.","params":[{"name":"optionKey","type":"OptionKey<T>"}],"returns":{"type":"T"}}
{"symbol":"org.graalvm.options.OptionValues.hasBeenSet(OptionKey)","href":"org/graalvm/options/OptionValues.html#hasBeenSet(org.graalvm.options.OptionKey)","name":"hasBeenSet","kind":"method","signature":"boolean hasBeenSet(OptionKey<?> optionKey)","summary":"Determines if a value for optionKey has been set explicitly by the Context or Engine, and therefore get(OptionKey) does not call OptionKey.getDefaultValue().","params":[{"name":"optionKey","type":"OptionKey<?>"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.options.OptionValues.hasSetOptions()","href":"org/graalvm/options/OptionValues.html#hasSetOptions()","name":"hasSetOptions","kind":"method","signature":"default boolean hasSetOptions()","summary":"Determines if a value for any of the option keys in option descriptors has been set.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Context","href":"org/graalvm/polyglot/Context.html","name":"Context","kind":"class","signature":"public final class Context implements AutoCloseable","summary":"A polyglot context for Graal guest languages that allows to evaluate code.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.Context.getEngine()","href":"org/graalvm/polyglot/Context.html#getEngine()","name":"getEngine","kind":"method","signature":"public Engine getEngine()","summary":"Provides access to meta-data about the underlying Graal engine.","returns":{"type":"Engine","doc":"Graal Engine being used by this context"}}
{"symbol":"org.graalvm.polyglot.Context.eval(Source)","href":"org/graalvm/polyglot/Context.html#eval(org.graalvm.polyglot.Source)","name":"eval","kind":"method","signature":"public Value eval(Source source)","summary":"Evaluates a source object by using the language specified in the source.","details":"The result is accessible as value and never returns null. The first time a source is evaluated, it will be parsed. Consecutive invocations of eval with the same source will only execute the already parsed code. Basic Example: try (Context context = Context.create()) { Source source = Source.newBuilder(\"js\", \"42\", \"mysource.js\").build(); Value result = context.eval(source); assert result.asInt() == 42; }","params":[{"name":"source","type":"Source","doc":"a source object to evaluate"}],"returns":{"type":"Value","doc":"the evaluation result. The returned instance is never null, but the result might represent a null value."},"throws":[{"type":"PolyglotException","doc":"in case the guest language code parsing or evaluation failed."},{"type":"IllegalStateException","doc":"if the context is already closed and the current thread is not allowed to access it."},{"type":"IllegalArgumentException","doc":"if the language of the given source is not installed or the MIME type is not supported with the language or the validation of a source option failed."}]}
{"symbol":"org.graalvm.polyglot.Context.eval(String, CharSequence)","href":"org/graalvm/polyglot/Context.html#eval(java.lang.String,java.lang.CharSequence)","name":"eval","kind":"method","signature":"public Value eval(String languageId, CharSequence source)","summary":"Evaluates a guest language code literal, using a provided language id.","details":"The result is accessible as value and never returns null. The provided CharSequence must represent an immutable String. Basic Example: try (Context context = Context.create()) { Value result = context.eval(\"js\", \"42\"); assert result.asInt() == 42; }","params":[{"name":"languageId","type":"String"},{"name":"source","type":"CharSequence"}],"returns":{"type":"Value","doc":"the evaluation result. The returned instance is never null, but the result might represent a null value."},"throws":[{"type":"PolyglotException","doc":"in case the guest language code parsing or evaluation failed."},{"type":"IllegalArgumentException","doc":"if the language does not exist or is not accessible."},{"type":"IllegalStateException","doc":"if the context is already closed and the current thread is not allowed to access it, or if the given language is not installed."}]}
{"symbol":"org.graalvm.polyglot.Context.parse(Source)","href":"org/graalvm/polyglot/Context.html#parse(org.graalvm.polyglot.Source)","name":"parse","kind":"method","signature":"public Value parse(Source source) throws PolyglotException","summary":"Parses but does not evaluate a given source by using the language specified in the source and returns a value that can be executed.","detailsOmitted":true,"params":[{"name":"source","type":"Source","doc":"a source object to parse"}],"returns":{"type":"Value"},"throws":[{"type":"PolyglotException","doc":"in case the guest language code parsing or validation failed."},{"type":"IllegalArgumentException","doc":"if the language of the given source is not installed or the MIME type is not supported with the language or the validation of a source option failed."},{"type":"IllegalStateException","doc":"if the context is already closed and the current thread is not allowed to access it, or if the given language is not installed."}]}
{"symbol":"org.graalvm.polyglot.Context.parse(String, CharSequence)","href":"org/graalvm/polyglot/Context.html#parse(java.lang.String,java.lang.CharSequence)","name":"parse","kind":"method","signature":"public Value parse(String languageId, CharSequence source)","summary":"Parses but does not evaluate a guest language code literal using a provided language id and character sequence and returns a value that can be executed.","detailsOmitted":true,"params":[{"name":"languageId","type":"String"},{"name":"source","type":"CharSequence"}],"returns":{"type":"Value"},"throws":[{"type":"PolyglotException","doc":"in case the guest language code parsing or evaluation failed."},{"type":"IllegalArgumentException","doc":"if the language does not exist or is not accessible."},{"type":"IllegalStateException","doc":"if the context is already closed and the current thread is not allowed to access it, or if the given language is not installed."}]}
{"symbol":"org.graalvm.polyglot.Context.getPolyglotBindings()","href":"org/graalvm/polyglot/Context.html#getPolyglotBindings()","name":"getPolyglotBindings","kind":"method","signature":"public Value getPolyglotBindings()","summary":"Returns polyglot bindings that may be used to exchange symbols between the host and guest languages.","details":"All languages have unrestricted access to the polyglot bindings. The returned bindings object always has members and its members are readable, writable and removable. Guest languages may put and get members through language specific APIs. For example, in JavaScript, symbols of the polyglot bindings can be accessed using Polyglot.import(\"name\") and set using Polyglot.export(\"name\", value). Please see the individual language reference on how to access these symbols.","returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Context.getBindings(String)","href":"org/graalvm/polyglot/Context.html#getBindings(java.lang.String)","name":"getBindings","kind":"method","signature":"public Value getBindings(String languageId)","summary":"Returns a value that represents the top-most bindings of a language.","details":"The top most bindings of the language returns a member for a symbol in the scope. Languages may allow modifications of members of the returned bindings object at the language's discretion. If the language has not been initialized yet, it will be initialized when the bindings are requested.","params":[{"name":"languageId","type":"String"}],"returns":{"type":"Value"},"throws":[{"type":"IllegalArgumentException","doc":"if the language does not exist or is not accessible."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"in case the lazy initialization failed due to a guest language error."}]}
{"symbol":"org.graalvm.polyglot.Context.initialize(String)","href":"org/graalvm/polyglot/Context.html#initialize(java.lang.String)","name":"initialize","kind":"method","signature":"public boolean initialize(String languageId)","summary":"Forces the initialization of a language.","details":"It is not necessary to explicitly initialize a language, it will be initialized the first time it is used.","params":[{"name":"languageId","type":"String","doc":"the identifier of the language to initialize."}],"returns":{"type":"boolean","doc":"true if the language was initialized. Returns false if it was already initialized."},"throws":[{"type":"PolyglotException","doc":"in case the initialization failed due to a guest language error."},{"type":"IllegalArgumentException","doc":"if the language does not exist or is not accessible."},{"type":"IllegalStateException","doc":"if the context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Context.resetLimits()","href":"org/graalvm/polyglot/Context.html#resetLimits()","name":"resetLimits","kind":"method","signature":"public void resetLimits()","summary":"Resets all accumulators of resource limits for the associated context to zero."}
{"symbol":"org.graalvm.polyglot.Context.asValue(Object)","href":"org/graalvm/polyglot/Context.html#asValue(java.lang.Object)","name":"asValue","kind":"method","signature":"public Value asValue(Object hostValue)","summary":"Converts a host value to a polyglot value representation.","detailsOmitted":true,"params":[{"name":"hostValue","type":"Object","doc":"the host value to convert to a polyglot value."}],"returns":{"type":"Value","doc":"the polyglot value."},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed"}]}
{"symbol":"org.graalvm.polyglot.Context.enter()","href":"org/graalvm/polyglot/Context.html#enter()","name":"enter","kind":"method","signature":"public void enter()","summary":"Explicitly enters the context on the current thread.","details":"A context needs to be entered and left for any operation to be performed. For example, before and after invoking the execute method. This can be inefficient if a very high number of simple operations needs to be performed. By entering and leaving once explicitly, the overhead for entering/leaving the context for each operation can be eliminated. Contexts can be entered multiple times on the same thread.","throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a language has denied execution on the current thread."}]}
{"symbol":"org.graalvm.polyglot.Context.equals(Object)","href":"org/graalvm/polyglot/Context.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Context.hashCode()","href":"org/graalvm/polyglot/Context.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Context.toString()","href":"org/graalvm/polyglot/Context.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Context.leave()","href":"org/graalvm/polyglot/Context.html#leave()","name":"leave","kind":"method","signature":"public void leave()","summary":"Explicitly leaves the context on the current thread.","details":"The context must be entered before calling this method.","throws":[{"type":"IllegalStateException","doc":"if the context is already closed or if the context was not entered on the current thread."}]}
{"symbol":"org.graalvm.polyglot.Context.close(boolean)","href":"org/graalvm/polyglot/Context.html#close(boolean)","name":"close","kind":"method","signature":"public void close(boolean cancelIfExecuting)","summary":"Closes the context and frees up potentially allocated native resources.","detailsOmitted":true,"params":[{"name":"cancelIfExecuting","type":"boolean","doc":"if true then currently executing contexts will be cancelled, else an IllegalStateException is thrown."}],"throws":[{"type":"PolyglotException","doc":"in case the close failed due to a guest language error, or, if cancelIfExecuting is false, the exception is also thrown when the context was cancelled or the context was exited at request of the guest application."},{"type":"IllegalStateException","doc":"if the context is still running and cancelIfExecuting is false"}]}
{"symbol":"org.graalvm.polyglot.Context.close()","href":"org/graalvm/polyglot/Context.html#close()","name":"close","kind":"method","signature":"public void close()","summary":"Closes this context and frees up potentially allocated native resources.","detailsOmitted":true,"throws":[{"type":"PolyglotException","doc":"in case the close failed due to a guest language error, or the context was cancelled or the context was exited at request of the guest application."},{"type":"IllegalStateException","doc":"if the context is currently executing on another thread."}]}
{"symbol":"org.graalvm.polyglot.Context.interrupt(Duration)","href":"org/graalvm/polyglot/Context.html#interrupt(java.time.Duration)","name":"interrupt","kind":"method","signature":"public void interrupt(Duration timeout) throws TimeoutException","summary":"Use this method to interrupt this context.","details":"The interruption is non-destructive meaning the context is still usable after this method finishes. Please note that guest finally blocks are executed during interrupt. A context thread may not be interruptiple if it uses non-interruptible waiting or executes non-interruptible host code. This method may be used as a \"soft cancel\", meaning that it can be used before close(true) is executed.","params":[{"name":"timeout","type":"Duration","doc":"specifies the duration the interrupt method will wait for the active threads of the context to be finished. Setting the duration to 0 means wait indefinitely."}],"throws":[{"type":"IllegalStateException","doc":"in case the context is entered in the current thread."},{"type":"TimeoutException","doc":"in case the interrupt was not successful, i.e., not all threads were finished within the specified time limit."}]}
{"symbol":"org.graalvm.polyglot.Context.safepoint()","href":"org/graalvm/polyglot/Context.html#safepoint()","name":"safepoint","kind":"method","signature":"public void safepoint()","summary":"Polls safepoints events and executes them for the current thread.","detailsOmitted":true,"throws":[{"type":"PolyglotException","doc":"in case the close failed due to a guest language error."},{"type":"IllegalStateException","doc":"if the context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Context.getCurrent()","href":"org/graalvm/polyglot/Context.html#getCurrent()","name":"getCurrent","kind":"method","signature":"public static Context getCurrent()","summary":"Returns the currently entered polyglot context.","detailsOmitted":true,"returns":{"type":"Context"},"throws":[{"type":"IllegalStateException","doc":"if no context is currently entered."}]}
{"symbol":"org.graalvm.polyglot.Context.create(String...)","href":"org/graalvm/polyglot/Context.html#create(java.lang.String...)","name":"create","kind":"method","signature":"public static Context create(String... permittedLanguages)","summary":"Creates a context with default configuration.","details":"This method is a shortcut for newBuilder(permittedLanguages).build().","params":[{"name":"permittedLanguages","type":"String..."}],"returns":{"type":"Context"}}
{"symbol":"org.graalvm.polyglot.Context.newBuilder(String...)","href":"org/graalvm/polyglot/Context.html#newBuilder(java.lang.String...)","name":"newBuilder","kind":"method","signature":"public static Context.Builder newBuilder(String... permittedLanguages)","summary":"Creates a builder for constructing a context with custom configuration.","params":[{"name":"permittedLanguages","type":"String...","doc":"names of languages permitted in the context. If no languages are provided, then all installed languages will be permitted. If an explicit engine was specified then only those languages may be used that were installed and permitted by the specified engine. Languages are validated when the context is built. An IllegalArgumentException will be thrown if an unknown or a language denied by the engine was used."}],"returns":{"type":"Context.Builder","doc":"a builder that can create a context"}}
{"symbol":"org.graalvm.polyglot.Context.Builder","href":"org/graalvm/polyglot/Context.Builder.html","name":"Context.Builder","kind":"class","signature":"public final class Context.Builder","summary":"Builder class to construct Context instances.","details":"A builder instance is not thread-safe and must not be used from multiple threads at the same time."}
{"symbol":"org.graalvm.polyglot.Context.Builder.apply(Consumer)","href":"org/graalvm/polyglot/Context.Builder.html#apply(java.util.function.Consumer)","name":"apply","kind":"method","signature":"public Context.Builder apply(Consumer<Context.Builder> action)","summary":"Applies the provided Consumer to this Builder instance.","detailsOmitted":true,"params":[{"name":"action","type":"Consumer<Context.Builder>","doc":"The Consumer that configures this Builder instance; it is not supposed to finalize the Builder using build()."}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.engine(Engine)","href":"org/graalvm/polyglot/Context.Builder.html#engine(org.graalvm.polyglot.Engine)","name":"engine","kind":"method","signature":"public Context.Builder engine(Engine engine)","summary":"Explicitly sets the underlying engine to use.","details":"By default, every context has its own isolated engine. If multiple contexts are created from one engine, then they may share/cache certain system resources like ASTs or optimized code by specifying a single underlying engine. See Engine for more details about system resource sharing.","params":[{"name":"engine","type":"Engine"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.out(OutputStream)","href":"org/graalvm/polyglot/Context.Builder.html#out(java.io.OutputStream)","name":"out","kind":"method","signature":"public Context.Builder out(OutputStream out)","summary":"Sets the standard output stream to be used for the context.","details":"If not set, then the standard output stream configured for the engine or standard error stream is used.","params":[{"name":"out","type":"OutputStream"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.err(OutputStream)","href":"org/graalvm/polyglot/Context.Builder.html#err(java.io.OutputStream)","name":"err","kind":"method","signature":"public Context.Builder err(OutputStream err)","summary":"Sets the error output stream to be used for the context.","details":"If not set, then either the error stream configured for the engine or standard error stream is used.","params":[{"name":"err","type":"OutputStream"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.in(InputStream)","href":"org/graalvm/polyglot/Context.Builder.html#in(java.io.InputStream)","name":"in","kind":"method","signature":"public Context.Builder in(InputStream in)","summary":"Sets the input stream to be used for the context.","details":"If not set, then either the input stream configured for the engine or standard in stream is used.","params":[{"name":"in","type":"InputStream"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowHostAccess(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowHostAccess(boolean)","name":"allowHostAccess","kind":"method","signature":"public Context.Builder allowHostAccess(boolean enabled)","summary":"Allows guest languages to access the host language by loading new classes.","details":"Default is false. If all access is set to true, then host access is enabled if not disallowed explicitly.","deprecated":{"since":"19.0","doc":"use allowHostAccess(HostAccess) or allowHostClassLookup(Predicate) instead."},"params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowHostAccess(HostAccess)","href":"org/graalvm/polyglot/Context.Builder.html#allowHostAccess(org.graalvm.polyglot.HostAccess)","name":"allowHostAccess","kind":"method","signature":"public Context.Builder allowHostAccess(HostAccess config)","summary":"Configures which public constructors, methods or fields of public classes are accessible by guest applications.","details":"By default if allowAllAccess(boolean) is false the HostAccess.EXPLICIT policy will be used, otherwise HostAccess.ALL. Repeated calls of this method on the same Context.Builder instance override the previously set HostAccess configuration. Use extendHostAccess(HostAccess, Consumer) for composable HostAccess configuration.","params":[{"name":"config","type":"HostAccess"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.extendHostAccess(HostAccess, Consumer)","href":"org/graalvm/polyglot/Context.Builder.html#extendHostAccess(org.graalvm.polyglot.HostAccess,java.util.function.Consumer)","name":"extendHostAccess","kind":"method","signature":"public Context.Builder extendHostAccess(HostAccess defaultInitialValue, Consumer<HostAccess.Builder> setup)","summary":"Extends the existing host access configuration that determines, which public constructors, methods or fields of public classes are accessible by guest applications.","detailsOmitted":true,"params":[{"name":"defaultInitialValue","type":"HostAccess","doc":"- the initial value to use if no HostAccess is configured."},{"name":"setup","type":"Consumer<HostAccess.Builder>","doc":"- Consumer that receives a HostAccess.Builder preconfigured with the current HostAccess configuration."}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowNativeAccess(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowNativeAccess(boolean)","name":"allowNativeAccess","kind":"method","signature":"public Context.Builder allowNativeAccess(boolean enabled)","summary":"Allows guest languages to access the native interface.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowCreateThread(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowCreateThread(boolean)","name":"allowCreateThread","kind":"method","signature":"public Context.Builder allowCreateThread(boolean enabled)","summary":"If true, allows guest languages to create new threads.","details":"Default is false. If all access is set to true, then the creation of threads is enabled if not allowed explicitly. Threads created by guest languages are closed, when the context is closed.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowAllAccess(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowAllAccess(boolean)","name":"allowAllAccess","kind":"method","signature":"public Context.Builder allowAllAccess(boolean enabled)","summary":"Sets the default value for all privileges.","detailsOmitted":true,"params":[{"name":"enabled","type":"boolean","doc":"true for all access by default."}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowHostClassLoading(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowHostClassLoading(boolean)","name":"allowHostClassLoading","kind":"method","signature":"public Context.Builder allowHostClassLoading(boolean enabled)","summary":"If host class loading is enabled, then the guest language is allowed to load new host classes via jar or class files.","details":"If all access is set to true, then the host class loading is enabled if it is not disallowed explicitly. For host class loading to be useful, IO operations host class lookup, and the host access policy needs to be configured as well.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowHostClassLookup(Predicate)","href":"org/graalvm/polyglot/Context.Builder.html#allowHostClassLookup(java.util.function.Predicate)","name":"allowHostClassLookup","kind":"method","signature":"public Context.Builder allowHostClassLookup(Predicate<String> classFilter)","summary":"Sets a filter that specifies the Java host classes that can be looked up by the guest application.","detailsOmitted":true,"params":[{"name":"classFilter","type":"Predicate<String>","doc":"a predicate that returns true or false for a qualified Java class name or null to disable host class lookup."}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowExperimentalOptions(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowExperimentalOptions(boolean)","name":"allowExperimentalOptions","kind":"method","signature":"public Context.Builder allowExperimentalOptions(boolean enabled)","summary":"Allow experimental options to be used for language options.","details":"Do not use experimental options in production environments. If set to false (the default), then passing an experimental option results in an IllegalArgumentException when the context is built. Alternatively Engine.Builder.allowExperimentalOptions(boolean) may be used when constructing the context using an explicit engine.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowPolyglotAccess(PolyglotAccess)","href":"org/graalvm/polyglot/Context.Builder.html#allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)","name":"allowPolyglotAccess","kind":"method","signature":"public Context.Builder allowPolyglotAccess(PolyglotAccess accessPolicy)","summary":"Allow polyglot access using the provided policy.","details":"If all access is true then the default polyglot access policy is PolyglotAccess.ALL, otherwise PolyglotAccess.NONE. The provided access policy must not be null.","params":[{"name":"accessPolicy","type":"PolyglotAccess"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowValueSharing(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowValueSharing(boolean)","name":"allowValueSharing","kind":"method","signature":"public Context.Builder allowValueSharing(boolean enabled)","summary":"Enables or disables sharing of any value between contexts.","detailsOmitted":true,"params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowInnerContextOptions(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowInnerContextOptions(boolean)","name":"allowInnerContextOptions","kind":"method","signature":"public Context.Builder allowInnerContextOptions(boolean enabled)","summary":"Allows this context to spawn inner contexts that may change option values set for the outer context.","detailsOmitted":true,"params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.hostClassFilter(Predicate)","href":"org/graalvm/polyglot/Context.Builder.html#hostClassFilter(java.util.function.Predicate)","name":"hostClassFilter","kind":"method","signature":"public Context.Builder hostClassFilter(Predicate<String> classFilter)","summary":"Sets a class filter that allows to limit the classes that are allowed to be loaded by guest languages.","details":"If the filter returns true, then the class is accessible, otherwise it is not accessible and throws a guest language error when accessed. In order to have an effect, allowHostAccess(org.graalvm.polyglot.HostAccess) or allowAllAccess(boolean) needs to be set to true.","deprecated":{"since":"19.0","doc":"use allowHostClassLookup(Predicate) instead."},"params":[{"name":"classFilter","type":"Predicate<String>","doc":"a predicate that returns true or false for a java qualified class name."}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.option(String, String)","href":"org/graalvm/polyglot/Context.Builder.html#option(java.lang.String,java.lang.String)","name":"option","kind":"method","signature":"public Context.Builder option(String key, String value)","summary":"Sets an option for this context.","detailsOmitted":true,"params":[{"name":"key","type":"String"},{"name":"value","type":"String"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.options(Map)","href":"org/graalvm/polyglot/Context.Builder.html#options(java.util.Map)","name":"options","kind":"method","signature":"public Context.Builder options(Map<String, String> options)","summary":"Shortcut for setting multiple options using a map.","details":"All values of the provided map must be non-null.","params":[{"name":"options","type":"Map<String, String>","doc":"a map options."}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.arguments(String, String[])","href":"org/graalvm/polyglot/Context.Builder.html#arguments(java.lang.String,java.lang.String[])","name":"arguments","kind":"method","signature":"public Context.Builder arguments(String language, String[] args)","summary":"Sets the guest language application arguments for a language context.","details":"Application arguments are typically made available to guest language implementations. It depends on the language if and how they are accessible within the evaluated guest language scripts. Passing no arguments to a language is equivalent to providing an empty arguments array.","params":[{"name":"language","type":"String","doc":"the language id of the primary language."},{"name":"args","type":"String[]","doc":"an array of arguments passed to the guest language program."}],"returns":{"type":"Context.Builder"},"throws":[{"type":"IllegalArgumentException","doc":"if an invalid language id was specified."}]}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowIO(IOAccess)","href":"org/graalvm/polyglot/Context.Builder.html#allowIO(org.graalvm.polyglot.io.IOAccess)","name":"allowIO","kind":"method","signature":"public Context.Builder allowIO(IOAccess ioAccess)","summary":"Configures guest language access to host IO.","details":"Default is IOAccess.NONE. If all access is set to true, then IOAccess.ALL is used unless explicitly set. This method can be used to virtualize file system access in the guest language by using an IOAccess with a custom filesystem. Repeated calls of this method on the same Context.Builder instance override the previously set IOAccess configuration. Use extendIO(IOAccess, Consumer) for composable IOAccess configuration.","params":[{"name":"ioAccess","type":"IOAccess","doc":"the IO configuration"}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.extendIO(IOAccess, Consumer)","href":"org/graalvm/polyglot/Context.Builder.html#extendIO(org.graalvm.polyglot.io.IOAccess,java.util.function.Consumer)","name":"extendIO","kind":"method","signature":"public Context.Builder extendIO(IOAccess defaultInitialValue, Consumer<IOAccess.Builder> setup)","summary":"Extends the existing guest language access to host IO configuration.","detailsOmitted":true,"params":[{"name":"defaultInitialValue","type":"IOAccess","doc":"- the initial value to use if no IOAccess is configured."},{"name":"setup","type":"Consumer<IOAccess.Builder>","doc":"- Consumer that receives a IOAccess.Builder preconfigured with the current IOAccess configuration."}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowIO(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowIO(boolean)","name":"allowIO","kind":"method","signature":"public Context.Builder allowIO(boolean enabled)","summary":"If true, allows guest language to perform unrestricted IO operations on host system.","details":"Default is false. If all access is set to true, then IO is enabled if not allowed explicitly.","deprecated":{"since":"23.0","doc":"If the value was previously true pass IOAccess.ALL, otherwise pass IOAccess.NONE."},"params":[{"name":"enabled","type":"boolean","doc":"true to enable Input/Output"}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.fileSystem(FileSystem)","href":"org/graalvm/polyglot/Context.Builder.html#fileSystem(org.graalvm.polyglot.io.FileSystem)","name":"fileSystem","kind":"method","signature":"public Context.Builder fileSystem(FileSystem fileSystem)","summary":"Installs a new FileSystem.","deprecated":{"since":"23.0","doc":"If a file system was previously set use allowIO(IOAccess.newBuilder().fileSystem(fileSystem).build())."},"params":[{"name":"fileSystem","type":"FileSystem","doc":"the file system to be installed"}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.serverTransport(MessageTransport)","href":"org/graalvm/polyglot/Context.Builder.html#serverTransport(org.graalvm.polyglot.io.MessageTransport)","name":"serverTransport","kind":"method","signature":"public Context.Builder serverTransport(MessageTransport serverTransport)","summary":"Take over the transport of messages communication with a server peer.","details":"Provide an implementation of MessageTransport to virtualize a transport of messages to a server endpoint. MessageTransport.open(java.net.URI, org.graalvm.polyglot.io.MessageEndpoint) corresponds to accept of a server socket.","params":[{"name":"serverTransport","type":"MessageTransport","doc":"an implementation of message transport interceptor"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.logHandler(Handler)","href":"org/graalvm/polyglot/Context.Builder.html#logHandler(java.util.logging.Handler)","name":"logHandler","kind":"method","signature":"public Context.Builder logHandler(Handler logHandler)","summary":"Installs a new logging Handler.","detailsOmitted":true,"params":[{"name":"logHandler","type":"Handler","doc":"the Handler to use for logging in built Context. The passed logHandler is closed when the context is closed."}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.timeZone(ZoneId)","href":"org/graalvm/polyglot/Context.Builder.html#timeZone(java.time.ZoneId)","name":"timeZone","kind":"method","signature":"public Context.Builder timeZone(ZoneId zone)","summary":"Sets the default time zone to be used for this context.","details":"If not set, or explicitly set to null, then UTC is used with SandboxPolicy.CONSTRAINED or stricter sandbox policies, and the system default zone is used otherwise.","params":[{"name":"zone","type":"ZoneId"}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.logHandler(OutputStream)","href":"org/graalvm/polyglot/Context.Builder.html#logHandler(java.io.OutputStream)","name":"logHandler","kind":"method","signature":"public Context.Builder logHandler(OutputStream logOut)","summary":"Installs a new logging Handler using given OutputStream.","detailsOmitted":true,"params":[{"name":"logOut","type":"OutputStream","doc":"the OutputStream to use for logging in built Context. The passed logOut stream is closed when the context is closed."}],"returns":{"type":"Context.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowCreateProcess(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#allowCreateProcess(boolean)","name":"allowCreateProcess","kind":"method","signature":"public Context.Builder allowCreateProcess(boolean enabled)","summary":"If true, allows guest language to execute external processes.","details":"Default is false. If all access is set to true, then process creation is enabled if not denied explicitly.","params":[{"name":"enabled","type":"boolean","doc":"true to enable external process creation"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.processHandler(ProcessHandler)","href":"org/graalvm/polyglot/Context.Builder.html#processHandler(org.graalvm.polyglot.io.ProcessHandler)","name":"processHandler","kind":"method","signature":"public Context.Builder processHandler(ProcessHandler handler)","summary":"Installs a ProcessHandler responsible for external process creation.","params":[{"name":"handler","type":"ProcessHandler","doc":"the handler to be installed"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.resourceLimits(ResourceLimits)","href":"org/graalvm/polyglot/Context.Builder.html#resourceLimits(org.graalvm.polyglot.ResourceLimits)","name":"resourceLimits","kind":"method","signature":"public Context.Builder resourceLimits(ResourceLimits limits)","summary":"Assigns resource limit configuration to a context.","details":"By default no resource limits are assigned. The limits will be enabled for all contexts created using this builder. Assigning a limit may have performance impact of all contexts that run with the same engine.","params":[{"name":"limits","type":"ResourceLimits"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.exceptionHandler(Consumer)","href":"org/graalvm/polyglot/Context.Builder.html#exceptionHandler(java.util.function.Consumer)","name":"exceptionHandler","kind":"method","signature":"public Context.Builder exceptionHandler(Consumer<PolyglotException> handler)","summary":"Sets an exception handler that is invoked whenever a PolyglotException is about to be thrown from a context bound value back to the host.","detailsOmitted":true,"params":[{"name":"handler","type":"Consumer<PolyglotException>","doc":"the handler to invoke before a PolyglotException is thrown to the host, or null to disable custom handling and, when an explicit engine is used, inherit the handler from that engine"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.sandbox(SandboxPolicy)","href":"org/graalvm/polyglot/Context.Builder.html#sandbox(org.graalvm.polyglot.SandboxPolicy)","name":"sandbox","kind":"method","signature":"public Context.Builder sandbox(SandboxPolicy policy)","summary":"Sets a code sandbox policy to a context.","details":"By default, the context's sandbox policy is SandboxPolicy.TRUSTED, there are no restrictions to the context configuration.","params":[{"name":"policy","type":"SandboxPolicy"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.allowEnvironmentAccess(EnvironmentAccess)","href":"org/graalvm/polyglot/Context.Builder.html#allowEnvironmentAccess(org.graalvm.polyglot.EnvironmentAccess)","name":"allowEnvironmentAccess","kind":"method","signature":"public Context.Builder allowEnvironmentAccess(EnvironmentAccess accessPolicy)","summary":"Allow environment access using the provided policy.","details":"If all access is true then the default environment access policy is EnvironmentAccess.INHERIT, otherwise EnvironmentAccess.NONE. The provided access policy must not be null.","params":[{"name":"accessPolicy","type":"EnvironmentAccess","doc":"the environment access policy"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.environment(String, String)","href":"org/graalvm/polyglot/Context.Builder.html#environment(java.lang.String,java.lang.String)","name":"environment","kind":"method","signature":"public Context.Builder environment(String name, String value)","summary":"Sets an environment variable.","params":[{"name":"name","type":"String","doc":"the environment variable name"},{"name":"value","type":"String","doc":"the environment variable value"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.environment(Map)","href":"org/graalvm/polyglot/Context.Builder.html#environment(java.util.Map)","name":"environment","kind":"method","signature":"public Context.Builder environment(Map<String, String> env)","summary":"Shortcut for setting multiple environment variables using a map.","details":"All values of the provided map must be non-null.","params":[{"name":"env","type":"Map<String, String>","doc":"environment variables"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.currentWorkingDirectory(Path)","href":"org/graalvm/polyglot/Context.Builder.html#currentWorkingDirectory(java.nio.file.Path)","name":"currentWorkingDirectory","kind":"method","signature":"public Context.Builder currentWorkingDirectory(Path workingDirectory)","summary":"Sets the current working directory used by the guest application to resolve relative paths.","details":"When the Context is built, the given directory is set as the current working directory on the Context's file system using the FileSystem.setCurrentWorkingDirectory method.","params":[{"name":"workingDirectory","type":"Path","doc":"the new current working directory"}],"returns":{"type":"Context.Builder"},"throws":[{"type":"NullPointerException","doc":"when workingDirectory is null"},{"type":"IllegalArgumentException","doc":"when workingDirectory is a relative path"}]}
{"symbol":"org.graalvm.polyglot.Context.Builder.hostClassLoader(ClassLoader)","href":"org/graalvm/polyglot/Context.Builder.html#hostClassLoader(java.lang.ClassLoader)","name":"hostClassLoader","kind":"method","signature":"public Context.Builder hostClassLoader(ClassLoader classLoader)","summary":"Sets a host class loader.","details":"If set the given classLoader is used to load host classes and it's also set as a context ClassLoader during code execution. Otherwise the ClassLoader that was captured when the context was built is used to load host classes and the context ClassLoader is not set during code execution. Setting the hostClassLoader has a negative effect on enter and leave performance.","params":[{"name":"classLoader","type":"ClassLoader","doc":"the host class loader"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.useSystemExit(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#useSystemExit(boolean)","name":"useSystemExit","kind":"method","signature":"public Context.Builder useSystemExit(boolean enabled)","summary":"Specifies whether System.exit(int) may be used to improve efficiency of stack unwinding for context exit requested by the guest application.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.spawnIsolate(boolean)","href":"org/graalvm/polyglot/Context.Builder.html#spawnIsolate(boolean)","name":"spawnIsolate","kind":"method","signature":"public Context.Builder spawnIsolate(boolean value)","summary":"Specifies whether the implicitly created engine should run guest languages in a polyglot isolate.","detailsOmitted":true,"params":[{"name":"value","type":"boolean","doc":"true to spawn a polyglot isolate"}],"returns":{"type":"Context.Builder"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.build()","href":"org/graalvm/polyglot/Context.Builder.html#build()","name":"build","kind":"method","signature":"public Context build()","summary":"Creates a new context instance from the configuration provided in the builder.","details":"The same context builder can be used to create multiple context instances.","returns":{"type":"Context"}}
{"symbol":"org.graalvm.polyglot.Context.Builder.toString()","href":"org/graalvm/polyglot/Context.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Engine","href":"org/graalvm/polyglot/Engine.html","name":"Engine","kind":"class","signature":"public final class Engine implements AutoCloseable","summary":"An execution engine for Graal guest languages that allows to inspect the the installed guest languages, instruments and their available options.","details":"By default every context creates its own engine instance implicitly when instantiated. Multiple contexts can use an explicit engine when using a context builder. If contexts share the same engine instance then they share instruments and their configuration. It can be useful to create an engine instance without a context to only access meta-data for installed languages, instruments and their available options."}
{"symbol":"org.graalvm.polyglot.Engine.getLanguages()","href":"org/graalvm/polyglot/Engine.html#getLanguages()","name":"getLanguages","kind":"method","signature":"public Map<String, Language> getLanguages()","summary":"Gets a map of all installed languages with the language id as key and the language object as value.","details":"The returned map is unmodifiable and might be used from multiple threads.","returns":{"type":"Map<String, Language>"}}
{"symbol":"org.graalvm.polyglot.Engine.getInstruments()","href":"org/graalvm/polyglot/Engine.html#getInstruments()","name":"getInstruments","kind":"method","signature":"public Map<String, Instrument> getInstruments()","summary":"Gets all installed instruments of this engine.","details":"An instrument alters and/or monitors the execution of guest language source code. Common examples for instruments are debuggers, profilers, or monitoring tools. Instruments are enabled via options passed to the engine when the engine or context is constructed.","returns":{"type":"Map<String, Instrument>"}}
{"symbol":"org.graalvm.polyglot.Engine.getOptions()","href":"org/graalvm/polyglot/Engine.html#getOptions()","name":"getOptions","kind":"method","signature":"public OptionDescriptors getOptions()","summary":"Returns all options available for the engine.","details":"The engine offers options with the following groups: engine: options to configure the behavior of this engine. compiler: options to configure the behavior of the compiler. The language and instrument specific options need to be retrieved using Instrument.getOptions() or Language.getOptions().","returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.polyglot.Engine.getVersion()","href":"org/graalvm/polyglot/Engine.html#getVersion()","name":"getVersion","kind":"method","signature":"public String getVersion()","summary":"Gets the version string of the engine in an unspecified format.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Engine.close(boolean)","href":"org/graalvm/polyglot/Engine.html#close(boolean)","name":"close","kind":"method","signature":"public void close(boolean cancelIfExecuting)","summary":"Closes this engine and frees up allocated native resources.","details":"If there are still open context instances that were created using this engine and they are currently not being executed then they will be closed automatically. If an attempt to close an engine was successful then consecutive calls to close have no effect. If a context is cancelled then the currently executing thread will throw a PolyglotException. The exception indicates that it was cancelled.","params":[{"name":"cancelIfExecuting","type":"boolean","doc":"if true then currently executing contexts will be cancelled, else an IllegalStateException is thrown."}]}
{"symbol":"org.graalvm.polyglot.Engine.close()","href":"org/graalvm/polyglot/Engine.html#close()","name":"close","kind":"method","signature":"public void close()","summary":"Closes this engine and frees up allocated native resources.","details":"If there are still open context instances that were created using this engine and they are currently not being executed then they will be closed automatically. If an attempt to close the engine was successful then consecutive calls to close have no effect.","throws":[{"type":"IllegalStateException","doc":"if there currently executing open context instances."}]}
{"symbol":"org.graalvm.polyglot.Engine.storeCache(Path)","href":"org/graalvm/polyglot/Engine.html#storeCache(java.nio.file.Path)","name":"storeCache","kind":"method","signature":"public boolean storeCache(Path targetFile) throws UnsupportedOperationException","summary":"Stores the auxiliary engine cache to the targetFile without cancellation.","params":[{"name":"targetFile","type":"Path"}],"returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if this engine or the host virtual machine does not support storing the cache."}]}
{"symbol":"org.graalvm.polyglot.Engine.storeCache(Path, WordPointer)","href":"org/graalvm/polyglot/Engine.html#storeCache(java.nio.file.Path,org.graalvm.nativeimage.c.type.WordPointer)","name":"storeCache","kind":"method","signature":"public boolean storeCache(Path targetFile, WordPointer cancelledWord) throws CancellationException, UnsupportedOperationException","summary":"Stores the auxiliary engine cache to the targetFile.","detailsOmitted":true,"params":[{"name":"targetFile","type":"Path","doc":"the file to which the cache is stored"},{"name":"cancelledWord","type":"WordPointer","doc":"a native pointer; if set to a non-zero value, the operation is cancelled. Allows cancellation of the cache store operation through a cancelled control word. The memory address pointing to the control word is polled periodically during storage without guaranteed frequency and may be delayed by safepoints such as garbage collection. A control word value of zero must be maintained for the duration of the operation. If a non-zero value is detected, the operation will be cancelled. A non-null provided pointer must remain accessible during the entire operation. Providing an invalid or inaccessible pointer may result in a VM crash."}],"returns":{"type":"boolean","doc":"true if the file was written; otherwise, false"},"throws":[{"type":"CancellationException","doc":"if the storeCache operation was cancelled via the cancelled pointer"},{"type":"UnsupportedOperationException","doc":"if this engine or host virtual machine does not support cache storage"}]}
{"symbol":"org.graalvm.polyglot.Engine.persistCache(Engine.CancellationCallback)","href":"org/graalvm/polyglot/Engine.html#persistCache(org.graalvm.polyglot.Engine.CancellationCallback)","name":"persistCache","kind":"method","signature":"public ByteBuffer persistCache(Engine.CancellationCallback callback)","summary":"Persists the auxiliary engine cache into an in-memory buffer.","detailsOmitted":true,"params":[{"name":"callback","type":"Engine.CancellationCallback","doc":"callback used to request cancellation, or null for no cancellation"}],"returns":{"type":"ByteBuffer","doc":"a buffer containing the persisted cache image, or null if no image was produced, for example because the configured maximum image size was exceeded"},"throws":[{"type":"CancellationException","doc":"if the persist operation was cancelled via the callback"},{"type":"UnsupportedOperationException","doc":"if this engine or host virtual machine does not support in-memory cache persistence"}]}
{"symbol":"org.graalvm.polyglot.Engine.getImplementationName()","href":"org/graalvm/polyglot/Engine.html#getImplementationName()","name":"getImplementationName","kind":"method","signature":"public String getImplementationName()","summary":"Gets a human-readable name of the polyglot implementation (for example, \"Default Truffle Engine\" or \"Graal Truffle Engine\").","details":"The returned value may change without notice. The value is never null.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Engine.toString()","href":"org/graalvm/polyglot/Engine.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Engine.create()","href":"org/graalvm/polyglot/Engine.html#create()","name":"create","kind":"method","signature":"public static Engine create()","summary":"Creates a new engine instance with default configuration.","details":"This method is a shortcut for newBuilder().build().","returns":{"type":"Engine"}}
{"symbol":"org.graalvm.polyglot.Engine.create(String...)","href":"org/graalvm/polyglot/Engine.html#create(java.lang.String...)","name":"create","kind":"method","signature":"public static Engine create(String... permittedLanguages)","summary":"Creates a new engine instance with default configuration with a set of permitted languages.","details":"This method is a shortcut for newBuilder(permittedLanguages).build().","params":[{"name":"permittedLanguages","type":"String..."}],"returns":{"type":"Engine"}}
{"symbol":"org.graalvm.polyglot.Engine.newBuilder()","href":"org/graalvm/polyglot/Engine.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static Engine.Builder newBuilder()","summary":"Creates a new engine builder that allows to configure an engine instance.","details":"This method is equivalent to calling newBuilder(String...) with an empty set of permitted languages.","returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.newBuilder(String...)","href":"org/graalvm/polyglot/Engine.html#newBuilder(java.lang.String...)","name":"newBuilder","kind":"method","signature":"public static Engine.Builder newBuilder(String... permittedLanguages)","summary":"Creates a new engine builder that allows to configure an engine instance.","params":[{"name":"permittedLanguages","type":"String...","doc":"names of languages permitted in the engine. If no languages are provided, then all installed languages will be permitted. All contexts created with this engine will inherit the set of permitted languages."}],"returns":{"type":"Engine.Builder","doc":"a builder that can create a context"}}
{"symbol":"org.graalvm.polyglot.Engine.newBuilder(Engine.Preinitialized)","href":"org/graalvm/polyglot/Engine.html#newBuilder(org.graalvm.polyglot.Engine.Preinitialized)","name":"newBuilder","kind":"method","signature":"public static Engine.Builder newBuilder(Engine.Preinitialized state)","summary":"Creates a new engine builder that consumes the given prepared state when Builder.build() is called.","detailsOmitted":true,"params":[{"name":"state","type":"Engine.Preinitialized","doc":"the prepared state to consume"}],"returns":{"type":"Engine.Builder","doc":"a builder that can create an engine"},"throws":[{"type":"NullPointerException","doc":"if state is null"}]}
{"symbol":"org.graalvm.polyglot.Engine.findHome()","href":"org/graalvm/polyglot/Engine.html#findHome()","name":"findHome","kind":"method","signature":"public static Path findHome()","summary":"Finds the GraalVM home folder.","details":"This is equivalent to HomeFinder.getHomeFolder() which should be preferred.","returns":{"type":"Path","doc":"the path to a folder containing the GraalVM or null if it cannot be found"}}
{"symbol":"org.graalvm.polyglot.Engine.getCachedSources()","href":"org/graalvm/polyglot/Engine.html#getCachedSources()","name":"getCachedSources","kind":"method","signature":"public Set<Source> getCachedSources()","summary":"Returns the sources previously cached by this engine.","detailsOmitted":true,"returns":{"type":"Set<Source>"}}
{"symbol":"org.graalvm.polyglot.Engine.copyResources(Path, String...)","href":"org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)","name":"copyResources","kind":"method","signature":"public static boolean copyResources(Path targetFolder, String... components) throws IOException","summary":"Unpacks the language or instrument internal resources specified by the components into the targetFolder directory.","detailsOmitted":true,"params":[{"name":"targetFolder","type":"Path","doc":"the folder to unpack resources into"},{"name":"components","type":"String...","doc":"names of languages or instruments whose resources should be unpacked. If no languages or instruments are provided, then all installed languages and instruments are used"}],"returns":{"type":"boolean","doc":"true if at least one of the components has associated resources that were unpacked into targetFolder"},"throws":[{"type":"IllegalArgumentException","doc":"if the components list contains an id of a language or instrument that is not installed"},{"type":"IOException","doc":"in case of an IO error"}]}
{"symbol":"org.graalvm.polyglot.Engine.supportsCompilation()","href":"org/graalvm/polyglot/Engine.html#supportsCompilation()","name":"supportsCompilation","kind":"method","signature":"public static boolean supportsCompilation()","summary":"Returns whether the current runtime supports optimizing guest language execution.","details":"When this method returns false, guest code runs on the fallback runtime unless a polyglot isolate is used. Embedders can use this method to decide whether to enable isolate execution, for example with Context.newBuilder().spawnIsolate(!Engine.supportsCompilation()).","returns":{"type":"boolean","doc":"true if guest language execution can be optimized at run time; false if only the fallback runtime is available"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder","href":"org/graalvm/polyglot/Engine.Builder.html","name":"Engine.Builder","kind":"class","signature":"public final class Engine.Builder"}
{"symbol":"org.graalvm.polyglot.Engine.Builder.out(OutputStream)","href":"org/graalvm/polyglot/Engine.Builder.html#out(java.io.OutputStream)","name":"out","kind":"method","signature":"public Engine.Builder out(OutputStream out)","summary":"Sets the standard output stream to be used for this engine.","details":"Every context that uses this engine will inherit the configured output stream if it is not specified in the context. If not set then the system output stream will be used.","params":[{"name":"out","type":"OutputStream"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.err(OutputStream)","href":"org/graalvm/polyglot/Engine.Builder.html#err(java.io.OutputStream)","name":"err","kind":"method","signature":"public Engine.Builder err(OutputStream err)","summary":"Sets the standard error stream to be used for this engine.","details":"Every context that uses this engine will inherit the configured error stream if it is not specified in the context. If not set then the system error stream will be used.","params":[{"name":"err","type":"OutputStream"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.in(InputStream)","href":"org/graalvm/polyglot/Engine.Builder.html#in(java.io.InputStream)","name":"in","kind":"method","signature":"public Engine.Builder in(InputStream in)","summary":"Sets the standard input stream to be used for this engine.","details":"Every context that uses this engine will inherit the configured input stream if it is not specified in the context. If not set then the system input stream will be used.","params":[{"name":"in","type":"InputStream"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.allowExperimentalOptions(boolean)","href":"org/graalvm/polyglot/Engine.Builder.html#allowExperimentalOptions(boolean)","name":"allowExperimentalOptions","kind":"method","signature":"public Engine.Builder allowExperimentalOptions(boolean enabled)","summary":"Allow experimental options to be used for instruments and engine options.","details":"Do not use experimental options in production environments. If set to false (the default), then passing an experimental option results in an IllegalArgumentException when the context is built.","params":[{"name":"enabled","type":"boolean"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.useSystemProperties(boolean)","href":"org/graalvm/polyglot/Engine.Builder.html#useSystemProperties(boolean)","name":"useSystemProperties","kind":"method","signature":"public Engine.Builder useSystemProperties(boolean enabled)","summary":"Specifies whether the engine should use system properties if no explicit option is set.","detailsOmitted":true,"params":[{"name":"enabled","type":"boolean","doc":"if true system properties will be used as options."}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.option(String, String)","href":"org/graalvm/polyglot/Engine.Builder.html#option(java.lang.String,java.lang.String)","name":"option","kind":"method","signature":"public Engine.Builder option(String key, String value)","summary":"Sets an option for an engine, language or instrument.","details":"If one of the set option keys or values is invalid then an IllegalArgumentException is thrown when the engine is built. The given key and value must not be null. See Engine.getOptions() to list all available options for engines. See Language.getOptions() to list all available options for a language. See Instrument.getOptions() to list all available options for an instrument.","params":[{"name":"key","type":"String"},{"name":"value","type":"String"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.sandbox(SandboxPolicy)","href":"org/graalvm/polyglot/Engine.Builder.html#sandbox(org.graalvm.polyglot.SandboxPolicy)","name":"sandbox","kind":"method","signature":"public Engine.Builder sandbox(SandboxPolicy policy)","summary":"Sets a code sandbox policy to an engine.","details":"By default, the engine's sandbox policy is SandboxPolicy.TRUSTED, there are no restrictions to the engine configuration.","params":[{"name":"policy","type":"SandboxPolicy"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.options(Map)","href":"org/graalvm/polyglot/Engine.Builder.html#options(java.util.Map)","name":"options","kind":"method","signature":"public Engine.Builder options(Map<String, String> options)","summary":"Shortcut for setting multiple options using a map.","details":"All values of the provided map must be non-null.","params":[{"name":"options","type":"Map<String, String>","doc":"a map options."}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.serverTransport(MessageTransport)","href":"org/graalvm/polyglot/Engine.Builder.html#serverTransport(org.graalvm.polyglot.io.MessageTransport)","name":"serverTransport","kind":"method","signature":"public Engine.Builder serverTransport(MessageTransport serverTransport)","summary":"Take over transport of message communication with a server peer.","details":"Provide an implementation of MessageTransport to virtualize a transport of messages to a server endpoint. MessageTransport.open(java.net.URI, org.graalvm.polyglot.io.MessageEndpoint) corresponds to accept of a server socket.","params":[{"name":"serverTransport","type":"MessageTransport","doc":"an implementation of message transport interceptor"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.exceptionHandler(Consumer)","href":"org/graalvm/polyglot/Engine.Builder.html#exceptionHandler(java.util.function.Consumer)","name":"exceptionHandler","kind":"method","signature":"public Engine.Builder exceptionHandler(Consumer<PolyglotException> handler)","summary":"Sets an exception handler that is invoked whenever a PolyglotException is about to be thrown from a engine bound value back to the host.","detailsOmitted":true,"params":[{"name":"handler","type":"Consumer<PolyglotException>","doc":"the handler to invoke before a PolyglotException is thrown to the host, or null to disable custom handling"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.logHandler(Handler)","href":"org/graalvm/polyglot/Engine.Builder.html#logHandler(java.util.logging.Handler)","name":"logHandler","kind":"method","signature":"public Engine.Builder logHandler(Handler logHandler)","summary":"Installs a new logging Handler.","detailsOmitted":true,"params":[{"name":"logHandler","type":"Handler","doc":"the Handler to use for logging in engine's Contexts. The passed logHandler is closed when the engine is closed."}],"returns":{"type":"Engine.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.logHandler(OutputStream)","href":"org/graalvm/polyglot/Engine.Builder.html#logHandler(java.io.OutputStream)","name":"logHandler","kind":"method","signature":"public Engine.Builder logHandler(OutputStream logOut)","summary":"Installs a new logging Handler using given OutputStream.","detailsOmitted":true,"params":[{"name":"logOut","type":"OutputStream","doc":"the OutputStream to use for logging in engine's Contexts. The passed logOut stream is closed when the engine is closed."}],"returns":{"type":"Engine.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.spawnIsolate(boolean)","href":"org/graalvm/polyglot/Engine.Builder.html#spawnIsolate(boolean)","name":"spawnIsolate","kind":"method","signature":"public Engine.Builder spawnIsolate(boolean value)","summary":"Specifies whether this engine should run guest languages in a polyglot isolate.","detailsOmitted":true,"params":[{"name":"value","type":"boolean","doc":"true to spawn a polyglot isolate"}],"returns":{"type":"Engine.Builder"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.preinitialize(int, Consumer)","href":"org/graalvm/polyglot/Engine.Builder.html#preinitialize(int,java.util.function.Consumer)","name":"preinitialize","kind":"method","signature":"public Engine.Preinitialized preinitialize(int contextCount, Consumer<Engine> initializer)","summary":"Prepares engine state using this builder's configuration.","detailsOmitted":true,"params":[{"name":"contextCount","type":"int","doc":"the number of clean contexts to preinitialize; zero prepares only engine state and cached code"},{"name":"initializer","type":"Consumer<Engine>","doc":"callback that prepares the temporary engine"}],"returns":{"type":"Engine.Preinitialized","doc":"one-shot prepared engine state"},"throws":[{"type":"IllegalArgumentException","doc":"if contextCount is negative or the configuration cannot be prepared"},{"type":"IllegalStateException","doc":"if callback contexts remain open, do not form exactly one compatible sharing layer, or retain unsupported instrument state"},{"type":"NullPointerException","doc":"if initializer is null"}]}
{"symbol":"org.graalvm.polyglot.Engine.Builder.toString()","href":"org/graalvm/polyglot/Engine.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Engine.Builder.build()","href":"org/graalvm/polyglot/Engine.Builder.html#build()","name":"build","kind":"method","signature":"public Engine build()","summary":"Creates a new engine instance from the configuration provided in the builder.","details":"The same engine builder can be used to create multiple engine instances unless it was created with prepared state, which can be consumed only once.","returns":{"type":"Engine"},"throws":[{"type":"IllegalStateException","doc":"if configured prepared state is unavailable"}]}
{"symbol":"org.graalvm.polyglot.Engine.CancellationCallback","href":"org/graalvm/polyglot/Engine.CancellationCallback.html","name":"Engine.CancellationCallback","kind":"interface","signature":"public interface Engine.CancellationCallback","summary":"A callback that is invoked repeatedly while persisting the auxiliary engine cache.","details":"The callback may be polled during compilation preparation. Some hosts may also support low-level auxiliary image persistence cancellation for host-specific callback implementations with additional runtime constraints."}
{"symbol":"org.graalvm.polyglot.Engine.CancellationCallback.shouldCancel()","href":"org/graalvm/polyglot/Engine.CancellationCallback.html#shouldCancel()","name":"shouldCancel","kind":"method","signature":"boolean shouldCancel()","returns":{"type":"boolean","doc":"whether auxiliary engine cache persistence should be cancelled."}}
{"symbol":"org.graalvm.polyglot.Engine.Preinitialized","href":"org/graalvm/polyglot/Engine.Preinitialized.html","name":"Engine.Preinitialized","kind":"class","signature":"public static final class Engine.Preinitialized implements AutoCloseable","summary":"Prepared engine state that can be consumed by one engine build.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.Engine.Preinitialized.getCachedSources()","href":"org/graalvm/polyglot/Engine.Preinitialized.html#getCachedSources()","name":"getCachedSources","kind":"method","signature":"public Set<Source> getCachedSources()","summary":"Returns an immutable snapshot of the sources cached in this prepared state.","returns":{"type":"Set<Source>","doc":"an immutable set of cached sources"},"throws":[{"type":"IllegalStateException","doc":"if this state has been consumed or closed"}]}
{"symbol":"org.graalvm.polyglot.Engine.Preinitialized.close()","href":"org/graalvm/polyglot/Engine.Preinitialized.html#close()","name":"close","kind":"method","signature":"public void close()","summary":"Releases this prepared state if it has not been consumed.","details":"This method is idempotent and has no effect if the state is already closed or consumed."}
{"symbol":"org.graalvm.polyglot.EnvironmentAccess","href":"org/graalvm/polyglot/EnvironmentAccess.html","name":"EnvironmentAccess","kind":"class","signature":"public final class EnvironmentAccess","summary":"Represents an access policy to the process environment for the guest languages of a context."}
{"symbol":"org.graalvm.polyglot.EnvironmentAccess.NONE","href":"org/graalvm/polyglot/EnvironmentAccess.html#NONE","name":"NONE","kind":"field","signature":"public static final EnvironmentAccess NONE","summary":"Provides guest languages no access to process environment.","details":"No environment variables are visible for reading. The NONE is a default value for Contexts created without all access."}
{"symbol":"org.graalvm.polyglot.EnvironmentAccess.INHERIT","href":"org/graalvm/polyglot/EnvironmentAccess.html#INHERIT","name":"INHERIT","kind":"field","signature":"public static final EnvironmentAccess INHERIT","summary":"Provides guest languages read access to process environment.","details":"The INHERIT is a default value for Contexts created with all access set to true."}
{"symbol":"org.graalvm.polyglot.EnvironmentAccess.toString()","href":"org/graalvm/polyglot/EnvironmentAccess.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.HostAccess","href":"org/graalvm/polyglot/HostAccess.html","name":"HostAccess","kind":"class","signature":"public final class HostAccess","summary":"Represents the host access policy of a polyglot context.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.HostAccess.EXPLICIT","href":"org/graalvm/polyglot/HostAccess.html#EXPLICIT","name":"EXPLICIT","kind":"field","signature":"public static final HostAccess EXPLICIT","summary":"Predefined host access policy that allows access to public host methods or fields that were annotated with @Export and were declared in public class.","details":"This is the default configuration if Context.Builder.allowAllAccess(boolean) is false. Equivalent of using the following builder configuration: HostAccess.newBuilder().allowAccessAnnotatedBy(HostAccess.Export.class). allowImplementationsAnnotatedBy(HostAccess.Implementable.class). allowImplementationsAnnotatedBy(FunctionalInterface.class). .build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.SCOPED","href":"org/graalvm/polyglot/HostAccess.html#SCOPED","name":"SCOPED","kind":"field","signature":"public static final HostAccess SCOPED","summary":"Predefined host access policy that is the same as EXPLICIT and enables method scoping of callback parameter values on top.","details":"Methods that are annotated with HostAccess.DisableMethodScoping are exempt from scoping. Equivalent of using the following builder configuration: HostAccess.newBuilder().allowAccessAnnotatedBy(HostAccess.Export.class). allowImplementationsAnnotatedBy(HostAccess.Implementable.class). allowImplementationsAnnotatedBy(FunctionalInterface.class). methodScoping(true). disableMethodScopingAnnotatedBy(HostAccess.DisableMethodScoping.class) .build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.ALL","href":"org/graalvm/polyglot/HostAccess.html#ALL","name":"ALL","kind":"field","signature":"public static final HostAccess ALL","summary":"Predefined host access policy that allows full unrestricted access to public methods or fields of public host classes.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.HostAccess.NONE","href":"org/graalvm/polyglot/HostAccess.html#NONE","name":"NONE","kind":"field","signature":"public static final HostAccess NONE","summary":"Predefined host access policy that disallows any access to public host methods or fields.","details":"Equivalent of using the following builder configuration: HostAccess.newBuilder().build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.CONSTRAINED","href":"org/graalvm/polyglot/HostAccess.html#CONSTRAINED","name":"CONSTRAINED","kind":"field","signature":"public static final HostAccess CONSTRAINED","summary":"Predefined host access policy used by Context with a SandboxPolicy.CONSTRAINED sandbox policy when the host access policy is not explicitly specified by the embedder.","details":"Equivalent of using the following builder configuration: HostAccess.newBuilder(). allowAccessAnnotatedBy(Export.class). allowImplementationsAnnotatedBy(Implementable.class). allowMutableTargetMappings().build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.ISOLATED","href":"org/graalvm/polyglot/HostAccess.html#ISOLATED","name":"ISOLATED","kind":"field","signature":"public static final HostAccess ISOLATED","summary":"Predefined host access policy used by Context with an SandboxPolicy.ISOLATED sandbox policy when the host access policy is not explicitly specified by the embedder.","details":"Equivalent of using the following builder configuration: HostAccess.newBuilder(CONSTRAINED). methodScoping(true).build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.UNTRUSTED","href":"org/graalvm/polyglot/HostAccess.html#UNTRUSTED","name":"UNTRUSTED","kind":"field","signature":"public static final HostAccess UNTRUSTED","summary":"Predefined host access policy used by Context with an SandboxPolicy.UNTRUSTED sandbox policy when the host access policy is not explicitly specified by the embedder.","details":"Equivalent of using the following builder configuration: HostAccess.newBuilder(). allowAccessAnnotatedBy(Export.class). allowMutableTargetMappings(). methodScoping(true).build();"}
{"symbol":"org.graalvm.polyglot.HostAccess.equals(Object)","href":"org/graalvm/polyglot/HostAccess.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.HostAccess.hashCode()","href":"org/graalvm/polyglot/HostAccess.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.HostAccess.newBuilder()","href":"org/graalvm/polyglot/HostAccess.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static HostAccess.Builder newBuilder()","summary":"Creates a new builder that allows to create a custom host access policy.","details":"The builder configuration needs to be completed using the method.","returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.newBuilder(HostAccess)","href":"org/graalvm/polyglot/HostAccess.html#newBuilder(org.graalvm.polyglot.HostAccess)","name":"newBuilder","kind":"method","signature":"public static HostAccess.Builder newBuilder(HostAccess conf)","summary":"Creates a new builder that allows to create a custom host access policy based of a preset configuration.","details":"The preset configuration is copied and used as a template for the returned buidler. The builder configuration needs to be completed using the method.","params":[{"name":"conf","type":"HostAccess"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.toString()","href":"org/graalvm/polyglot/HostAccess.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder","href":"org/graalvm/polyglot/HostAccess.Builder.html","name":"HostAccess.Builder","kind":"class","signature":"public final class HostAccess.Builder","summary":"Builder to create a custom host access policy."}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAccessAnnotatedBy(Class)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAccessAnnotatedBy(java.lang.Class)","name":"allowAccessAnnotatedBy","kind":"method","signature":"public HostAccess.Builder allowAccessAnnotatedBy(Class<? extends Annotation> annotation)","summary":"Allows access to public constructors, methods or fields of public classes that were annotated by the given annotation class.","params":[{"name":"annotation","type":"Class<? extends Annotation>"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowPublicAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowPublicAccess(boolean)","name":"allowPublicAccess","kind":"method","signature":"public HostAccess.Builder allowPublicAccess(boolean allow)","summary":"Allows unrestricted access to all public constructors, methods or fields of public classes.","details":"Note that this policy allows unrestricted access to reflection. It is highly discouraged from using this option in environments where the guest application is not fully trusted. This setting replaces selected public access configured using allowPublicAccess(Predicate).","params":[{"name":"allow","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowPublicAccess(Predicate)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowPublicAccess(java.util.function.Predicate)","name":"allowPublicAccess","kind":"method","signature":"public HostAccess.Builder allowPublicAccess(Predicate<Member> predicate)","summary":"Allows access to public constructors, methods or fields of public classes for which the given predicate returns true.","detailsOmitted":true,"params":[{"name":"predicate","type":"Predicate<Member>","doc":"the predicate that selects public host members to expose"}],"returns":{"type":"HostAccess.Builder","doc":"this builder"},"throws":[{"type":"NullPointerException","doc":"if predicate is null"}]}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAccess(Executable)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAccess(java.lang.reflect.Executable)","name":"allowAccess","kind":"method","signature":"public HostAccess.Builder allowAccess(Executable element)","summary":"Allows access to a given constructor or method.","details":"Note that the method or constructor must be public in order to have any effect.","params":[{"name":"element","type":"Executable"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAccess(Field)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAccess(java.lang.reflect.Field)","name":"allowAccess","kind":"method","signature":"public HostAccess.Builder allowAccess(Field element)","summary":"Allows access to a given field.","details":"Note that the field must be public in order to have any effect.","params":[{"name":"element","type":"Field"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.denyAccess(Class)","href":"org/graalvm/polyglot/HostAccess.Builder.html#denyAccess(java.lang.Class)","name":"denyAccess","kind":"method","signature":"public HostAccess.Builder denyAccess(Class<?> clazz)","summary":"Prevents access to members of given class and its subclasses.","params":[{"name":"clazz","type":"Class<?>","doc":"the class to deny access to"}],"returns":{"type":"HostAccess.Builder","doc":"this builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.denyAccess(Class, boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#denyAccess(java.lang.Class,boolean)","name":"denyAccess","kind":"method","signature":"public HostAccess.Builder denyAccess(Class<?> clazz, boolean includeSubclasses)","summary":"Prevents access to members of given class.","params":[{"name":"clazz","type":"Class<?>","doc":"the class to deny access to"},{"name":"includeSubclasses","type":"boolean","doc":"should subclasses be excuded as well?"}],"returns":{"type":"HostAccess.Builder","doc":"this builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAllImplementations(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAllImplementations(boolean)","name":"allowAllImplementations","kind":"method","signature":"public HostAccess.Builder allowAllImplementations(boolean allow)","summary":"Allow guest languages to implement any Java interface.","details":"Note that implementations implicitly export all their methods, i.e., allowing implementations of a type implies allowing access its methods via its implementations, regardless of whether the methods have been explicitly exported.","params":[{"name":"allow","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAllClassImplementations(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAllClassImplementations(boolean)","name":"allowAllClassImplementations","kind":"method","signature":"public HostAccess.Builder allowAllClassImplementations(boolean allow)","summary":"Allow guest languages to implement (extend) any Java class.","details":"Note that the default host type mappings and Value.as(Class) only implement abstract classes. Note that implementations implicitly export all their methods, i.e., allowing implementations of a type implies allowing access its methods via its implementations, regardless of whether the methods have been explicitly exported.","params":[{"name":"allow","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowImplementationsAnnotatedBy(Class)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowImplementationsAnnotatedBy(java.lang.Class)","name":"allowImplementationsAnnotatedBy","kind":"method","signature":"public HostAccess.Builder allowImplementationsAnnotatedBy(Class<? extends Annotation> annotation)","summary":"Allow implementations of types annotated with the given annotation.","details":"For the explicit host access present the Implementable annotation is configured for this purpose. Applies to interfaces and classes. Note that implementations implicitly export all their methods, i.e., allowing implementations of a type implies allowing access its methods via its implementations, regardless of whether the methods have been explicitly exported.","params":[{"name":"annotation","type":"Class<? extends Annotation>"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowImplementations(Class)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowImplementations(java.lang.Class)","name":"allowImplementations","kind":"method","signature":"public HostAccess.Builder allowImplementations(Class<?> type)","summary":"Allow implementations of this type by the guest language.","details":"Note that implementations implicitly export all their methods, i.e., allowing implementations of a type implies allowing access its methods via its implementations, regardless of whether the methods have been explicitly exported.","params":[{"name":"type","type":"Class<?>","doc":"an interface that may be implemented or a class that may be extended."}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowArrayAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowArrayAccess(boolean)","name":"allowArrayAccess","kind":"method","signature":"public HostAccess.Builder allowArrayAccess(boolean arrayAccess)","summary":"Allows the guest application to access arrays as values with array elements.","details":"By default no array access is allowed.","params":[{"name":"arrayAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowListAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowListAccess(boolean)","name":"allowListAccess","kind":"method","signature":"public HostAccess.Builder allowListAccess(boolean listAccess)","summary":"Allows the guest application to access lists as values with array elements and iterators.","details":"By default no array access is allowed. Allowing list access implies also allowing of iterables and iterators.","params":[{"name":"listAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowIterableAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowIterableAccess(boolean)","name":"allowIterableAccess","kind":"method","signature":"public HostAccess.Builder allowIterableAccess(boolean iterableAccess)","summary":"Allows the guest application to access iterables as values with iterators.","details":"By default no iterable access is allowed. Allowing iterable access implies also allowing of iterators.","params":[{"name":"iterableAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowIteratorAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowIteratorAccess(boolean)","name":"allowIteratorAccess","kind":"method","signature":"public HostAccess.Builder allowIteratorAccess(boolean iteratorAccess)","summary":"Allows the guest application to access iterators as iterator values.","details":"By default no iterator access is allowed.","params":[{"name":"iteratorAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowMapAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowMapAccess(boolean)","name":"allowMapAccess","kind":"method","signature":"public HostAccess.Builder allowMapAccess(boolean mapAccess)","summary":"Allows the guest application to access map as hash values.","details":"By default no map access is allowed. Allowing map access implies also allowing of iterators.","params":[{"name":"mapAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowBigIntegerNumberAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowBigIntegerNumberAccess(boolean)","name":"allowBigIntegerNumberAccess","kind":"method","signature":"public HostAccess.Builder allowBigIntegerNumberAccess(boolean bigIntegerNumberAccess)","summary":"Allows the guest application to access BigInteger as a number.","details":"By default BigInteger number access is allowed.","params":[{"name":"bigIntegerNumberAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowBufferAccess(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowBufferAccess(boolean)","name":"allowBufferAccess","kind":"method","signature":"public HostAccess.Builder allowBufferAccess(boolean bufferAccess)","summary":"Allows the guest application to access java.nio.ByteBuffers as values with buffer elements.","details":"By default no buffer access is allowed.","params":[{"name":"bufferAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowAccessInheritance(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowAccessInheritance(boolean)","name":"allowAccessInheritance","kind":"method","signature":"public HostAccess.Builder allowAccessInheritance(boolean inheritAccess)","summary":"Allows the guest application to inherit access to allowed methods, i.e.","detailsOmitted":true,"params":[{"name":"inheritAccess","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.allowMutableTargetMappings(HostAccess.MutableTargetMapping...)","href":"org/graalvm/polyglot/HostAccess.Builder.html#allowMutableTargetMappings(org.graalvm.polyglot.HostAccess.MutableTargetMapping...)","name":"allowMutableTargetMappings","kind":"method","signature":"public HostAccess.Builder allowMutableTargetMappings(HostAccess.MutableTargetMapping... mapping)","summary":"Allows host object mappings of mutable target types, such as java.util.List, java.util.Map, java.util.Iterator and java.lang.Iterable based on the MutableTargetMapping.","details":"Mapping guest objects to well-known host object types such as java.util.Map is convenient on one hand. On the other hand it can lead to bugs as the guest code is free to provide an arbitrary backing implementation of such objects, which may not behave as expected of a java.util.Map.","params":[{"name":"mapping","type":"HostAccess.MutableTargetMapping..."}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.targetTypeMapping(Class, Class, Predicate, Function)","href":"org/graalvm/polyglot/HostAccess.Builder.html#targetTypeMapping(java.lang.Class,java.lang.Class,java.util.function.Predicate,java.util.function.Function)","name":"targetTypeMapping","kind":"method","signature":"public <S, T> HostAccess.Builder targetTypeMapping(Class<S> sourceType, Class<T> targetType, Predicate<S> accepts, Function<S, T> converter)","summary":"Adds a custom source to target type mapping for Java host calls, host field assignments and explicit value conversions.","details":"Method is equivalent to calling the targetTypeMapping method with precedence TargetMappingPrecedence.HIGH.","params":[{"name":"sourceType","type":"Class<S>"},{"name":"targetType","type":"Class<T>"},{"name":"accepts","type":"Predicate<S>"},{"name":"converter","type":"Function<S, T>"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.targetTypeMapping(Class, Class, Predicate, Function, HostAccess.TargetMappingPrecedence)","href":"org/graalvm/polyglot/HostAccess.Builder.html#targetTypeMapping(java.lang.Class,java.lang.Class,java.util.function.Predicate,java.util.function.Function,org.graalvm.polyglot.HostAccess.TargetMappingPrecedence)","name":"targetTypeMapping","kind":"method","signature":"public <S, T> HostAccess.Builder targetTypeMapping(Class<S> sourceType, Class<T> targetType, Predicate<S> accepts, Function<S, T> converter, HostAccess.TargetMappingPrecedence precedence)","summary":"Adds a custom source to target type mapping for Java host calls, host field assignments and explicit value conversions.","detailsOmitted":true,"params":[{"name":"sourceType","type":"Class<S>","doc":"the static source type to convert from with this mapping. The source type must be applicable for a mapping to be accepted."},{"name":"targetType","type":"Class<T>","doc":"the exact and static target type to convert to with this mapping."},{"name":"accepts","type":"Predicate<S>","doc":"the predicate to check whether a mapping is applicable. Returns true if the mapping is applicable else false. If set to null then all values of a given source type are applicable."},{"name":"converter","type":"Function<S, T>","doc":"a function that produces the converted value of the mapping. May return null for reference target types. Returning null for a primitive conversion causes a NullPointerException. May throw ClassCastException if the source value is not convertible."},{"name":"precedence","type":"HostAccess.TargetMappingPrecedence","doc":"the precedence of the defined mapping which influences conversion order and precedence with default mappings and other target type mappings."}],"returns":{"type":"HostAccess.Builder"},"throws":[{"type":"IllegalArgumentException","doc":"for primitive target types."}]}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.methodScoping(boolean)","href":"org/graalvm/polyglot/HostAccess.Builder.html#methodScoping(boolean)","name":"methodScoping","kind":"method","signature":"public HostAccess.Builder methodScoping(boolean scopingDefault)","summary":"Sets the default scoping of callback function parameters.","details":"Parameters escape from the scope of a function, if a reference to them is kept after the function returns. To use a value beyond the method scope Value.pin() may be used.","params":[{"name":"scopingDefault","type":"boolean"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.disableMethodScopingAnnotatedBy(Class)","href":"org/graalvm/polyglot/HostAccess.Builder.html#disableMethodScopingAnnotatedBy(java.lang.Class)","name":"disableMethodScopingAnnotatedBy","kind":"method","signature":"public HostAccess.Builder disableMethodScopingAnnotatedBy(Class<? extends Annotation> annotation)","summary":"Function parameters of a method annotated with the specified annotation are not scoped.","params":[{"name":"annotation","type":"Class<? extends Annotation>"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.disableMethodScoping(Executable)","href":"org/graalvm/polyglot/HostAccess.Builder.html#disableMethodScoping(java.lang.reflect.Executable)","name":"disableMethodScoping","kind":"method","signature":"public HostAccess.Builder disableMethodScoping(Executable e)","summary":"Function parameters of the specified executable escape the executable's scope.","params":[{"name":"e","type":"Executable"}],"returns":{"type":"HostAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.useModuleLookup(MethodHandles.Lookup)","href":"org/graalvm/polyglot/HostAccess.Builder.html#useModuleLookup(java.lang.invoke.MethodHandles.Lookup)","name":"useModuleLookup","kind":"method","signature":"public HostAccess.Builder useModuleLookup(MethodHandles.Lookup lookup)","summary":"Sets the lookup the guest application should use to find and access classes on the host side in modularized host applications.","detailsOmitted":true,"params":[{"name":"lookup","type":"MethodHandles.Lookup","doc":"lookup from a named module to be used for host access."}],"returns":{"type":"HostAccess.Builder"},"throws":[{"type":"IllegalArgumentException","doc":"if the passed lookup is not from a named module."}]}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.toString()","href":"org/graalvm/polyglot/HostAccess.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.HostAccess.Builder.build()","href":"org/graalvm/polyglot/HostAccess.Builder.html#build()","name":"build","kind":"method","signature":"public HostAccess build()","summary":"Creates an instance of the custom host access configuration.","returns":{"type":"HostAccess"}}
{"symbol":"org.graalvm.polyglot.HostAccess.DisableMethodScoping","href":"org/graalvm/polyglot/HostAccess.DisableMethodScoping.html","name":"HostAccess.DisableMethodScoping","kind":"annotation","signature":"public @interface HostAccess.DisableMethodScoping","summary":"If HostAccess.SCOPED is used, placing this annotation on an exported host function excludes it from parameter scoping, i.e.","details":"parameters will not be released after invocation of a callback."}
{"symbol":"org.graalvm.polyglot.HostAccess.Export","href":"org/graalvm/polyglot/HostAccess.Export.html","name":"HostAccess.Export","kind":"annotation","signature":"public @interface HostAccess.Export","summary":"Annotation used by the predefined EXPLICIT access policy to mark public constructors, methods and fields in public classes that should be accessible by the guest application.","details":"Example using a Java object from JavaScript: public class JavaRecord { @HostAccess.Export public int x; @HostAccess.Export public String name() { return \"foo\"; } } try (Context context = Context.create()) { JavaRecord record = new JavaRecord(); context.getBindings(\"js\").putMember(\"javaRecord\", record); context.eval(\"js\", \"javaRecord.x = 42\"); context.eval(\"js\", \"javaRecord.name()\").asString().equals(\"foo\"); }"}
{"symbol":"org.graalvm.polyglot.HostAccess.Implementable","href":"org/graalvm/polyglot/HostAccess.Implementable.html","name":"HostAccess.Implementable","kind":"annotation","signature":"public @interface HostAccess.Implementable","summary":"Allows guest language to implement a Java type.","details":"Implementable is required if the explicit host access policy is set. The annotation to use for this purpose can be customized with Builder.allowImplementationsAnnotatedBy(Class). Allowing implementations for all Java interfaces can be enabled with Builder.allowAllImplementations(boolean)."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html","name":"HostAccess.MutableTargetMapping","kind":"enum","signature":"public enum HostAccess.MutableTargetMapping","summary":"List of default host object mappings of mutable target types available in Value.as(Class).","details":"The mappings map guest object traits to host object types."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.values()","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#values()","name":"values","kind":"method","signature":"public static HostAccess.MutableTargetMapping[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"HostAccess.MutableTargetMapping[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.valueOf(String)","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static HostAccess.MutableTargetMapping valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"HostAccess.MutableTargetMapping","doc":"Returns the enum constant with the given name."}}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.ARRAY_TO_JAVA_LIST","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#ARRAY_TO_JAVA_LIST","name":"ARRAY_TO_JAVA_LIST","kind":"enumConstant","signature":"ARRAY_TO_JAVA_LIST","summary":"Enables default mapping of guest object arrays to host object java.util.List.","details":"This mapping is also applied when the target host object is java.util.Collection."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.ITERATOR_TO_JAVA_ITERATOR","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#ITERATOR_TO_JAVA_ITERATOR","name":"ITERATOR_TO_JAVA_ITERATOR","kind":"enumConstant","signature":"ITERATOR_TO_JAVA_ITERATOR","summary":"Enables default mapping of guest object iterators to host object java.util.Iterator."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.ITERABLE_TO_JAVA_ITERABLE","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#ITERABLE_TO_JAVA_ITERABLE","name":"ITERABLE_TO_JAVA_ITERABLE","kind":"enumConstant","signature":"ITERABLE_TO_JAVA_ITERABLE","summary":"Enables default mapping of guest object iterables to host object java.lang.Iterable."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.HASH_TO_JAVA_MAP","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#HASH_TO_JAVA_MAP","name":"HASH_TO_JAVA_MAP","kind":"enumConstant","signature":"HASH_TO_JAVA_MAP","summary":"Enables default mapping of guest object hashes to host object java.util.Map."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.MEMBERS_TO_JAVA_MAP","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#MEMBERS_TO_JAVA_MAP","name":"MEMBERS_TO_JAVA_MAP","kind":"enumConstant","signature":"MEMBERS_TO_JAVA_MAP","summary":"Enables default mapping of guest objects with members to java.util.Map."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.MEMBERS_TO_JAVA_INTERFACE","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#MEMBERS_TO_JAVA_INTERFACE","name":"MEMBERS_TO_JAVA_INTERFACE","kind":"enumConstant","signature":"MEMBERS_TO_JAVA_INTERFACE","summary":"Enables default mapping of guest objects with members to a Java interface."}
{"symbol":"org.graalvm.polyglot.HostAccess.MutableTargetMapping.EXECUTABLE_TO_JAVA_INTERFACE","href":"org/graalvm/polyglot/HostAccess.MutableTargetMapping.html#EXECUTABLE_TO_JAVA_INTERFACE","name":"EXECUTABLE_TO_JAVA_INTERFACE","kind":"enumConstant","signature":"EXECUTABLE_TO_JAVA_INTERFACE","summary":"Enables default mapping of executable guest objects to a java.lang.FunctionalInterface."}
{"symbol":"org.graalvm.polyglot.HostAccess.Optimized","href":"org/graalvm/polyglot/HostAccess.Optimized.html","name":"HostAccess.Optimized","kind":"annotation","signature":"public @interface HostAccess.Optimized","summary":"Requests an implementation optimized for invocation speed when converting a guest value to this interface with Value.as(Class).","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html","name":"HostAccess.TargetMappingPrecedence","kind":"enum","signature":"public enum HostAccess.TargetMappingPrecedence","summary":"Represents the precedence of a target type mapping.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.values()","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#values()","name":"values","kind":"method","signature":"public static HostAccess.TargetMappingPrecedence[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"HostAccess.TargetMappingPrecedence[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.valueOf(String)","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static HostAccess.TargetMappingPrecedence valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"HostAccess.TargetMappingPrecedence","doc":"Returns the enum constant with the given name."}}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.HIGHEST","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#HIGHEST","name":"HIGHEST","kind":"enumConstant","signature":"HIGHEST","summary":"Defines higher precedence and conversion order as all default mappings and target type mappings with lower precedence."}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.HIGH","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#HIGH","name":"HIGH","kind":"enumConstant","signature":"HIGH","summary":"Defines high or default precedence and conversion order for a target type mapping.","details":"This precedence makes mappings be used before all other default mappings and treated with equal overload precedence as default loss less mappings like primitive coercions."}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.LOW","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#LOW","name":"LOW","kind":"enumConstant","signature":"LOW","summary":"Defines low precedence and conversion order for a target type mapping.","details":"This precedence makes mappings be used before all other default lossy mappings and treated with equal overload precedence as default lossy mappings, like mappings to Map."}
{"symbol":"org.graalvm.polyglot.HostAccess.TargetMappingPrecedence.LOWEST","href":"org/graalvm/polyglot/HostAccess.TargetMappingPrecedence.html#LOWEST","name":"LOWEST","kind":"enumConstant","signature":"LOWEST","summary":"Defines lowest precedence and conversion order for a target type mapping.","details":"This precedence makes mappings be used after all other default mappings and treated with lower overload precedence as all default mappings or other target type mappings."}
{"symbol":"org.graalvm.polyglot.Instrument","href":"org/graalvm/polyglot/Instrument.html","name":"Instrument","kind":"class","signature":"public final class Instrument","summary":"A handle for an instrument installed in an engine.","details":"The instrument is usable from other threads. The handle provides access to the metadata of the instrument and allows to lookup instrument specific services. All methods here, as well as instrumentation services in general, can be used safely from any thread."}
{"symbol":"org.graalvm.polyglot.Instrument.getId()","href":"org/graalvm/polyglot/Instrument.html#getId()","name":"getId","kind":"method","signature":"public String getId()","summary":"Gets the ID clients can use to acquire this instrument.","returns":{"type":"String","doc":"the unique ID for this instrument."}}
{"symbol":"org.graalvm.polyglot.Instrument.getName()","href":"org/graalvm/polyglot/Instrument.html#getName()","name":"getName","kind":"method","signature":"public String getName()","summary":"Gets a human-readable name for this instrument.","returns":{"type":"String","doc":"the user-friendly name for this instrument."}}
{"symbol":"org.graalvm.polyglot.Instrument.getOptions()","href":"org/graalvm/polyglot/Instrument.html#getOptions()","name":"getOptions","kind":"method","signature":"public OptionDescriptors getOptions()","summary":"Gets the options available for this instrument.","returns":{"type":"OptionDescriptors","doc":"the options as OptionDescriptors."}}
{"symbol":"org.graalvm.polyglot.Instrument.getSourceOptions()","href":"org/graalvm/polyglot/Instrument.html#getSourceOptions()","name":"getSourceOptions","kind":"method","signature":"public OptionDescriptors getSourceOptions()","summary":"Returns the source options descriptors available for sources of this instrument.","returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.polyglot.Instrument.getVersion()","href":"org/graalvm/polyglot/Instrument.html#getVersion()","name":"getVersion","kind":"method","signature":"public String getVersion()","summary":"Gets the version of this instrument.","returns":{"type":"String","doc":"the version of this instrument."}}
{"symbol":"org.graalvm.polyglot.Instrument.lookup(Class)","href":"org/graalvm/polyglot/Instrument.html#lookup(java.lang.Class)","name":"lookup","kind":"method","signature":"public <T> T lookup(Class<T> type)","summary":"Looks up an additional internal service that is provided by this instrument using a Java type.","details":"Note that the services returned by this method are implementation specific and subject to change without notice.","params":[{"name":"type","type":"Class<T>","doc":"class of the service that is being requested."}],"returns":{"type":"T","doc":"instance of requested type, null if no such service is available."}}
{"symbol":"org.graalvm.polyglot.Instrument.getWebsite()","href":"org/graalvm/polyglot/Instrument.html#getWebsite()","name":"getWebsite","kind":"method","signature":"public String getWebsite()","summary":"Gets the website of this instrument.","returns":{"type":"String","doc":"the website of this instrument."}}
{"symbol":"org.graalvm.polyglot.Instrument.toString()","href":"org/graalvm/polyglot/Instrument.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Instrument.hashCode()","href":"org/graalvm/polyglot/Instrument.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Instrument.equals(Object)","href":"org/graalvm/polyglot/Instrument.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Language","href":"org/graalvm/polyglot/Language.html","name":"Language","kind":"class","signature":"public final class Language","summary":"A handle for a Graal language installed in an engine.","details":"The handle provides access to the language's meta-data, including the language's id, name, version and options."}
{"symbol":"org.graalvm.polyglot.Language.getId()","href":"org/graalvm/polyglot/Language.html#getId()","name":"getId","kind":"method","signature":"public String getId()","summary":"Gets the primary identification string of this language.","details":"The language id is used as the primary way of identifying languages in the polyglot API. (eg. js)","returns":{"type":"String","doc":"a language ID string."}}
{"symbol":"org.graalvm.polyglot.Language.getName()","href":"org/graalvm/polyglot/Language.html#getName()","name":"getName","kind":"method","signature":"public String getName()","summary":"Gets a human-readable name for the language (for example, \"JavaScript\").","returns":{"type":"String","doc":"the user-friendly name for this language."}}
{"symbol":"org.graalvm.polyglot.Language.getImplementationName()","href":"org/graalvm/polyglot/Language.html#getImplementationName()","name":"getImplementationName","kind":"method","signature":"public String getImplementationName()","summary":"Gets a human-readable name of the language implementation (for example, \"Graal.JS\").","details":"Returns null if no implementation name was specified.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Language.getVersion()","href":"org/graalvm/polyglot/Language.html#getVersion()","name":"getVersion","kind":"method","signature":"public String getVersion()","summary":"Gets the version information of the language in an arbitrary language-specific format.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Language.isInteractive()","href":"org/graalvm/polyglot/Language.html#isInteractive()","name":"isInteractive","kind":"method","signature":"public boolean isInteractive()","summary":"Returns true if a the language is suitable for interactive evaluation of sources.","details":"Interactive languages should be displayed in interactive environments and presented to the user.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Language.getOptions()","href":"org/graalvm/polyglot/Language.html#getOptions()","name":"getOptions","kind":"method","signature":"public OptionDescriptors getOptions()","summary":"Returns the set of options provided by this language.","details":"Option values for languages can either be provided while building an engine or a context. The option descriptor name must be used as the option name.","returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.polyglot.Language.getSourceOptions()","href":"org/graalvm/polyglot/Language.html#getSourceOptions()","name":"getSourceOptions","kind":"method","signature":"public OptionDescriptors getSourceOptions()","summary":"Returns the source options descriptors available for sources of this language.","returns":{"type":"OptionDescriptors"}}
{"symbol":"org.graalvm.polyglot.Language.getDefaultMimeType()","href":"org/graalvm/polyglot/Language.html#getDefaultMimeType()","name":"getDefaultMimeType","kind":"method","signature":"public String getDefaultMimeType()","summary":"Returns the default MIME type that is in use by a language.","details":"The default MIME type specifies whether a source is loaded as character or binary based source by default. Returns null if the language does not specify a default MIME type.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Language.getMimeTypes()","href":"org/graalvm/polyglot/Language.html#getMimeTypes()","name":"getMimeTypes","kind":"method","signature":"public Set<String> getMimeTypes()","summary":"Returns the MIME types supported by this language.","returns":{"type":"Set<String>"}}
{"symbol":"org.graalvm.polyglot.Language.getWebsite()","href":"org/graalvm/polyglot/Language.html#getWebsite()","name":"getWebsite","kind":"method","signature":"public String getWebsite()","summary":"Get the URL for the language website.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Language.toString()","href":"org/graalvm/polyglot/Language.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Language.hashCode()","href":"org/graalvm/polyglot/Language.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Language.equals(Object)","href":"org/graalvm/polyglot/Language.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess","href":"org/graalvm/polyglot/PolyglotAccess.html","name":"PolyglotAccess","kind":"class","signature":"public final class PolyglotAccess","summary":"Represents an access policy for polyglot builtins in the guest languages.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.NONE","href":"org/graalvm/polyglot/PolyglotAccess.html#NONE","name":"NONE","kind":"field","signature":"public static final PolyglotAccess NONE","summary":"Provides guest languages no access to other languages using polyglot builtins evaluation and binding builtins."}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.ALL","href":"org/graalvm/polyglot/PolyglotAccess.html#ALL","name":"ALL","kind":"field","signature":"public static final PolyglotAccess ALL","summary":"Provides guest languages full access to other languages using polyglot evaluation and binding builtins."}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.toString()","href":"org/graalvm/polyglot/PolyglotAccess.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.newBuilder()","href":"org/graalvm/polyglot/PolyglotAccess.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static PolyglotAccess.Builder newBuilder()","summary":"Creates a new custom polyglot access configuration builder.","details":"A polyglot access builder starts with no access rights.","returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html","name":"PolyglotAccess.Builder","kind":"class","signature":"public final class PolyglotAccess.Builder","summary":"A builder for a polyglot access configuration.","details":"Builder instances are not thread-safe."}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.allowEvalBetween(String...)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#allowEvalBetween(java.lang.String...)","name":"allowEvalBetween","kind":"method","signature":"public PolyglotAccess.Builder allowEvalBetween(String... languages)","summary":"Allows bidirectional evaluation of code between the given languages.","details":"When called with language \"A\" and language \"B\", this is equivalent to calling allowEval(\"A\", \"B\") and allowEval(\"B\", \"A\"). If called with more than two then all language evaluation combinations will be allowed. This method potentially overrides already configured access rights with allowEval(String, String) or denyEval(String, String). The given language array must be non null and individual languages must not be null.","params":[{"name":"languages","type":"String..."}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.denyEvalBetween(String...)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#denyEvalBetween(java.lang.String...)","name":"denyEvalBetween","kind":"method","signature":"public PolyglotAccess.Builder denyEvalBetween(String... languages)","summary":"Denies bidirectional evaluation of code between the given languages.","details":"When called with language \"A\" and language \"B\", this is equivalent to calling denyEval(\"A\", \"B\") and denyEval(\"B\", \"A\"). If called with more than two then all language access combinations will be denied. This method potentially overrides already configured access rights with allowEval(String, String) or denyEval(String, String). The given language array must be non null and individual languages must not be null.","params":[{"name":"languages","type":"String..."}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.allowEval(String, String)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#allowEval(java.lang.String,java.lang.String)","name":"allowEval","kind":"method","signature":"public PolyglotAccess.Builder allowEval(String from, String to)","summary":"Allows evaluation of code by one language of another.","details":"This method only allows one-way evaluation access. Every language always has implicitly access to itself. If a language has access to one ore more different languages then the guest application will have access to polyglot evaluation builtins. If a language has no access granted to another language then access to polyglot evaluation builtins is denied.","params":[{"name":"from","type":"String"},{"name":"to","type":"String"}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.denyEval(String, String)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#denyEval(java.lang.String,java.lang.String)","name":"denyEval","kind":"method","signature":"public PolyglotAccess.Builder denyEval(String from, String to)","summary":"Denies evaluation of code by one language of another.","details":"This method only denies one-way evaluation. Every language has always evaluation access to itself. This access cannot be denied.","params":[{"name":"from","type":"String"},{"name":"to","type":"String"}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.allowBindingsAccess(String)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#allowBindingsAccess(java.lang.String)","name":"allowBindingsAccess","kind":"method","signature":"public PolyglotAccess.Builder allowBindingsAccess(String language)","summary":"Allows access to polyglot bindings for a language.","details":"The names of the guest language builtins to access polyglot bindings are language specific. In JavaScript they are called Polyglot.import and Polyglot.export.","params":[{"name":"language","type":"String"}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.denyBindingsAccess(String)","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#denyBindingsAccess(java.lang.String)","name":"denyBindingsAccess","kind":"method","signature":"public PolyglotAccess.Builder denyBindingsAccess(String language)","summary":"Denies access to polyglot bindings for a language.","details":"The provided language must not be null.","params":[{"name":"language","type":"String"}],"returns":{"type":"PolyglotAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.toString()","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.PolyglotAccess.Builder.build()","href":"org/graalvm/polyglot/PolyglotAccess.Builder.html#build()","name":"build","kind":"method","signature":"public PolyglotAccess build()","summary":"Creates an instance of the custom polyglot access configuration.","details":"This method may be called multiple times to create more than one independent instances.","returns":{"type":"PolyglotAccess"}}
{"symbol":"org.graalvm.polyglot.PolyglotException","href":"org/graalvm/polyglot/PolyglotException.html","name":"PolyglotException","kind":"class","signature":"public final class PolyglotException extends RuntimeException","summary":"A polyglot exception represents errors that contain Graal guest languages on the stack trace.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.PolyglotException.toString()","href":"org/graalvm/polyglot/PolyglotException.html#toString()","name":"toString","kind":"method","signature":"public String toString()","summary":"Returns a short description of this exception.","details":"The result is the concatenation of: the qualified name of the metaobject of the guest exception, if this object represents one, and it has a metaobject. Otherwise, the name of the PolyglotException class. \": \" (a colon and a space) the result of invoking this object's getMessage method If getMessage returns null, then just the class name is returned.","returns":{"type":"String","doc":"a string representation of this exception."}}
{"symbol":"org.graalvm.polyglot.PolyglotException.printStackTrace()","href":"org/graalvm/polyglot/PolyglotException.html#printStackTrace()","name":"printStackTrace","kind":"method","signature":"public void printStackTrace()","summary":"Prints host and guest language stack frames to the standard error output."}
{"symbol":"org.graalvm.polyglot.PolyglotException.printStackTrace(PrintStream)","href":"org/graalvm/polyglot/PolyglotException.html#printStackTrace(java.io.PrintStream)","name":"printStackTrace","kind":"method","signature":"public void printStackTrace(PrintStream s)","summary":"Prints host and guest language stack frames to specified print stream.","params":[{"name":"s","type":"PrintStream"}]}
{"symbol":"org.graalvm.polyglot.PolyglotException.printStackTrace(PrintWriter)","href":"org/graalvm/polyglot/PolyglotException.html#printStackTrace(java.io.PrintWriter)","name":"printStackTrace","kind":"method","signature":"public void printStackTrace(PrintWriter s)","summary":"Prints host and guest language stack frames to specified print writer.","params":[{"name":"s","type":"PrintWriter"}]}
{"symbol":"org.graalvm.polyglot.PolyglotException.fillInStackTrace()","href":"org/graalvm/polyglot/PolyglotException.html#fillInStackTrace()","name":"fillInStackTrace","kind":"method","signature":"public Throwable fillInStackTrace()","summary":"Unsupported, PolyglotException instances are not writable therefore filling the stack trace has no effect for them.","returns":{"type":"Throwable"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.getStackTrace()","href":"org/graalvm/polyglot/PolyglotException.html#getStackTrace()","name":"getStackTrace","kind":"method","signature":"public StackTraceElement[] getStackTrace()","summary":"Gets stack trace elements for Java and guest languages.","details":"For polyglot exceptions it recommended to use getPolyglotStackTrace() as the guest language stack elements do not always fit the Java format for stack trace elements.","returns":{"type":"StackTraceElement[]"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.getMessage()","href":"org/graalvm/polyglot/PolyglotException.html#getMessage()","name":"getMessage","kind":"method","signature":"public String getMessage()","summary":"Gets a user readable message for the polyglot exception.","details":"In case the exception is internal then the original java class name is included in the message. The message may return null if no message is available.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.getSourceLocation()","href":"org/graalvm/polyglot/PolyglotException.html#getSourceLocation()","name":"getSourceLocation","kind":"method","signature":"public SourceSection getSourceLocation()","summary":"Gets a guest language source location of this error or null if no source location is available for this exception.","returns":{"type":"SourceSection"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.equals(Object)","href":"org/graalvm/polyglot/PolyglotException.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.hashCode()","href":"org/graalvm/polyglot/PolyglotException.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.setStackTrace(StackTraceElement[])","href":"org/graalvm/polyglot/PolyglotException.html#setStackTrace(java.lang.StackTraceElement[])","name":"setStackTrace","kind":"method","signature":"public void setStackTrace(StackTraceElement[] stackTrace)","summary":"Unsupported, PolyglotException instances are not writable therefore setting the stack trace has no effect for them.","params":[{"name":"stackTrace","type":"StackTraceElement[]"}]}
{"symbol":"org.graalvm.polyglot.PolyglotException.getPolyglotStackTrace()","href":"org/graalvm/polyglot/PolyglotException.html#getPolyglotStackTrace()","name":"getPolyglotStackTrace","kind":"method","signature":"public Iterable<PolyglotException.StackFrame> getPolyglotStackTrace()","summary":"Provides programmatic access to the polyglot stack trace information printed by printStackTrace().","details":"Returns an array of stack trace elements, each representing one stack frame. The zeroth element of the array (assuming the array's length is non-zero) represents the top of the stack, which is the last invocation in the sequence. Typically, this is the point at which this throwable was created and thrown. The last element of the array (assuming the array's length is non-zero) represents the bottom of the stack, which is the first method invocation in the sequence.","returns":{"type":"Iterable<PolyglotException.StackFrame>"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isHostException()","href":"org/graalvm/polyglot/PolyglotException.html#isHostException()","name":"isHostException","kind":"method","signature":"public boolean isHostException()","summary":"Returns true if this exception originates from the Java host language.","details":"In such a case the first stack frame returns a host frame as zeroth element.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isGuestException()","href":"org/graalvm/polyglot/PolyglotException.html#isGuestException()","name":"isGuestException","kind":"method","signature":"public boolean isGuestException()","summary":"Returns true if this exception originates from a Graal guest language.","details":"In such a case the first stack frame returns a guest frame as zeroth element.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.asHostException()","href":"org/graalvm/polyglot/PolyglotException.html#asHostException()","name":"asHostException","kind":"method","signature":"public Throwable asHostException()","summary":"Returns the original Java host exception that caused this exception.","details":"The original host exception contains a stack trace that is hardly interpretable by users as it contains details of the language implementation. The polyglot exception provides information for user-friendly error reporting with the polyglot stack trace.","returns":{"type":"Throwable"},"throws":[{"type":"UnsupportedOperationException","doc":"if this exception is not a host exception. Call isHostException() to ensure its originating from the host language."}]}
{"symbol":"org.graalvm.polyglot.PolyglotException.isInternalError()","href":"org/graalvm/polyglot/PolyglotException.html#isInternalError()","name":"isInternalError","kind":"method","signature":"public boolean isInternalError()","summary":"Returns true if this exception was caused by an internal implementation error.","details":"These errors should be reported as bugs if observed. Internal error messages are typically hard to understand for guest language programmers and might contain implementation specific details that allows guest language implementers to debug the problem.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isResourceExhausted()","href":"org/graalvm/polyglot/PolyglotException.html#isResourceExhausted()","name":"isResourceExhausted","kind":"method","signature":"public boolean isResourceExhausted()","summary":"Returns true if this exception indicates that a resource limit was exceeded, else false.","detailsOmitted":true,"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isCancelled()","href":"org/graalvm/polyglot/PolyglotException.html#isCancelled()","name":"isCancelled","kind":"method","signature":"public boolean isCancelled()","summary":"Returns true if the execution was cancelled.","details":"The execution can be cancelled by closing a context, if an instrument such as a debugger decides to cancel the current execution or if a resource limit was exceeded. The context that caused a cancel event becomes unusable, i.e. closed.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isInterrupted()","href":"org/graalvm/polyglot/PolyglotException.html#isInterrupted()","name":"isInterrupted","kind":"method","signature":"public boolean isInterrupted()","summary":"Returns true if the current application thread was interrupted by an InterruptedException, or by calling Context.interrupt(Duration) from the host.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isExit()","href":"org/graalvm/polyglot/PolyglotException.html#isExit()","name":"isExit","kind":"method","signature":"public boolean isExit()","summary":"Returns true if this exception is caused by an attempt of a guest language program to exit the application.","details":"The provided exit code can be accessed using getExitStatus(). This can be the result of either the soft or the hard exit.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isSyntaxError()","href":"org/graalvm/polyglot/PolyglotException.html#isSyntaxError()","name":"isSyntaxError","kind":"method","signature":"public boolean isSyntaxError()","summary":"Returns true if this exception indicates a parser or syntax error.","details":"In such a case #get","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.isIncompleteSource()","href":"org/graalvm/polyglot/PolyglotException.html#isIncompleteSource()","name":"isIncompleteSource","kind":"method","signature":"public boolean isIncompleteSource()","summary":"Returns true if this exception indicates a syntax error that is indicating that the syntax is incomplete.","details":"This allows guest language programmers to find out if more code is expected from a given source. For example, an incomplete JavaScript program could look like this: function incompleteFunction(arg) { A shell might react to this exception and prompt for additional source code, if this method returns true.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.getGuestObject()","href":"org/graalvm/polyglot/PolyglotException.html#getGuestObject()","name":"getGuestObject","kind":"method","signature":"public Value getGuestObject()","summary":"Returns an additional guest language object.","details":"Returns null if no exception object is available.","returns":{"type":"Value"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.getExitStatus()","href":"org/graalvm/polyglot/PolyglotException.html#getExitStatus()","name":"getExitStatus","kind":"method","signature":"public int getExitStatus()","summary":"Returns the exit status if this exception indicates that the application was exited.","details":"The exit status is intended to be passed to System.exit(int). In case of hard exit the application can be configured to call System.exit(int) directly using Context.Builder.useSystemExit(boolean).","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html","name":"PolyglotException.StackFrame","kind":"class","signature":"public final class PolyglotException.StackFrame","summary":"Represents a polyglot stack frame originating from a guest language or the host language Java."}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.isHostFrame()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#isHostFrame()","name":"isHostFrame","kind":"method","signature":"public boolean isHostFrame()","summary":"Returns true if the stack frame originates from the host language.","details":"Host frames do not provide a source location. Instead the Java stack frame can be accessed using toHostFrame().","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.isGuestFrame()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#isGuestFrame()","name":"isGuestFrame","kind":"method","signature":"public boolean isGuestFrame()","summary":"Returns true if the stack frame originates from the guest language.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.toHostFrame()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#toHostFrame()","name":"toHostFrame","kind":"method","signature":"public StackTraceElement toHostFrame()","summary":"Returns a Java stack trace element representation of the polyglot stack trace element.","details":"This is supported for host stack frames as well as guest language stack frames. A conversion to the host frame format can be useful for interoperability.","returns":{"type":"StackTraceElement"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.getSourceLocation()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#getSourceLocation()","name":"getSourceLocation","kind":"method","signature":"public SourceSection getSourceLocation()","summary":"Returns the source location of the stack frame or null if no source location is available.","details":"Host frames do never provide a source location.","returns":{"type":"SourceSection"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.getBytecodeIndex()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#getBytecodeIndex()","name":"getBytecodeIndex","kind":"method","signature":"public int getBytecodeIndex()","summary":"Returns the bytecode index of this frame if available, or a negative number if no bytecode index is available.","details":"The bytecode index is an internal identifier of the current execution location. The bytecode index is typically only provided by languages that are internally implemented as bytecode interpreter. This information is exposed for debugging or testing purposes and should not be relied upon for anything else.","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.getRootName()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#getRootName()","name":"getRootName","kind":"method","signature":"public String getRootName()","summary":"Returns the root name of this stack frame.","details":"In case of the host language the Java method name is returned. In guest languages it returns a useful identifier for code. For example, in JavaScript this can be the function name.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.getLanguage()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#getLanguage()","name":"getLanguage","kind":"method","signature":"public Language getLanguage()","summary":"Returns the language of this stack frame.","details":"In case of the host language a synthetic Java language object is returned.","returns":{"type":"Language"}}
{"symbol":"org.graalvm.polyglot.PolyglotException.StackFrame.toString()","href":"org/graalvm/polyglot/PolyglotException.StackFrame.html#toString()","name":"toString","kind":"method","signature":"public String toString()","summary":"Returns a string representation of this stack frame.","details":"The format is inspired by the Java stack frame format.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.PreinitializedSources","href":"org/graalvm/polyglot/PreinitializedSources.html","name":"PreinitializedSources","kind":"class","signature":"public final class PreinitializedSources","summary":"Registers sources that context pre-initialization parses when a native image is built.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.PreinitializedSources.register(Source...)","href":"org/graalvm/polyglot/PreinitializedSources.html#register(org.graalvm.polyglot.Source...)","name":"register","kind":"method","signature":"public static void register(Source... sources)","summary":"Registers sources to be parsed by context pre-initialization: all of them, or none if this method throws.","params":[{"name":"sources","type":"Source..."}],"throws":[{"type":"IllegalStateException","doc":"if the contexts were already pre-initialized, or if called in a native image at run time"},{"type":"UnsupportedOperationException","doc":"if no polyglot implementation that supports context pre-initialization is installed"}]}
{"symbol":"org.graalvm.polyglot.ResourceLimitEvent","href":"org/graalvm/polyglot/ResourceLimitEvent.html","name":"ResourceLimitEvent","kind":"class","signature":"public final class ResourceLimitEvent","summary":"Event triggered by a resource limit for a context.","details":"Event objects are short-lived and should not be stored. Their use should be limited to the duration of the event."}
{"symbol":"org.graalvm.polyglot.ResourceLimitEvent.getContext()","href":"org/graalvm/polyglot/ResourceLimitEvent.html#getContext()","name":"getContext","kind":"method","signature":"public Context getContext()","summary":"The context for which the limit was exceeded.","details":"Never null.","returns":{"type":"Context"}}
{"symbol":"org.graalvm.polyglot.ResourceLimitEvent.toString()","href":"org/graalvm/polyglot/ResourceLimitEvent.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits","href":"org/graalvm/polyglot/ResourceLimits.html","name":"ResourceLimits","kind":"class","signature":"public final class ResourceLimits","summary":"Represents resource limits configuration that is used to configure contexts.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.ResourceLimits.newBuilder()","href":"org/graalvm/polyglot/ResourceLimits.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static ResourceLimits.Builder newBuilder()","summary":"Creates a new builder to construct ResourceLimits instances.","returns":{"type":"ResourceLimits.Builder"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits.toString()","href":"org/graalvm/polyglot/ResourceLimits.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits.Builder","href":"org/graalvm/polyglot/ResourceLimits.Builder.html","name":"ResourceLimits.Builder","kind":"class","signature":"public final class ResourceLimits.Builder","summary":"A builder used to construct resource limits.","details":"Builder instances are not thread-safe and may not be used from multiple threads at the same time."}
{"symbol":"org.graalvm.polyglot.ResourceLimits.Builder.statementLimit(long, Predicate)","href":"org/graalvm/polyglot/ResourceLimits.Builder.html#statementLimit(long,java.util.function.Predicate)","name":"statementLimit","kind":"method","signature":"public ResourceLimits.Builder statementLimit(long limit, Predicate<Source> sourceFilter)","summary":"Specifies the maximum number of statements a context may execute until the onLimit event is notified and the context will be closed.","detailsOmitted":true,"params":[{"name":"limit","type":"long"},{"name":"sourceFilter","type":"Predicate<Source>"}],"returns":{"type":"ResourceLimits.Builder"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits.Builder.onLimit(Consumer)","href":"org/graalvm/polyglot/ResourceLimits.Builder.html#onLimit(java.util.function.Consumer)","name":"onLimit","kind":"method","signature":"public ResourceLimits.Builder onLimit(Consumer<ResourceLimitEvent> onLimit)","summary":"Notified when a resource limit is reached.","details":"Default is null. May be set to null to disable events.","params":[{"name":"onLimit","type":"Consumer<ResourceLimitEvent>"}],"returns":{"type":"ResourceLimits.Builder"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits.Builder.toString()","href":"org/graalvm/polyglot/ResourceLimits.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.ResourceLimits.Builder.build()","href":"org/graalvm/polyglot/ResourceLimits.Builder.html#build()","name":"build","kind":"method","signature":"public ResourceLimits build()","summary":"Builds the limit configuration object.","returns":{"type":"ResourceLimits"}}
{"symbol":"org.graalvm.polyglot.SandboxPolicy","href":"org/graalvm/polyglot/SandboxPolicy.html","name":"SandboxPolicy","kind":"enum","signature":"public enum SandboxPolicy","summary":"The sandbox policy presets and validates configurations of a context or engine to be suitable as a code sandbox.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.values()","href":"org/graalvm/polyglot/SandboxPolicy.html#values()","name":"values","kind":"method","signature":"public static SandboxPolicy[] values()","summary":"Returns the enum constants in declaration order.","returns":{"type":"SandboxPolicy[]","doc":"Returns the enum constants in declaration order."}}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.valueOf(String)","href":"org/graalvm/polyglot/SandboxPolicy.html#valueOf(java.lang.String)","name":"valueOf","kind":"method","signature":"public static SandboxPolicy valueOf(String name)","summary":"Returns the enum constant with the given name.","params":[{"name":"name","type":"String","doc":"The exact name of the enum constant."}],"returns":{"type":"SandboxPolicy","doc":"Returns the enum constant with the given name."}}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.TRUSTED","href":"org/graalvm/polyglot/SandboxPolicy.html#TRUSTED","name":"TRUSTED","kind":"enumConstant","signature":"TRUSTED","summary":"Policy intended for fully trusted applications.","details":"In this mode, access to any resource of the host might be accessible to the guest application. This is the default mode, there are no restrictions to the context or engine configuration."}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.CONSTRAINED","href":"org/graalvm/polyglot/SandboxPolicy.html#CONSTRAINED","name":"CONSTRAINED","kind":"enumConstant","signature":"CONSTRAINED","summary":"Policy intended for trusted, but potentially buggy applications.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.ISOLATED","href":"org/graalvm/polyglot/SandboxPolicy.html#ISOLATED","name":"ISOLATED","kind":"enumConstant","signature":"ISOLATED","summary":"Policy intended for trusted applications, but which might have security vulnerabilities and optionally that can be mitigated using this policy.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.UNTRUSTED","href":"org/graalvm/polyglot/SandboxPolicy.html#UNTRUSTED","name":"UNTRUSTED","kind":"enumConstant","signature":"UNTRUSTED","summary":"Policy intended for untrusted applications.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.isStricterThan(SandboxPolicy)","href":"org/graalvm/polyglot/SandboxPolicy.html#isStricterThan(org.graalvm.polyglot.SandboxPolicy)","name":"isStricterThan","kind":"method","signature":"public boolean isStricterThan(SandboxPolicy other)","summary":"Tests whether this SandboxPolicy is stricter than other.","params":[{"name":"other","type":"SandboxPolicy"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.SandboxPolicy.isStricterOrEqual(SandboxPolicy)","href":"org/graalvm/polyglot/SandboxPolicy.html#isStricterOrEqual(org.graalvm.polyglot.SandboxPolicy)","name":"isStricterOrEqual","kind":"method","signature":"public boolean isStricterOrEqual(SandboxPolicy other)","summary":"Tests whether this SandboxPolicy is stricter or equal to other.","params":[{"name":"other","type":"SandboxPolicy"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Source","href":"org/graalvm/polyglot/Source.html","name":"Source","kind":"class","signature":"public final class Source","summary":"Representation of a source code unit and its contents that can be evaluated in an execution context.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.Source.getLanguage()","href":"org/graalvm/polyglot/Source.html#getLanguage()","name":"getLanguage","kind":"method","signature":"public String getLanguage()","summary":"Returns the language this source created with.","details":"The string returned matches the id of the language.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Source.getName()","href":"org/graalvm/polyglot/Source.html#getName()","name":"getName","kind":"method","signature":"public String getName()","summary":"Returns the name of this resource holding a guest language program.","details":"An example would be the name of a guest language source code file. Name is supposed to be shorter than getPath().","returns":{"type":"String","doc":"the name of the guest language program"}}
{"symbol":"org.graalvm.polyglot.Source.getPath()","href":"org/graalvm/polyglot/Source.html#getPath()","name":"getPath","kind":"method","signature":"public String getPath()","summary":"The fully qualified name of the source.","details":"In case this source originates from a File, then the path is the normalized, canonical path for absolute files, or the relative path otherwise. If the source originates from an URL, then it's the path component of the URL.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Source.getURL()","href":"org/graalvm/polyglot/Source.html#getURL()","name":"getURL","kind":"method","signature":"public URL getURL()","summary":"The URL if the source is retrieved via URL.","returns":{"type":"URL","doc":"URL or null"}}
{"symbol":"org.graalvm.polyglot.Source.getURI()","href":"org/graalvm/polyglot/Source.html#getURI()","name":"getURI","kind":"method","signature":"public URI getURI()","summary":"Get the URI of the source.","details":"Every source has an associated URI, which can be used as a persistent identification of the source. The URI returned by this method should be as unique as possible, yet it can happen that different sources return the same getURI - for example when content of a file on a disk changes and is re-loaded.","returns":{"type":"URI","doc":"a URI, never null"}}
{"symbol":"org.graalvm.polyglot.Source.isInteractive()","href":"org/graalvm/polyglot/Source.html#isInteractive()","name":"isInteractive","kind":"method","signature":"public boolean isInteractive()","summary":"Check whether this source has been marked as interactive.","details":"Interactive sources are provided by an entity which is able to interactively read output and provide an input during the source execution; that can be a user I/O through an interactive shell for instance. One can specify whether a source is interactive when building it.","returns":{"type":"boolean","doc":"whether this source is marked as interactive"}}
{"symbol":"org.graalvm.polyglot.Source.isInternal()","href":"org/graalvm/polyglot/Source.html#isInternal()","name":"isInternal","kind":"method","signature":"public boolean isInternal()","summary":"Gets whether this source has been marked as internal, meaning that it has been provided by the infrastructure, language implementation, or system library.","details":"Internal sources are presumed to be irrelevant to guest language programmers, as well as possibly confusing and revealing of language implementation details. On the other hand, tools should be free to make internal sources visible in (possibly privileged) modes that are useful for language implementors. One can specify whether a source is internal when building it.","returns":{"type":"boolean","doc":"whether this source is marked as internal"}}
{"symbol":"org.graalvm.polyglot.Source.getReader()","href":"org/graalvm/polyglot/Source.html#getReader()","name":"getReader","kind":"method","signature":"public Reader getReader()","summary":"Returns a new reader that reads from the characters provided by this source.","returns":{"type":"Reader"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."}]}
{"symbol":"org.graalvm.polyglot.Source.getInputStream()","href":"org/graalvm/polyglot/Source.html#getInputStream()","name":"getInputStream","kind":"method","signature":"public InputStream getInputStream()","deprecated":{"since":"19.0","doc":"use getReader(), getCharacters() or getBytes() instead. The implementation is inefficient and can not distinguish byte and character based sources."},"returns":{"type":"InputStream"}}
{"symbol":"org.graalvm.polyglot.Source.getLength()","href":"org/graalvm/polyglot/Source.html#getLength()","name":"getLength","kind":"method","signature":"public int getLength()","summary":"Gets the number of characters or bytes of the source.","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Source.getCharacters()","href":"org/graalvm/polyglot/Source.html#getCharacters()","name":"getCharacters","kind":"method","signature":"public CharSequence getCharacters()","summary":"Returns all characters of the source.","returns":{"type":"CharSequence"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."}]}
{"symbol":"org.graalvm.polyglot.Source.getMimeType()","href":"org/graalvm/polyglot/Source.html#getMimeType()","name":"getMimeType","kind":"method","signature":"public String getMimeType()","summary":"Returns the MIME type that is associated with this source.","details":"Sources have a null MIME type by default. If the MIME type is null then the default MIME type of the language will be used to interpret the source. If set explicitly then the language needs to support the MIME type in order to evaluate the source. If not null the MIME type is already verified containing no spaces and a '/' between group and sub-group. An example for a valid MIME type is: text/javascript. The MIME type can be guessed by the system based on files or urls","returns":{"type":"String","doc":"MIME type of this source or null, if not explicitly set."}}
{"symbol":"org.graalvm.polyglot.Source.getCharacters(int)","href":"org/graalvm/polyglot/Source.html#getCharacters(int)","name":"getCharacters","kind":"method","signature":"public CharSequence getCharacters(int lineNumber)","summary":"Gets the text (not including a possible terminating newline) in a (1-based) numbered line.","details":"Causes the contents of this source to be loaded if they are loaded lazily.","params":[{"name":"lineNumber","type":"int"}],"returns":{"type":"CharSequence"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."}]}
{"symbol":"org.graalvm.polyglot.Source.getBytes()","href":"org/graalvm/polyglot/Source.html#getBytes()","name":"getBytes","kind":"method","signature":"public ByteSequence getBytes()","summary":"Returns the bytes of the source if it is a byte based source.","returns":{"type":"ByteSequence"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain bytes ."}]}
{"symbol":"org.graalvm.polyglot.Source.hasCharacters()","href":"org/graalvm/polyglot/Source.html#hasCharacters()","name":"hasCharacters","kind":"method","signature":"public boolean hasCharacters()","summary":"Returns true if this source represents a character based source, else false.","details":"A source is either a byte based, a character based, or with no content, but never both byte and character based at the same time. The following methods are only supported if hasCharacters() is true: getReader() getCharacters() getLineCount() getLineNumber(int) getColumnNumber(int) getLineStartOffset(int) getLineLength(int)","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Source.hasBytes()","href":"org/graalvm/polyglot/Source.html#hasBytes()","name":"hasBytes","kind":"method","signature":"public boolean hasBytes()","summary":"Returns true if this source represents a byte based source, else false.","details":"A source is either a byte based, a character based, or with no content, but never both byte and character based at the same time. The method getBytes() is only supported if this method returns true.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Source.getLineCount()","href":"org/graalvm/polyglot/Source.html#getLineCount()","name":"getLineCount","kind":"method","signature":"public int getLineCount()","summary":"The number of text lines of a character based source, including empty lines; characters at the end of the source without a terminating newline count as a line.","details":"Causes the contents of this source to be loaded if they are loaded lazily.","returns":{"type":"int"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."}]}
{"symbol":"org.graalvm.polyglot.Source.getLineNumber(int)","href":"org/graalvm/polyglot/Source.html#getLineNumber(int)","name":"getLineNumber","kind":"method","signature":"public int getLineNumber(int offset) throws IllegalArgumentException","summary":"Given a 0-based character offset, return the 1-based number of the line that includes the position.","details":"Causes the contents of this source to be loaded if they are loaded lazily.","params":[{"name":"offset","type":"int"}],"returns":{"type":"int"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."},{"type":"IllegalArgumentException","doc":"if the offset is outside the text contents"}]}
{"symbol":"org.graalvm.polyglot.Source.getColumnNumber(int)","href":"org/graalvm/polyglot/Source.html#getColumnNumber(int)","name":"getColumnNumber","kind":"method","signature":"public int getColumnNumber(int offset) throws IllegalArgumentException","summary":"Given a 0-based character offset, return the 1-based number of the column at the position.","details":"Causes the contents of this source to be loaded if they are loaded lazily.","params":[{"name":"offset","type":"int"}],"returns":{"type":"int"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."},{"type":"IllegalArgumentException","doc":"if the offset is outside the text contents"}]}
{"symbol":"org.graalvm.polyglot.Source.getLineStartOffset(int)","href":"org/graalvm/polyglot/Source.html#getLineStartOffset(int)","name":"getLineStartOffset","kind":"method","signature":"public int getLineStartOffset(int lineNumber) throws IllegalArgumentException","summary":"Given a 1-based line number, return the 0-based offset of the first character in the line.","params":[{"name":"lineNumber","type":"int"}],"returns":{"type":"int"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."},{"type":"IllegalArgumentException","doc":"if there is no such line in the text"}]}
{"symbol":"org.graalvm.polyglot.Source.getLineLength(int)","href":"org/graalvm/polyglot/Source.html#getLineLength(int)","name":"getLineLength","kind":"method","signature":"public int getLineLength(int lineNumber) throws IllegalArgumentException","summary":"The number of characters (not counting a possible terminating newline) in a (1-based) numbered line.","details":"Causes the contents of this source to be loaded if they are loaded lazily.","params":[{"name":"lineNumber","type":"int"}],"returns":{"type":"int"},"throws":[{"type":"UnsupportedOperationException","doc":"if this source cannot contain characters."},{"type":"IllegalArgumentException","doc":"if there is no such line in the text"}]}
{"symbol":"org.graalvm.polyglot.Source.toString()","href":"org/graalvm/polyglot/Source.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Source.hashCode()","href":"org/graalvm/polyglot/Source.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Source.equals(Object)","href":"org/graalvm/polyglot/Source.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Source.newBuilder(String, CharSequence, String)","href":"org/graalvm/polyglot/Source.html#newBuilder(java.lang.String,java.lang.CharSequence,java.lang.String)","name":"newBuilder","kind":"method","signature":"public static Source.Builder newBuilder(String language, CharSequence characters, String name)","summary":"Creates a new character based literal source from a character sequence.","details":"The given characters must not mutate after they were accessed for the first time. Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and Builder.content(CharSequence). Example usage: Source source = Source.newBuilder(\"js\", \"function() {\\n\" + \" return 'Hi';\\n\" + \"}\\n\", \"hi.js\").buildLiteral(); assert \"hi.js\".equals(source.getName());","params":[{"name":"language","type":"String","doc":"the language id, must not be null"},{"name":"characters","type":"CharSequence","doc":"the character sequence or string, must not be null"},{"name":"name","type":"String","doc":"the name of the source, if null then \"Unnamed\" will be used as name."}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.newBuilder(String, ByteSequence, String)","href":"org/graalvm/polyglot/Source.html#newBuilder(java.lang.String,org.graalvm.polyglot.io.ByteSequence,java.lang.String)","name":"newBuilder","kind":"method","signature":"public static Source.Builder newBuilder(String language, ByteSequence bytes, String name)","summary":"Creates a new byte based literal source from a byte sequence.","details":"The given bytes must not mutate after they were accessed for the first time. Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and Builder.content(CharSequence). Example usage:","params":[{"name":"language","type":"String","doc":"the language id, must not be null"},{"name":"bytes","type":"ByteSequence","doc":"the byte sequence or string, must not be null"},{"name":"name","type":"String","doc":"the name of the source, if null then \"Unnamed\" will be used as name."}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.newBuilder(String, File)","href":"org/graalvm/polyglot/Source.html#newBuilder(java.lang.String,java.io.File)","name":"newBuilder","kind":"method","signature":"public static Source.Builder newBuilder(String language, File file)","summary":"Creates a new file based source builder from a given file.","detailsOmitted":true,"params":[{"name":"language","type":"String","doc":"the language id, must not be null"},{"name":"file","type":"File","doc":"the file to use, must not be null"}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.newBuilder(String, URL)","href":"org/graalvm/polyglot/Source.html#newBuilder(java.lang.String,java.net.URL)","name":"newBuilder","kind":"method","signature":"public static Source.Builder newBuilder(String language, URL url)","summary":"Creates a new URL based source builder from a given URL.","detailsOmitted":true,"params":[{"name":"language","type":"String","doc":"the language id, must not be null"},{"name":"url","type":"URL","doc":"the URL to use and load, must not be null"}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.newBuilder(String, Reader, String)","href":"org/graalvm/polyglot/Source.html#newBuilder(java.lang.String,java.io.Reader,java.lang.String)","name":"newBuilder","kind":"method","signature":"public static Source.Builder newBuilder(String language, Reader source, String name)","summary":"Creates new character based literal source from a reader.","details":"Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and Builder.content(CharSequence). Reader stream = new InputStreamReader( relativeClass.getResourceAsStream(\"sample.js\")); Source source = Source.newBuilder(\"js\", stream, \"sample.js\").build(); assert \"sample.js\".equals(source.getName());","params":[{"name":"language","type":"String"},{"name":"source","type":"Reader"},{"name":"name","type":"String"}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.create(String, CharSequence)","href":"org/graalvm/polyglot/Source.html#create(java.lang.String,java.lang.CharSequence)","name":"create","kind":"method","signature":"public static Source create(String language, CharSequence source)","summary":"Shortcut for creating a source object from a language and char sequence.","details":"The given characters must not mutate after they were accessed for the first time. Use for sources that do not come from a file, or URL. If they do, use the appropriate builder and Builder.content(CharSequence).","params":[{"name":"language","type":"String"},{"name":"source","type":"CharSequence"}],"returns":{"type":"Source"}}
{"symbol":"org.graalvm.polyglot.Source.findLanguage(File)","href":"org/graalvm/polyglot/Source.html#findLanguage(java.io.File)","name":"findLanguage","kind":"method","signature":"public static String findLanguage(File file) throws IOException","summary":"Returns the id of the first language that supports evaluating the probed mime type of a given file.","details":"This method is a shortcut for: String mimeType = Source.findMimeType(file); return mimeType != null ? Source.findLanguage(mimeType) : null;","params":[{"name":"file","type":"File","doc":"the file to find the first language for"}],"returns":{"type":"String"},"throws":[{"type":"IOException","doc":"if an error opening the file occurred."}]}
{"symbol":"org.graalvm.polyglot.Source.findLanguage(URL)","href":"org/graalvm/polyglot/Source.html#findLanguage(java.net.URL)","name":"findLanguage","kind":"method","signature":"public static String findLanguage(URL url) throws IOException","summary":"Returns the id of the first language that supports evaluating the probed mime type of a given URL.","details":"This method is a shortcut for: String mimeType = Source.findMimeType(url); return mimeType != null ? Source.findLanguage(mimeType) : null;","params":[{"name":"url","type":"URL","doc":"the url to find the first language for"}],"returns":{"type":"String"},"throws":[{"type":"IOException","doc":"if an error opening the url occurred."}]}
{"symbol":"org.graalvm.polyglot.Source.findMimeType(File)","href":"org/graalvm/polyglot/Source.html#findMimeType(java.io.File)","name":"findMimeType","kind":"method","signature":"public static String findMimeType(File file) throws IOException","summary":"Returns the probed MIME type for a given file, or null if no MIME type could be resolved.","details":"Typically the MIME type is identified using the file extension and/or using its contents. Probing the MIME type of an File may require to opening the file.","params":[{"name":"file","type":"File"}],"returns":{"type":"String"},"throws":[{"type":"IOException","doc":"if an error opening the file occurred."}]}
{"symbol":"org.graalvm.polyglot.Source.findMimeType(URL)","href":"org/graalvm/polyglot/Source.html#findMimeType(java.net.URL)","name":"findMimeType","kind":"method","signature":"public static String findMimeType(URL url) throws IOException","summary":"Returns the probed MIME type for a given url, or null if no MIME type could be resolved.","details":"Typically the MIME type is identified using the file extension, connection meta-data and/or using it contents. Returns null if the language of the given file could not be detected. Probing the language of a URL may require to open a new URL connection.","params":[{"name":"url","type":"URL"}],"returns":{"type":"String"},"throws":[{"type":"IOException","doc":"if an error opening the url occurred."}]}
{"symbol":"org.graalvm.polyglot.Source.findLanguage(String)","href":"org/graalvm/polyglot/Source.html#findLanguage(java.lang.String)","name":"findLanguage","kind":"method","signature":"public static String findLanguage(String mimeType)","summary":"Returns the first installed language that supports evaluating sources for a given MIME type.","details":"Returns null if no language was found that supports a given MIME type. The languages are queried in the same order as returned by Engine.getLanguages(). Mime-types don't adhere to the MIME type format will return null.","params":[{"name":"mimeType","type":"String"}],"returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Source.Builder","href":"org/graalvm/polyglot/Source.Builder.html","name":"Source.Builder","kind":"class","signature":"public class Source.Builder","summary":"Represents a builder to build Source objects.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.Source.Builder.name(String)","href":"org/graalvm/polyglot/Source.Builder.html#name(java.lang.String)","name":"name","kind":"method","signature":"public Source.Builder name(String newName)","summary":"Specifies a name to the to-be-built Source.","params":[{"name":"newName","type":"String","doc":"name that replaces the previously given one. If set to null then \"Unnamed\" will be used."}],"returns":{"type":"Source.Builder","doc":"instance of this builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.content(String)","href":"org/graalvm/polyglot/Source.Builder.html#content(java.lang.String)","name":"content","kind":"method","signature":"public Source.Builder content(String code)","summary":"Specifies content of to-be-built Source.","details":"Using this method one can ignore the real content of a file or URL and use already read one, or completely different one. Example: URL resource = relativeClass.getResource(\"sample.js\"); Source source = Source.newBuilder(\"js\", resource).content(\"{}\").buildLiteral(); assert resource.toExternalForm().equals(source.getPath()); assert \"sample.js\".equals(source.getName()); assert resource.toExternalForm().equals(source.getURI().toString()); assert \"{}\".equals(source.getCharacters());","params":[{"name":"code","type":"String","doc":"the code to be available via Source.getCharacters()"}],"returns":{"type":"Source.Builder","doc":"instance of this builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.content(CharSequence)","href":"org/graalvm/polyglot/Source.Builder.html#content(java.lang.CharSequence)","name":"content","kind":"method","signature":"public Source.Builder content(CharSequence characters)","summary":"Specifies character based content of to-be-built Source.","detailsOmitted":true,"params":[{"name":"characters","type":"CharSequence","doc":"the code to be available via Source.getCharacters()"}],"returns":{"type":"Source.Builder","doc":"instance of this builder - which's build() method no longer throws an IOException"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.content(ByteSequence)","href":"org/graalvm/polyglot/Source.Builder.html#content(org.graalvm.polyglot.io.ByteSequence)","name":"content","kind":"method","signature":"public Source.Builder content(ByteSequence bytes)","summary":"Specifies byte based content of to-be-built Source.","detailsOmitted":true,"params":[{"name":"bytes","type":"ByteSequence","doc":"the code to be available via Source.getBytes()"}],"returns":{"type":"Source.Builder","doc":"instance of this builder - which's build() method no longer throws an IOException"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.mimeType(String)","href":"org/graalvm/polyglot/Source.Builder.html#mimeType(java.lang.String)","name":"mimeType","kind":"method","signature":"public Source.Builder mimeType(String mimeType)","summary":"Explicitly assigns a MIME type to the to-be-built Source.","detailsOmitted":true,"params":[{"name":"mimeType","type":"String","doc":"the new mime type to be assigned, or null if default MIME type should be used."}],"returns":{"type":"Source.Builder","doc":"instance of this builder ready to create new source"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.interactive(boolean)","href":"org/graalvm/polyglot/Source.Builder.html#interactive(boolean)","name":"interactive","kind":"method","signature":"public Source.Builder interactive(boolean interactive)","summary":"Marks the source as interactive.","details":"Evaluation of interactive sources by an interactive language can use the Context output streams to print the result and read an input. However, non-interactive languages are expected to ignore the interactive property of sources and not use the polyglot engine streams. Any desired printing of the evaluated result provided by a non-interactive language needs to be handled by the caller. Calling of this method influences the result of Source.isInteractive().","params":[{"name":"interactive","type":"boolean"}],"returns":{"type":"Source.Builder","doc":"the instance of this builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.internal(boolean)","href":"org/graalvm/polyglot/Source.Builder.html#internal(boolean)","name":"internal","kind":"method","signature":"public Source.Builder internal(boolean internal)","summary":"Set whether this source has been marked as internal, meaning that it has been provided by the infrastructure, language implementation, or system library.","details":"Internal sources are presumed to be irrelevant to guest language programmers, as well as possibly confusing and revealing of language implementation details. On the other hand, tools should be free to make internal sources visible in (possibly privileged) modes that are useful for language implementors.","params":[{"name":"internal","type":"boolean"}],"returns":{"type":"Source.Builder","doc":"the instance of this builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.cached(boolean)","href":"org/graalvm/polyglot/Source.Builder.html#cached(boolean)","name":"cached","kind":"method","signature":"public Source.Builder cached(boolean cached)","summary":"Enables or disables code caching for this source.","detailsOmitted":true,"params":[{"name":"cached","type":"boolean"}],"returns":{"type":"Source.Builder","doc":"instance of this builder ready to create new source"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.uri(URI)","href":"org/graalvm/polyglot/Source.Builder.html#uri(java.net.URI)","name":"uri","kind":"method","signature":"public Source.Builder uri(URI newUri)","summary":"Assigns new URI to the to-be-created Source.","details":"Each source provides Source.getURI() as a persistent identification of its location. A default value for the method is deduced from the location or content, but one can change it by using this method","params":[{"name":"newUri","type":"URI","doc":"the URL to use instead of default one, cannot be null"}],"returns":{"type":"Source.Builder","doc":"the instance of this builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.encoding(Charset)","href":"org/graalvm/polyglot/Source.Builder.html#encoding(java.nio.charset.Charset)","name":"encoding","kind":"method","signature":"public Source.Builder encoding(Charset encoding)","summary":"Assigns an encoding used to read the file content.","details":"If the encoding is null then the file contained encoding information is used. If the file doesn't provide an encoding information the default UTF-8 encoding is used.","params":[{"name":"encoding","type":"Charset","doc":"the new file encoding to be used for reading the content"}],"returns":{"type":"Source.Builder","doc":"instance of this builder ready to create new source"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.option(String, String)","href":"org/graalvm/polyglot/Source.Builder.html#option(java.lang.String,java.lang.String)","name":"option","kind":"method","signature":"public Source.Builder option(String key, String value)","summary":"Sets a source option key and value for the built source.","detailsOmitted":true,"params":[{"name":"key","type":"String","doc":"the option key (must not be null)"},{"name":"value","type":"String","doc":"the option value (must not be null)"}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.options(Map)","href":"org/graalvm/polyglot/Source.Builder.html#options(java.util.Map)","name":"options","kind":"method","signature":"public Source.Builder options(Map<String, String> options)","summary":"Shortcut for setting multiple options using a map.","details":"All values of the provided map must be non-null.","params":[{"name":"options","type":"Map<String, String>"}],"returns":{"type":"Source.Builder"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.toString()","href":"org/graalvm/polyglot/Source.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Source.Builder.build()","href":"org/graalvm/polyglot/Source.Builder.html#build()","name":"build","kind":"method","signature":"public Source build() throws IOException","summary":"Uses configuration of this builder to create new Source object.","details":"The method throws an IOException if an error loading the source occurred.","returns":{"type":"Source","doc":"the source object"},"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.Source.Builder.buildLiteral()","href":"org/graalvm/polyglot/Source.Builder.html#buildLiteral()","name":"buildLiteral","kind":"method","signature":"public Source buildLiteral()","summary":"Uses configuration of this builder to create a new Source object.","details":"This method suppresses any IOException as AssertionError and should only be used if the builder was created using or Source#newBuilder(String, ByteSequence, String) byte sequence literal.","returns":{"type":"Source","doc":"the source object"}}
{"symbol":"org.graalvm.polyglot.SourceSection","href":"org/graalvm/polyglot/SourceSection.html","name":"SourceSection","kind":"class","signature":"public final class SourceSection","summary":"Description of contiguous section of text within a Source of program code.; supports multiple modes of access to the text and its location.","details":"Two available source sections are considered equal if their sources, start and length are equal. Unavailable source sections are compared by identity. Source sections are designed to be used as keys in hash maps."}
{"symbol":"org.graalvm.polyglot.SourceSection.isAvailable()","href":"org/graalvm/polyglot/SourceSection.html#isAvailable()","name":"isAvailable","kind":"method","signature":"public boolean isAvailable()","summary":"Returns whether this is a special instance that signifies that source information is available.","details":"Available source sections are never equal to unavailable source sections. Unavailable source sections return the same indices and lengths as empty source sections starting at character index 0.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.SourceSection.hasLines()","href":"org/graalvm/polyglot/SourceSection.html#hasLines()","name":"hasLines","kind":"method","signature":"public boolean hasLines()","summary":"Returns true if this section has a line number information, false otherwise.","details":"When true, getStartLine() and getEndLine() return valid line numbers, when false, getStartLine() and getEndLine() return 1.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.SourceSection.hasColumns()","href":"org/graalvm/polyglot/SourceSection.html#hasColumns()","name":"hasColumns","kind":"method","signature":"public boolean hasColumns()","summary":"Returns true if this section has a column number information, false otherwise.","details":"When true, hasLines() is true as well, getStartColumn() and getEndColumn() return valid column numbers. When false, getStartColumn() and getEndColumn() return 1.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.SourceSection.hasCharIndex()","href":"org/graalvm/polyglot/SourceSection.html#hasCharIndex()","name":"hasCharIndex","kind":"method","signature":"public boolean hasCharIndex()","summary":"Returns true if this section has a character index information, false otherwise.","details":"When true, getCharIndex(), getCharEndIndex() and getCharLength() return valid character indices, when false, getCharIndex(), getCharEndIndex() and getCharLength() return 0.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.SourceSection.getSource()","href":"org/graalvm/polyglot/SourceSection.html#getSource()","name":"getSource","kind":"method","signature":"public Source getSource()","summary":"Representation of the source program that contains this section.","returns":{"type":"Source","doc":"the source object."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getStartLine()","href":"org/graalvm/polyglot/SourceSection.html#getStartLine()","name":"getStartLine","kind":"method","signature":"public int getStartLine()","summary":"Returns 1-based line number of the first character in this section (inclusive).","details":"Returns 1 for out of bounds or unavailable source sections, or source sections not having lines.","returns":{"type":"int","doc":"the starting line number."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getStartColumn()","href":"org/graalvm/polyglot/SourceSection.html#getStartColumn()","name":"getStartColumn","kind":"method","signature":"public int getStartColumn()","summary":"Returns the 1-based column number of the first character in this section (inclusive).","details":"Returns 1 for out of bounds or unavailable source sections, or source sections not having columns.","returns":{"type":"int","doc":"the starting column number."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getEndLine()","href":"org/graalvm/polyglot/SourceSection.html#getEndLine()","name":"getEndLine","kind":"method","signature":"public int getEndLine()","summary":"Returns 1-based line number of the last character in this section (inclusive).","details":"Returns 1 for out of bounds or unavailable source sections, or source sections not having lines.","returns":{"type":"int","doc":"the starting line number."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getEndColumn()","href":"org/graalvm/polyglot/SourceSection.html#getEndColumn()","name":"getEndColumn","kind":"method","signature":"public int getEndColumn()","summary":"Returns the 1-based column number of the last character in this section (inclusive).","details":"Returns 1 for out of bounds or unavailable source sections, or source sections not having columns.","returns":{"type":"int","doc":"the starting column number."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getCharIndex()","href":"org/graalvm/polyglot/SourceSection.html#getCharIndex()","name":"getCharIndex","kind":"method","signature":"public int getCharIndex()","summary":"Returns the 0-based index of the first character in this section.","details":"Returns 0 for unavailable source sections, or sections not having character index. The returned index might be out of bounds of the source code if assertions (-ea) are not enabled.","returns":{"type":"int","doc":"the starting character index."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getCharLength()","href":"org/graalvm/polyglot/SourceSection.html#getCharLength()","name":"getCharLength","kind":"method","signature":"public int getCharLength()","summary":"Returns the length of this section in characters.","details":"Returns 0 for unavailable source sections, or sections not having character index. The returned length might be out of bounds of the source code if assertions (-ea) are not enabled.","returns":{"type":"int","doc":"the number of characters in the section."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getCharEndIndex()","href":"org/graalvm/polyglot/SourceSection.html#getCharEndIndex()","name":"getCharEndIndex","kind":"method","signature":"public int getCharEndIndex()","summary":"Returns the index of the text position immediately following the last character in the section.","details":"Returns 0 for unavailable source sections, or sections not having character index. The returned index might be out of bounds of the source code if assertions (-ea) are not enabled.","returns":{"type":"int","doc":"the end position of the section."}}
{"symbol":"org.graalvm.polyglot.SourceSection.getCode()","href":"org/graalvm/polyglot/SourceSection.html#getCode()","name":"getCode","kind":"method","signature":"public CharSequence getCode()","deprecated":{"since":"19.0","doc":"use getCharacters() instead."},"returns":{"type":"CharSequence"}}
{"symbol":"org.graalvm.polyglot.SourceSection.getCharacters()","href":"org/graalvm/polyglot/SourceSection.html#getCharacters()","name":"getCharacters","kind":"method","signature":"public CharSequence getCharacters()","summary":"Returns the source code fragment described by this section.","details":"Returns an empty string for out of bounds or unavailable source sections.","returns":{"type":"CharSequence","doc":"the code as a string."}}
{"symbol":"org.graalvm.polyglot.SourceSection.toString()","href":"org/graalvm/polyglot/SourceSection.html#toString()","name":"toString","kind":"method","signature":"public String toString()","summary":"Returns an implementation-defined string representation of this source section to be used for debugging purposes only.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.SourceSection.hashCode()","href":"org/graalvm/polyglot/SourceSection.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.SourceSection.equals(Object)","href":"org/graalvm/polyglot/SourceSection.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.TypeLiteral","href":"org/graalvm/polyglot/TypeLiteral.html","name":"TypeLiteral","kind":"class","signature":"public abstract class TypeLiteral<T>","summary":"Represents a generic type T.","details":"Java doesn't yet provide a way to represent generic types, so this class does. Forces clients to create a subclass of this class which enables retrieval of the type information even at runtime. For example, to create a type literal for List<String>, you can create an empty anonymous inner class: TypeLiteral<List<String>> list = new TypeLiteral<List<String>>() {};"}
{"symbol":"org.graalvm.polyglot.TypeLiteral()","href":"org/graalvm/polyglot/TypeLiteral.html#%3Cinit%3E()","name":"TypeLiteral","kind":"constructor","signature":"protected TypeLiteral()","summary":"Constructs a new type literal.","details":"Derives represented class from type parameter. Clients create an empty anonymous subclass. Doing so embeds the type parameter in the anonymous class's type hierarchy so we can reconstitute it at runtime despite erasure."}
{"symbol":"org.graalvm.polyglot.TypeLiteral.getType()","href":"org/graalvm/polyglot/TypeLiteral.html#getType()","name":"getType","kind":"method","signature":"public final Type getType()","summary":"Returns the type literal including generic type information.","returns":{"type":"Type"}}
{"symbol":"org.graalvm.polyglot.TypeLiteral.getRawType()","href":"org/graalvm/polyglot/TypeLiteral.html#getRawType()","name":"getRawType","kind":"method","signature":"public final Class<T> getRawType()","summary":"Returns the raw class type of the literal.","returns":{"type":"Class<T>"}}
{"symbol":"org.graalvm.polyglot.TypeLiteral.equals(Object)","href":"org/graalvm/polyglot/TypeLiteral.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public final boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.TypeLiteral.hashCode()","href":"org/graalvm/polyglot/TypeLiteral.html#hashCode()","name":"hashCode","kind":"method","signature":"public final int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.TypeLiteral.toString()","href":"org/graalvm/polyglot/TypeLiteral.html#toString()","name":"toString","kind":"method","signature":"public final String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Value","href":"org/graalvm/polyglot/Value.html","name":"Value","kind":"class","signature":"public final class Value extends AbstractValue","summary":"Represents a polyglot value that can be accessed using a set of language agnostic operations.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.Value.getMetaObject()","href":"org/graalvm/polyglot/Value.html#getMetaObject()","name":"getMetaObject","kind":"method","signature":"public Value getMetaObject()","summary":"Returns the metaobject that is associated with this value or null if no metaobject is available.","details":"The metaobject represents a description of the object, reveals it's kind and it's features. Some information that a metaobject might define includes the base object's type, interface, class, methods, attributes, etc. The returned value returns true for isMetaObject() and provides implementations for getMetaSimpleName(), getMetaQualifiedName(), and isMetaInstance(Object). This method does not cause any observable side-effects.","returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.isMetaObject()","href":"org/graalvm/polyglot/Value.html#isMetaObject()","name":"isMetaObject","kind":"method","signature":"public boolean isMetaObject()","summary":"Returns true if the value represents a metaobject.","detailsOmitted":true,"returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getMetaQualifiedName()","href":"org/graalvm/polyglot/Value.html#getMetaQualifiedName()","name":"getMetaQualifiedName","kind":"method","signature":"public String getMetaQualifiedName()","summary":"Returns the qualified name of a metaobject as String.","details":"Sample interpretations: The qualified name of a Java class includes the package name and its class name. JavaScript does not have the notion of qualified name and therefore returns the simple name instead.","returns":{"type":"String"},"throws":[{"type":"UnsupportedOperationException","doc":"if and only if isMetaObject() returns false for the same value."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getMetaSimpleName()","href":"org/graalvm/polyglot/Value.html#getMetaSimpleName()","name":"getMetaSimpleName","kind":"method","signature":"public String getMetaSimpleName()","summary":"Returns the simple name of a metaobject as string.","details":"Sample interpretations: The simple name of a Java class is the class name.","returns":{"type":"String"},"throws":[{"type":"UnsupportedOperationException","doc":"if and only if isMetaObject() returns false for the same value."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.isMetaInstance(Object)","href":"org/graalvm/polyglot/Value.html#isMetaInstance(java.lang.Object)","name":"isMetaInstance","kind":"method","signature":"public boolean isMetaInstance(Object instance)","summary":"Returns true if the given instance is an instance of this value, else false.","details":"The instance value is subject to polyglot value mapping rules as described in Context.asValue(Object). Sample interpretations: A Java object is an instance of its returned class.","params":[{"name":"instance","type":"Object","doc":"the instance object to check."}],"returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if and only if isMetaObject() returns false for the same value."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasMetaParents()","href":"org/graalvm/polyglot/Value.html#hasMetaParents()","name":"hasMetaParents","kind":"method","signature":"public boolean hasMetaParents()","summary":"Returns true if the value represents a metaobject and the metaobject has meta parents.","details":"Returns false by default. Sample interpretations: In Java an instance of the type Class is a metaobject. Further, the superclass and the implemented interfaces types of that type constitute the meta parents. In JavaScript any function instance is a metaobject. For example, the metaobject of a JavaScript class is the associated constructor function. This method does not cause any observable side-effects. If this method is implemented then also getMetaParents() must be implemented as well.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getMetaParents()","href":"org/graalvm/polyglot/Value.html#getMetaParents()","name":"getMetaParents","kind":"method","signature":"public Value getMetaParents()","summary":"Returns the meta parents of a meta object as an array object hasArrayElements().","details":"This method does not cause any observable side-effects. If this method is implemented then also hasMetaParents() must be implemented as well.","returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"UnsupportedOperationException","doc":"if the value does not have any hasMetaParents() meta parents."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasArrayElements()","href":"org/graalvm/polyglot/Value.html#hasArrayElements()","name":"hasArrayElements","kind":"method","signature":"public boolean hasArrayElements()","summary":"Returns true if this polyglot value has array elements.","details":"In this case array elements can be accessed using getArrayElement(long), setArrayElement(long, Object), removeArrayElement(long) and the array size can be queried using getArraySize().","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getArrayElement(long)","href":"org/graalvm/polyglot/Value.html#getArrayElement(long)","name":"getArrayElement","kind":"method","signature":"public Value getArrayElement(long index)","summary":"Returns the array element of a given index.","details":"Polyglot arrays start with index 0, independent of the guest language. The given array index must be greater or equal to 0.","params":[{"name":"index","type":"long"}],"returns":{"type":"Value"},"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the array index does not exist."},{"type":"UnsupportedOperationException","doc":"if the value does not have any array elements or if the index exists but is not readable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.setArrayElement(long, Object)","href":"org/graalvm/polyglot/Value.html#setArrayElement(long,java.lang.Object)","name":"setArrayElement","kind":"method","signature":"public void setArrayElement(long index, Object value)","summary":"Sets the value at a given index.","details":"Polyglot arrays start with index 0, independent of the guest language. The array element value is subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"index","type":"long"},{"name":"value","type":"Object"}],"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the array index does not exist."},{"type":"ClassCastException","doc":"if the provided value type is not allowed to be written."},{"type":"UnsupportedOperationException","doc":"if the value does not have any array elements or if the index exists but is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.removeArrayElement(long)","href":"org/graalvm/polyglot/Value.html#removeArrayElement(long)","name":"removeArrayElement","kind":"method","signature":"public boolean removeArrayElement(long index)","summary":"Removes an array element at a given index.","details":"Returns true if the underlying array element could be removed, otherwise false.","params":[{"name":"index","type":"long"}],"returns":{"type":"boolean"},"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the array index does not exist."},{"type":"UnsupportedOperationException","doc":"if the value does not have any array elements or if the index exists but is not removable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getArraySize()","href":"org/graalvm/polyglot/Value.html#getArraySize()","name":"getArraySize","kind":"method","signature":"public long getArraySize()","summary":"Returns the array size for values with array elements.","returns":{"type":"long"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any array elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasBufferElements()","href":"org/graalvm/polyglot/Value.html#hasBufferElements()","name":"hasBufferElements","kind":"method","signature":"public boolean hasBufferElements()","summary":"Returns true if the receiver may have buffer elements.","detailsOmitted":true,"returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.isBufferWritable()","href":"org/graalvm/polyglot/Value.html#isBufferWritable()","name":"isBufferWritable","kind":"method","signature":"public boolean isBufferWritable() throws UnsupportedOperationException","summary":"Returns true if the receiver object is a modifiable buffer.","details":"In this case, elements can be written using writeBufferByte(long, byte), writeBufferShort(ByteOrder, long, short), writeBufferInt(ByteOrder, long, int), writeBufferLong(ByteOrder, long, long), writeBufferFloat(ByteOrder, long, float) and writeBufferDouble(ByteOrder, long, double). Invoking this method does not cause any observable side-effects.","returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."}]}
{"symbol":"org.graalvm.polyglot.Value.getBufferSize()","href":"org/graalvm/polyglot/Value.html#getBufferSize()","name":"getBufferSize","kind":"method","signature":"public long getBufferSize() throws UnsupportedOperationException","summary":"Returns the buffer size in bytes for values with buffer elements.","details":"Invoking this method does not cause any observable side-effects.","returns":{"type":"long"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferByte(long)","href":"org/graalvm/polyglot/Value.html#readBufferByte(long)","name":"readBufferByte","kind":"method","signature":"public byte readBufferByte(long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the byte at the given byte offset from the start of the buffer.","details":"The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer at which the byte will be read."}],"returns":{"type":"byte","doc":"the byte at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize()."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBuffer(long, byte[], int, int)","href":"org/graalvm/polyglot/Value.html#readBuffer(long,byte[],int,int)","name":"readBuffer","kind":"method","signature":"public void readBuffer(long byteOffset, byte[] destination, int destinationOffset, int length) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads bytes from the receiver object into the specified byte array.","detailsOmitted":true,"params":[{"name":"byteOffset","type":"long","doc":"offset in the buffer to start reading from."},{"name":"destination","type":"byte[]","doc":"byte array to write the read bytes into."},{"name":"destinationOffset","type":"int","doc":"offset in the destination array to start writing from."},{"name":"length","type":"int","doc":"number of bytes to read."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || length < 0 || byteOffset + length > getBufferSize() || destinationOffset < 0 || destinationOffset + length > destination.length"},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferByte(long, byte)","href":"org/graalvm/polyglot/Value.html#writeBufferByte(long,byte)","name":"writeBufferByte","kind":"method","signature":"public void writeBufferByte(long byteOffset, byte value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given byte at the given byte offset from the start of the buffer.","details":"The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer at which the byte will be written."},{"name":"value","type":"byte","doc":"the byte value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize()."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferShort(ByteOrder, long)","href":"org/graalvm/polyglot/Value.html#readBufferShort(java.nio.ByteOrder,long)","name":"readBufferShort","kind":"method","signature":"public short readBufferShort(ByteOrder order, long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the short at the given byte offset from the start of the buffer in the given byte order.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to read the individual bytes of the short."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the short will be read."}],"returns":{"type":"short","doc":"the short at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 1."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferShort(ByteOrder, long, short)","href":"org/graalvm/polyglot/Value.html#writeBufferShort(java.nio.ByteOrder,long,short)","name":"writeBufferShort","kind":"method","signature":"public void writeBufferShort(ByteOrder order, long byteOffset, short value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given short in the given byte order at the given byte offset from the start of the buffer.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to write the individual bytes of the short."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the short will be written."},{"name":"value","type":"short","doc":"the short value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 1."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferInt(ByteOrder, long)","href":"org/graalvm/polyglot/Value.html#readBufferInt(java.nio.ByteOrder,long)","name":"readBufferInt","kind":"method","signature":"public int readBufferInt(ByteOrder order, long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the int at the given byte offset from the start of the buffer in the given byte order.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to read the individual bytes of the int."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the int will be read."}],"returns":{"type":"int","doc":"the int at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 3."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferInt(ByteOrder, long, int)","href":"org/graalvm/polyglot/Value.html#writeBufferInt(java.nio.ByteOrder,long,int)","name":"writeBufferInt","kind":"method","signature":"public void writeBufferInt(ByteOrder order, long byteOffset, int value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given int in the given byte order at the given byte offset from the start of the buffer.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to write the individual bytes of the int."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the int will be written."},{"name":"value","type":"int","doc":"the int value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 3."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferLong(ByteOrder, long)","href":"org/graalvm/polyglot/Value.html#readBufferLong(java.nio.ByteOrder,long)","name":"readBufferLong","kind":"method","signature":"public long readBufferLong(ByteOrder order, long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the long at the given byte offset from the start of the buffer in the given byte order.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to read the individual bytes of the long."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the int will be read."}],"returns":{"type":"long","doc":"the int at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 7."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferLong(ByteOrder, long, long)","href":"org/graalvm/polyglot/Value.html#writeBufferLong(java.nio.ByteOrder,long,long)","name":"writeBufferLong","kind":"method","signature":"public void writeBufferLong(ByteOrder order, long byteOffset, long value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given long in the given byte order at the given byte offset from the start of the buffer.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to write the individual bytes of the long."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the int will be written."},{"name":"value","type":"long","doc":"the int value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 7."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferFloat(ByteOrder, long)","href":"org/graalvm/polyglot/Value.html#readBufferFloat(java.nio.ByteOrder,long)","name":"readBufferFloat","kind":"method","signature":"public float readBufferFloat(ByteOrder order, long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the float at the given byte offset from the start of the buffer in the given byte order.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to read the individual bytes of the float."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the float will be read."}],"returns":{"type":"float","doc":"the float at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 3."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferFloat(ByteOrder, long, float)","href":"org/graalvm/polyglot/Value.html#writeBufferFloat(java.nio.ByteOrder,long,float)","name":"writeBufferFloat","kind":"method","signature":"public void writeBufferFloat(ByteOrder order, long byteOffset, float value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given float in the given byte order at the given byte offset from the start of the buffer.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to read the individual bytes of the float."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the float will be written."},{"name":"value","type":"float","doc":"the float value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 3."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.readBufferDouble(ByteOrder, long)","href":"org/graalvm/polyglot/Value.html#readBufferDouble(java.nio.ByteOrder,long)","name":"readBufferDouble","kind":"method","signature":"public double readBufferDouble(ByteOrder order, long byteOffset) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Reads the double at the given byte offset from the start of the buffer in the given byte order.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe. Invoking this method does not cause any observable side-effects.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to write the individual bytes of the double."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the double will be read."}],"returns":{"type":"double","doc":"the double at the given byte offset from the start of the buffer."},"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 7."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.writeBufferDouble(ByteOrder, long, double)","href":"org/graalvm/polyglot/Value.html#writeBufferDouble(java.nio.ByteOrder,long,double)","name":"writeBufferDouble","kind":"method","signature":"public void writeBufferDouble(ByteOrder order, long byteOffset, double value) throws UnsupportedOperationException, IndexOutOfBoundsException","summary":"Writes the given double in the given byte order at the given byte offset from the start of the buffer.","details":"Unaligned accesses are supported. The access is not guaranteed to be atomic. Therefore, this method is not thread-safe.","params":[{"name":"order","type":"ByteOrder","doc":"the order in which to write the individual bytes of the double."},{"name":"byteOffset","type":"long","doc":"the offset, in bytes, from the start of the buffer from which the double will be written."},{"name":"value","type":"double","doc":"the double value to be written."}],"throws":[{"type":"IndexOutOfBoundsException","doc":"if and only if byteOffset < 0 || byteOffset >= getBufferSize() - 7."},{"type":"UnsupportedOperationException","doc":"if the value does not have buffer elements or is not modifiable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasMembers()","href":"org/graalvm/polyglot/Value.html#hasMembers()","name":"hasMembers","kind":"method","signature":"public boolean hasMembers()","summary":"Returns true if this value generally supports containing members.","details":"To check whether a value has no members use getMemberKeys().isEmpty() instead. If polyglot value has members, it may also support getMember(String), putMember(String, Object) and removeMember(String).","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasMember(String)","href":"org/graalvm/polyglot/Value.html#hasMember(java.lang.String)","name":"hasMember","kind":"method","signature":"public boolean hasMember(String identifier)","summary":"Returns true if such a member exists for a given identifier.","details":"If the value has no members then hasMember(String) returns false.","params":[{"name":"identifier","type":"String"}],"returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the identifier is null."}]}
{"symbol":"org.graalvm.polyglot.Value.getMember(String)","href":"org/graalvm/polyglot/Value.html#getMember(java.lang.String)","name":"getMember","kind":"method","signature":"public Value getMember(String identifier)","summary":"Returns the member with a given identifier or null if the member does not exist.","params":[{"name":"identifier","type":"String"}],"returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value has no members or the given identifier exists but is not readable."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the identifier is null."}]}
{"symbol":"org.graalvm.polyglot.Value.getMemberKeys()","href":"org/graalvm/polyglot/Value.html#getMemberKeys()","name":"getMemberKeys","kind":"method","signature":"public Set<String> getMemberKeys()","summary":"Returns a set of all member keys.","details":"Calling Set.contains(Object) with a string key is equivalent to calling hasMember(String). Removing an element from the returned set is equivalent to calling removeMember(String). Adding an element to the set is equivalent to calling putMember(key, null). If the value does not support members then an empty unmodifiable set is returned. If the context gets closed while the returned set is still alive, then the set will throw an IllegalStateException if any methods except Object methods are invoked.","returns":{"type":"Set<String>"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.putMember(String, Object)","href":"org/graalvm/polyglot/Value.html#putMember(java.lang.String,java.lang.Object)","name":"putMember","kind":"method","signature":"public void putMember(String identifier, Object value)","summary":"Sets the value of a member using an identifier.","details":"The member value is subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"identifier","type":"String"},{"name":"value","type":"Object"}],"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"UnsupportedOperationException","doc":"if the value does not have any members, the key does not exist and new members cannot be added, or the existing member is not modifiable."},{"type":"IllegalArgumentException","doc":"if the provided value type is not allowed to be written."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the identifier is null."}]}
{"symbol":"org.graalvm.polyglot.Value.removeMember(String)","href":"org/graalvm/polyglot/Value.html#removeMember(java.lang.String)","name":"removeMember","kind":"method","signature":"public boolean removeMember(String identifier)","summary":"Removes a single member from the object.","details":"Returns true if the member was successfully removed, false if such a member does not exist.","params":[{"name":"identifier","type":"String"}],"returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any members or if the key exists but cannot be removed."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the identifier is null."}]}
{"symbol":"org.graalvm.polyglot.Value.hasStaticScope()","href":"org/graalvm/polyglot/Value.html#hasStaticScope()","name":"hasStaticScope","kind":"method","signature":"public boolean hasStaticScope()","summary":"Returns true if this value is a meta object that provides a static scope.","details":"A static scope represents the static or class level members associated with the type described by this meta object, such as static fields or methods.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed"},{"type":"PolyglotException","doc":"if a guest language error occurs during execution"}]}
{"symbol":"org.graalvm.polyglot.Value.getStaticScope()","href":"org/graalvm/polyglot/Value.html#getStaticScope()","name":"getStaticScope","kind":"method","signature":"public Value getStaticScope()","summary":"Returns the static scope associated with this value.","detailsOmitted":true,"returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if and only if this value does not have a static scope"},{"type":"IllegalStateException","doc":"if the context is already closed"},{"type":"PolyglotException","doc":"if a guest language error occurs during execution"}]}
{"symbol":"org.graalvm.polyglot.Value.canExecute()","href":"org/graalvm/polyglot/Value.html#canExecute()","name":"canExecute","kind":"method","signature":"public boolean canExecute()","summary":"Returns true if the value can be executed.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.execute(Object...)","href":"org/graalvm/polyglot/Value.html#execute(java.lang.Object...)","name":"execute","kind":"method","signature":"public Value execute(Object... arguments)","summary":"Executes this value if it can be executed and returns its result.","details":"If no result value is expected or needed use executeVoid(Object...) for better performance. All arguments are subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"arguments","type":"Object..."}],"returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context was closed."},{"type":"IllegalArgumentException","doc":"if a wrong number of arguments was provided or one of the arguments was not applicable."},{"type":"UnsupportedOperationException","doc":"if this value cannot be executed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the arguments array is null."}]}
{"symbol":"org.graalvm.polyglot.Value.executeVoid(Object...)","href":"org/graalvm/polyglot/Value.html#executeVoid(java.lang.Object...)","name":"executeVoid","kind":"method","signature":"public void executeVoid(Object... arguments)","summary":"Executes this value if it can be executed.","details":"All arguments are subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"arguments","type":"Object..."}],"throws":[{"type":"IllegalStateException","doc":"if the underlying context was closed."},{"type":"IllegalArgumentException","doc":"if a wrong number of arguments was provided or one of the arguments was not applicable."},{"type":"UnsupportedOperationException","doc":"if this value cannot be executed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the arguments array is null."}]}
{"symbol":"org.graalvm.polyglot.Value.canInstantiate()","href":"org/graalvm/polyglot/Value.html#canInstantiate()","name":"canInstantiate","kind":"method","signature":"public boolean canInstantiate()","summary":"Returns true if the value can be instantiated.","details":"This indicates that the newInstance(Object...) can be used with this value. If a value is instantiable it is often also a isMetaObject(), but this is not a requirement.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Value.newInstance(Object...)","href":"org/graalvm/polyglot/Value.html#newInstance(java.lang.Object...)","name":"newInstance","kind":"method","signature":"public Value newInstance(Object... arguments)","summary":"Instantiates this value if it can be instantiated.","details":"All arguments are subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"arguments","type":"Object..."}],"returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context was closed."},{"type":"IllegalArgumentException","doc":"if a wrong number of arguments was provided or one of the arguments was not applicable."},{"type":"UnsupportedOperationException","doc":"if this value cannot be instantiated."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"NullPointerException","doc":"if the arguments array is null."}]}
{"symbol":"org.graalvm.polyglot.Value.canInvokeMember(String)","href":"org/graalvm/polyglot/Value.html#canInvokeMember(java.lang.String)","name":"canInvokeMember","kind":"method","signature":"public boolean canInvokeMember(String identifier)","summary":"Returns true if the given member exists and can be invoked.","details":"Returns false if the member does not exist (hasMember(String) returns false), or is not invocable.","params":[{"name":"identifier","type":"String","doc":"the member identifier"}],"returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred."}]}
{"symbol":"org.graalvm.polyglot.Value.invokeMember(String, Object...)","href":"org/graalvm/polyglot/Value.html#invokeMember(java.lang.String,java.lang.Object...)","name":"invokeMember","kind":"method","signature":"public Value invokeMember(String identifier, Object... arguments)","summary":"Invokes the given member of this value.","details":"Unlike execute(Object...), this is an object oriented execution of a member of an object. To test whether invocation is supported, call canInvokeMember(String). When object oriented semantics are not supported, use getMember(String).execute(Object...) instead.","params":[{"name":"identifier","type":"String","doc":"the member identifier to invoke"},{"name":"arguments","type":"Object...","doc":"the invocation arguments"}],"returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if this member cannot be invoked."},{"type":"PolyglotException","doc":"if a guest language error occurred during invocation."},{"type":"NullPointerException","doc":"if the arguments array is null."}]}
{"symbol":"org.graalvm.polyglot.Value.isString()","href":"org/graalvm/polyglot/Value.html#isString()","name":"isString","kind":"method","signature":"public boolean isString()","summary":"Returns true if this value represents a string.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asString()","href":"org/graalvm/polyglot/Value.html#asString()","name":"asString","kind":"method","signature":"public String asString()","summary":"Returns the String value if this value is a string.","details":"This method returns null if this value represents a null value.","returns":{"type":"String"},"throws":[{"type":"ClassCastException","doc":"if this value could not be converted to string."},{"type":"UnsupportedOperationException","doc":"if this value does not represent a string."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.asStringBytes(Value.StringEncoding)","href":"org/graalvm/polyglot/Value.html#asStringBytes(org.graalvm.polyglot.Value.StringEncoding)","name":"asStringBytes","kind":"method","signature":"public byte[] asStringBytes(Value.StringEncoding encoding)","summary":"Returns the bytes of a given string value without converting it to a Java String.","detailsOmitted":true,"params":[{"name":"encoding","type":"Value.StringEncoding","doc":"the desired encoding for the string. Must not be null. Supported encodings are defined in StringEncoding."}],"returns":{"type":"byte[]","doc":"a byte array containing the string's raw bytes in the specified encoding"},"throws":[{"type":"NullPointerException","doc":"if encoding is null"},{"type":"IllegalStateException","doc":"if the string value is no longer valid (e.g., the associated context has been closed)"}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInInt()","href":"org/graalvm/polyglot/Value.html#fitsInInt()","name":"fitsInInt","kind":"method","signature":"public boolean fitsInInt()","summary":"Returns true if this value represents a number and the value fits in int, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asInt()","href":"org/graalvm/polyglot/Value.html#asInt()","name":"asInt","kind":"method","signature":"public int asInt()","summary":"Returns an int representation of this value if it is number and the value fits.","returns":{"type":"int"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isBoolean()","href":"org/graalvm/polyglot/Value.html#isBoolean()","name":"isBoolean","kind":"method","signature":"public boolean isBoolean()","summary":"Returns true if this value represents a boolean value.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asBoolean()","href":"org/graalvm/polyglot/Value.html#asBoolean()","name":"asBoolean","kind":"method","signature":"public boolean asBoolean()","summary":"Returns a boolean representation of this value if it is boolean.","returns":{"type":"boolean"},"throws":[{"type":"NullPointerException","doc":"if this value represents null"},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isNumber()","href":"org/graalvm/polyglot/Value.html#isNumber()","name":"isNumber","kind":"method","signature":"public boolean isNumber()","summary":"Returns true if this value represents a number, else false.","details":"The number value may be accessed as byte, short int long, float or double value.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInLong()","href":"org/graalvm/polyglot/Value.html#fitsInLong()","name":"fitsInLong","kind":"method","signature":"public boolean fitsInLong()","summary":"Returns true if this value represents a number and the value fits in long, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asLong()","href":"org/graalvm/polyglot/Value.html#asLong()","name":"asLong","kind":"method","signature":"public long asLong()","summary":"Returns a long representation of this value if it is number and the value fits.","returns":{"type":"long"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted to long."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInBigInteger()","href":"org/graalvm/polyglot/Value.html#fitsInBigInteger()","name":"fitsInBigInteger","kind":"method","signature":"public boolean fitsInBigInteger()","summary":"Returns true if this value represents a number and the value fits in BigInteger, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asBigInteger()","href":"org/graalvm/polyglot/Value.html#asBigInteger()","name":"asBigInteger","kind":"method","signature":"public BigInteger asBigInteger()","summary":"Returns a BigInteger representation of this value if it is number and the value fits.","returns":{"type":"BigInteger"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted to BigInteger."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInDouble()","href":"org/graalvm/polyglot/Value.html#fitsInDouble()","name":"fitsInDouble","kind":"method","signature":"public boolean fitsInDouble()","summary":"Returns true if this value represents a number and the value fits in double, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asDouble()","href":"org/graalvm/polyglot/Value.html#asDouble()","name":"asDouble","kind":"method","signature":"public double asDouble()","summary":"Returns a double representation of this value if it is number and the value fits.","returns":{"type":"double"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInFloat()","href":"org/graalvm/polyglot/Value.html#fitsInFloat()","name":"fitsInFloat","kind":"method","signature":"public boolean fitsInFloat()","summary":"Returns true if this value represents a number and the value fits in float, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asFloat()","href":"org/graalvm/polyglot/Value.html#asFloat()","name":"asFloat","kind":"method","signature":"public float asFloat()","summary":"Returns a float representation of this value if it is number and the value fits.","returns":{"type":"float"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInByte()","href":"org/graalvm/polyglot/Value.html#fitsInByte()","name":"fitsInByte","kind":"method","signature":"public boolean fitsInByte()","summary":"Returns true if this value represents a number and the value fits in byte, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asByte()","href":"org/graalvm/polyglot/Value.html#asByte()","name":"asByte","kind":"method","signature":"public byte asByte()","summary":"Returns a byte representation of this value if it is number and the value fits.","returns":{"type":"byte"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.fitsInShort()","href":"org/graalvm/polyglot/Value.html#fitsInShort()","name":"fitsInShort","kind":"method","signature":"public boolean fitsInShort()","summary":"Returns true if this value represents a number and the value fits in short, else false.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asShort()","href":"org/graalvm/polyglot/Value.html#asShort()","name":"asShort","kind":"method","signature":"public short asShort()","summary":"Returns a short representation of this value if it is number and the value fits.","returns":{"type":"short"},"throws":[{"type":"NullPointerException","doc":"if this value represents null."},{"type":"ClassCastException","doc":"if this value could not be converted."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isNull()","href":"org/graalvm/polyglot/Value.html#isNull()","name":"isNull","kind":"method","signature":"public boolean isNull()","summary":"Returns true if this value is a null like.","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isNativePointer()","href":"org/graalvm/polyglot/Value.html#isNativePointer()","name":"isNativePointer","kind":"method","signature":"public boolean isNativePointer()","summary":"Returns true if this value is a native pointer.","details":"The value of the pointer can be accessed using asNativePointer().","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asNativePointer()","href":"org/graalvm/polyglot/Value.html#asNativePointer()","name":"asNativePointer","kind":"method","signature":"public long asNativePointer()","summary":"Returns the value of the pointer as long value.","returns":{"type":"long"},"throws":[{"type":"ClassCastException","doc":"if the value is not a pointer."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isHostObject()","href":"org/graalvm/polyglot/Value.html#isHostObject()","name":"isHostObject","kind":"method","signature":"public boolean isHostObject()","summary":"Returns true if the value originated form the host language Java.","details":"In such a case the value can be accessed using asHostObject().","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asHostObject()","href":"org/graalvm/polyglot/Value.html#asHostObject()","name":"asHostObject","kind":"method","signature":"public <T> T asHostObject()","summary":"Returns the original Java host language object.","returns":{"type":"T"},"throws":[{"type":"ClassCastException","doc":"if isHostObject() is false"},{"type":"UnsupportedOperationException","doc":"if Java host language object is allocated in a foreign heap."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isProxyObject()","href":"org/graalvm/polyglot/Value.html#isProxyObject()","name":"isProxyObject","kind":"method","signature":"public boolean isProxyObject()","summary":"Returns true if this value represents a Proxy.","details":"The proxy instance can be unboxed using asProxyObject().","returns":{"type":"boolean"},"throws":[{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asProxyObject()","href":"org/graalvm/polyglot/Value.html#asProxyObject()","name":"asProxyObject","kind":"method","signature":"public <T extends Proxy> T asProxyObject()","summary":"Returns the unboxed instance of the Proxy.","details":"Proxies are not automatically boxed to host objects on host language call boundaries (Java methods).","returns":{"type":"T"},"throws":[{"type":"ClassCastException","doc":"if a value is not a proxy object."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."},{"type":"IllegalStateException","doc":"if the underlying context was closed."}]}
{"symbol":"org.graalvm.polyglot.Value.as(Class)","href":"org/graalvm/polyglot/Value.html#as(java.lang.Class)","name":"as","kind":"method","signature":"public <T> T as(Class<T> targetType) throws ClassCastException, IllegalStateException, PolyglotException","summary":"Maps a polyglot value to a value with a given Java target type.","detailsOmitted":true,"params":[{"name":"targetType","type":"Class<T>","doc":"the target Java type to map"}],"returns":{"type":"T"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."},{"type":"NullPointerException","doc":"if the target type is null."}]}
{"symbol":"org.graalvm.polyglot.Value.as(TypeLiteral)","href":"org/graalvm/polyglot/Value.html#as(org.graalvm.polyglot.TypeLiteral)","name":"as","kind":"method","signature":"public <T> T as(TypeLiteral<T> targetType)","summary":"Maps a polyglot value to a given Java target type literal.","details":"For usage instructions see TypeLiteral. Usage example: static final TypeLiteral<List<String>> STRING_LIST = new TypeLiteral<List<String>>() { }; public static void main(String[] args) { Context context = Context.create(); List<String> javaList = context.eval(\"js\", \"['foo', 'bar', 'bazz']\").as(STRING_LIST); assert javaList.get(0).equals(\"foo\"); }","params":[{"name":"targetType","type":"TypeLiteral<T>"}],"returns":{"type":"T"},"throws":[{"type":"NullPointerException","doc":"if the target type is null."}]}
{"symbol":"org.graalvm.polyglot.Value.toString()","href":"org/graalvm/polyglot/Value.html#toString()","name":"toString","kind":"method","signature":"public String toString()","summary":"Converts this value to a human readable string.","details":"Each language may have special formating conventions - even primitive values may not follow the traditional Java formating rules. The format of the returned string is intended to be interpreted by humans not machines and should therefore not be relied upon by machines. By default this value class name and its identity hash code is used as string representation.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.Value.getSourceLocation()","href":"org/graalvm/polyglot/Value.html#getSourceLocation()","name":"getSourceLocation","kind":"method","signature":"public SourceSection getSourceLocation()","summary":"Returns the declared source location of the value.","returns":{"type":"SourceSection","doc":"the SourceSection or null if unknown"}}
{"symbol":"org.graalvm.polyglot.Value.isDate()","href":"org/graalvm/polyglot/Value.html#isDate()","name":"isDate","kind":"method","signature":"public boolean isDate()","summary":"Returns true if this object represents a date, else false.","details":"If this value is also a timezone then the date is aware, otherwise it is naive.","returns":{"type":"boolean"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"NullPointerException","doc":"if the target type is null."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asDate()","href":"org/graalvm/polyglot/Value.html#asDate()","name":"asDate","kind":"method","signature":"public LocalDate asDate()","summary":"Returns this value as date if this object represents a date.","details":"The returned date is either aware if the value has a timezone otherwise it is naive.","returns":{"type":"LocalDate"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"NullPointerException","doc":"if the target type is null."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isTime()","href":"org/graalvm/polyglot/Value.html#isTime()","name":"isTime","kind":"method","signature":"public boolean isTime()","summary":"Returns true if this object represents a time, else false.","details":"If the value is also a timezone then the time is aware, otherwise it is naive.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asTime()","href":"org/graalvm/polyglot/Value.html#asTime()","name":"asTime","kind":"method","signature":"public LocalTime asTime()","summary":"Returns this value as time if this object represents a time.","details":"The returned time is either aware if the value has a timezone otherwise it is naive.","returns":{"type":"LocalTime"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"NullPointerException","doc":"if the target type is null."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isInstant()","href":"org/graalvm/polyglot/Value.html#isInstant()","name":"isInstant","kind":"method","signature":"public boolean isInstant()","summary":"Returns true if this value represents an instant.","details":"If a value is an instant then it is also a date, time and timezone. This method is short-hand for: v.isDate() && v.isTime() && v.isTimeZone()","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asInstant()","href":"org/graalvm/polyglot/Value.html#asInstant()","name":"asInstant","kind":"method","signature":"public Instant asInstant()","summary":"Returns this value as instant if this object represents an instant.","details":"If a value is an instant then it is also a date, time and timezone. Using this method may be more efficient than reconstructing the timestamp from the date, time and timezone data. The following assertion always holds if isInstant() returns true: ZoneId zone = getTimeZone(receiver); LocalDate date = getDate(receiver); LocalTime time = getTime(receiver); assert ZonedDateTime.of(date, time, zone).toInstant().equals(getInstant(receiver));","returns":{"type":"Instant"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"NullPointerException","doc":"if the target type is null."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.isTimeZone()","href":"org/graalvm/polyglot/Value.html#isTimeZone()","name":"isTimeZone","kind":"method","signature":"public boolean isTimeZone()","summary":"Returns true if this object represents a timezone, else false.","detailsOmitted":true,"returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asTimeZone()","href":"org/graalvm/polyglot/Value.html#asTimeZone()","name":"asTimeZone","kind":"method","signature":"public ZoneId asTimeZone()","summary":"Returns this value as timestamp if this object represents a timezone.","returns":{"type":"ZoneId"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."},{"type":"NullPointerException","doc":"if the target type is null."}]}
{"symbol":"org.graalvm.polyglot.Value.isDuration()","href":"org/graalvm/polyglot/Value.html#isDuration()","name":"isDuration","kind":"method","signature":"public boolean isDuration()","summary":"Returns true if this object represents a duration, else false.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.asDuration()","href":"org/graalvm/polyglot/Value.html#asDuration()","name":"asDuration","kind":"method","signature":"public Duration asDuration()","summary":"Returns this value as duration if this object represents a duration.","returns":{"type":"Duration"},"throws":[{"type":"ClassCastException","doc":"if polyglot value could not be mapped to the target type."},{"type":"PolyglotException","doc":"if the conversion triggered a guest language error."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."},{"type":"NullPointerException","doc":"if the target type is null."}]}
{"symbol":"org.graalvm.polyglot.Value.isException()","href":"org/graalvm/polyglot/Value.html#isException()","name":"isException","kind":"method","signature":"public boolean isException()","summary":"Returns true if this object represents an exception, else false.","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.throwException()","href":"org/graalvm/polyglot/Value.html#throwException()","name":"throwException","kind":"method","signature":"public RuntimeException throwException()","summary":"Throws this value if this object represents an exception.","returns":{"type":"RuntimeException"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value is not an exception."},{"type":"IllegalStateException","doc":"if the underlying context is already closed."}]}
{"symbol":"org.graalvm.polyglot.Value.getContext()","href":"org/graalvm/polyglot/Value.html#getContext()","name":"getContext","kind":"method","signature":"public Context getContext()","summary":"Returns the context this value was created with.","details":"The returned context may be null if the value was created using Value.asValue(Object) and no current context was entered at the time. The returned context can not be used to enter , leave or close the context or engine. Invoking such methods will cause an IllegalStateException to be thrown. This ensures that only the creator of a context is allowed to enter, leave or close a context and that a context is not closed while it is still active.","returns":{"type":"Context"}}
{"symbol":"org.graalvm.polyglot.Value.equals(Object)","href":"org/graalvm/polyglot/Value.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","summary":"Compares the identity of the underlying polyglot objects.","details":"This method does not do any structural comparisons.","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.Value.hashCode()","href":"org/graalvm/polyglot/Value.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","summary":"Returns the identity hash code of the underlying object.","details":"This method does not compute the hash code depending on the contents of the value.","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.Value.hasIterator()","href":"org/graalvm/polyglot/Value.html#hasIterator()","name":"hasIterator","kind":"method","signature":"public boolean hasIterator()","summary":"Returns true if this polyglot value provides an iterator.","details":"In this case the iterator can be obtained using getIterator().","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getIterator()","href":"org/graalvm/polyglot/Value.html#getIterator()","name":"getIterator","kind":"method","signature":"public Value getIterator()","summary":"Creates a new iterator that allows read each element of a sequence.","returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not provide iterator."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.isIterator()","href":"org/graalvm/polyglot/Value.html#isIterator()","name":"isIterator","kind":"method","signature":"public boolean isIterator()","summary":"Returns true if the value represents an iterator object.","details":"In this case the iterator elements can be accessed using getIteratorNextElement().","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasIteratorNextElement()","href":"org/graalvm/polyglot/Value.html#hasIteratorNextElement()","name":"hasIteratorNextElement","kind":"method","signature":"public boolean hasIteratorNextElement()","summary":"Returns true if the value represents an iterator which has more elements, else false.","details":"Multiple calls to the hasIteratorNextElement() might lead to different results if the underlying data structure is modified.","returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value is not an iterator."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getIteratorNextElement()","href":"org/graalvm/polyglot/Value.html#getIteratorNextElement()","name":"getIteratorNextElement","kind":"method","signature":"public Value getIteratorNextElement()","summary":"Returns the next element in the iteration.","details":"When the underlying data structure is modified the getIteratorNextElement() may throw the NoSuchElementException despite the hasIteratorNextElement() returned true, or it may throw a language error.","returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value is not an iterator or when the underlying iterable element exists but is not readable."},{"type":"NoSuchElementException","doc":"if the iteration has no more elements. Even if the NoSuchElementException was thrown it might not be thrown again by a next call of the getIteratorNextElement() due to a modification of an underlying iterable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasHashEntries()","href":"org/graalvm/polyglot/Value.html#hasHashEntries()","name":"hasHashEntries","kind":"method","signature":"public boolean hasHashEntries()","summary":"Returns true if this polyglot value represents a map.","details":"In this case map entries can be accessed using getHashValue(Object), getHashValueOrDefault(Object, Object), putHashEntry(Object, Object), removeHashEntry(Object), getHashEntriesIterator() and the map size can be queried using getHashSize().","returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashSize()","href":"org/graalvm/polyglot/Value.html#getHashSize()","name":"getHashSize","kind":"method","signature":"public long getHashSize() throws UnsupportedOperationException","summary":"Returns the number of map entries for values with hash entries.","returns":{"type":"long"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hasHashEntries() hash entries}."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.hasHashEntry(Object)","href":"org/graalvm/polyglot/Value.html#hasHashEntry(java.lang.Object)","name":"hasHashEntry","kind":"method","signature":"public boolean hasHashEntry(Object key)","summary":"Returns true if mapping for the specified key exists.","details":"If the value has no hash entries then hasHashEntry(Object) returns false. The key is subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"key","type":"Object"}],"returns":{"type":"boolean"},"throws":[{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashValue(Object)","href":"org/graalvm/polyglot/Value.html#getHashValue(java.lang.Object)","name":"getHashValue","kind":"method","signature":"public Value getHashValue(Object key) throws UnsupportedOperationException","summary":"Returns the value for the specified key or null if the mapping for the specified key does not exist.","details":"The key is subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"key","type":"Object"}],"returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value has no hash entries or the mapping for given key exists but is not readable."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashValueOrDefault(Object, Object)","href":"org/graalvm/polyglot/Value.html#getHashValueOrDefault(java.lang.Object,java.lang.Object)","name":"getHashValueOrDefault","kind":"method","signature":"public Value getHashValueOrDefault(Object key, Object defaultValue) throws UnsupportedOperationException","summary":"Returns the value for the specified key or the default value if the mapping for the specified key does not exist or is not readable.","details":"The key and the default value are subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"key","type":"Object"},{"name":"defaultValue","type":"Object"}],"returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value has no hash entries at all."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.putHashEntry(Object, Object)","href":"org/graalvm/polyglot/Value.html#putHashEntry(java.lang.Object,java.lang.Object)","name":"putHashEntry","kind":"method","signature":"public void putHashEntry(Object key, Object value) throws IllegalArgumentException, UnsupportedOperationException","summary":"Associates the specified value with the specified key.","details":"Both key and value are subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"key","type":"Object"},{"name":"value","type":"Object"}],"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hash entries, the mapping for specified key does not exist and new members cannot be added, or the existing mapping for specified key is not modifiable."},{"type":"IllegalArgumentException","doc":"if the provided key type or value type is not allowed to be written."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.removeHashEntry(Object)","href":"org/graalvm/polyglot/Value.html#removeHashEntry(java.lang.Object)","name":"removeHashEntry","kind":"method","signature":"public boolean removeHashEntry(Object key) throws UnsupportedOperationException","summary":"Removes the mapping for a given key.","details":"Returns true if the mapping was successfully removed, false if mapping for a given key does not exist. The key is subject to polyglot value mapping rules as described in Context.asValue(Object).","params":[{"name":"key","type":"Object"}],"returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hash entries or if mapping for specified key exists but cannot be removed."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashEntriesIterator()","href":"org/graalvm/polyglot/Value.html#getHashEntriesIterator()","name":"getHashEntriesIterator","kind":"method","signature":"public Value getHashEntriesIterator() throws UnsupportedOperationException","summary":"Creates a new hash entries iterator that allows read each map entry.","details":"The return value is always an iterator of array elements. The first array element is a key, the second array element is an associated value. Even if the value array element is modifiable writing to array may not update the mapping, always use putHashEntry(Object, Object) to update the mapping.","returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hash entries."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashKeysIterator()","href":"org/graalvm/polyglot/Value.html#getHashKeysIterator()","name":"getHashKeysIterator","kind":"method","signature":"public Value getHashKeysIterator() throws UnsupportedOperationException","summary":"Creates a new hash keys iterator that allows read each map key.","details":"The return value is always an iterator.","returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hash entries."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.getHashValuesIterator()","href":"org/graalvm/polyglot/Value.html#getHashValuesIterator()","name":"getHashValuesIterator","kind":"method","signature":"public Value getHashValuesIterator() throws UnsupportedOperationException","summary":"Creates a new hash values iterator that allows read each map value.","details":"The return value is always an iterator.","returns":{"type":"Value"},"throws":[{"type":"UnsupportedOperationException","doc":"if the value does not have any hash entries."},{"type":"IllegalStateException","doc":"if the context is already closed."},{"type":"PolyglotException","doc":"if a guest language error occurred during execution."}]}
{"symbol":"org.graalvm.polyglot.Value.asValue(Object)","href":"org/graalvm/polyglot/Value.html#asValue(java.lang.Object)","name":"asValue","kind":"method","signature":"public static Value asValue(Object o)","summary":"Converts a Java host value to a polyglot value.","details":"Returns a value for any host or guest value. If there is a context available use Context.asValue(Object) for efficiency instead. The value is bound the current context when created. If there is no context available when the value was constructed then Values constructed with this method may return null for getContext().","params":[{"name":"o","type":"Object","doc":"the object to convert"}],"returns":{"type":"Value"},"throws":[{"type":"IllegalStateException","doc":"if no context is currently entered."}]}
{"symbol":"org.graalvm.polyglot.Value.pin()","href":"org/graalvm/polyglot/Value.html#pin()","name":"pin","kind":"method","signature":"public void pin()","summary":"Pins a scoped value such that it can be used beyond the scope of a scoped host method call.","details":"Pinning is an idempotent operation, i.e. pinning an already pinned value just results in a pinned value again. Trying to pin a value that is not scoped will not cause an effect. Trying to pin a scoped value that has already been released will raise a IllegalStateException.","throws":[{"type":"IllegalStateException","doc":"if the method scope of the value was finished"}]}
{"symbol":"org.graalvm.polyglot.Value.fromByteBasedString(byte[], Value.StringEncoding)","href":"org/graalvm/polyglot/Value.html#fromByteBasedString(byte[],org.graalvm.polyglot.Value.StringEncoding)","name":"fromByteBasedString","kind":"method","signature":"public static Value fromByteBasedString(byte[] bytes, Value.StringEncoding encoding)","summary":"Creates a byte-based string value that can be passed to polyglot languages.","detailsOmitted":true,"params":[{"name":"bytes","type":"byte[]","doc":"the byte array representing the string"},{"name":"encoding","type":"Value.StringEncoding","doc":"the encoding of the byte array"}],"returns":{"type":"Value","doc":"a polyglot string Value"},"throws":[{"type":"NullPointerException","doc":"if either bytes or encoding is null"}]}
{"symbol":"org.graalvm.polyglot.Value.fromByteBasedString(byte[], int, int, Value.StringEncoding, boolean)","href":"org/graalvm/polyglot/Value.html#fromByteBasedString(byte[],int,int,org.graalvm.polyglot.Value.StringEncoding,boolean)","name":"fromByteBasedString","kind":"method","signature":"public static Value fromByteBasedString(byte[] bytes, int offset, int length, Value.StringEncoding encoding, boolean copy)","summary":"Creates a byte-based string value with more granular control over the byte array's usage.","details":"This method provides additional flexibility by allowing a subset of the byte array to be passed and controlling whether the byte array should be copied to ensure immutability.","params":[{"name":"bytes","type":"byte[]","doc":"the byte array representing the string"},{"name":"offset","type":"int","doc":"the starting offset in the byte array"},{"name":"length","type":"int","doc":"the number of bytes to include starting from offset"},{"name":"encoding","type":"Value.StringEncoding","doc":"the encoding of the byte array"},{"name":"copy","type":"boolean","doc":"whether to copy the byte array to ensure immutability"}],"returns":{"type":"Value","doc":"a polyglot string Value"}}
{"symbol":"org.graalvm.polyglot.Value.fromNativeString(long, int, int, Value.StringEncoding, boolean)","href":"org/graalvm/polyglot/Value.html#fromNativeString(long,int,int,org.graalvm.polyglot.Value.StringEncoding,boolean)","name":"fromNativeString","kind":"method","signature":"public static Value fromNativeString(long basePointer, int byteOffset, int byteLength, Value.StringEncoding encoding, boolean copy)","summary":"Creates a native string object that can be passed to polyglot languages.","detailsOmitted":true,"params":[{"name":"basePointer","type":"long","doc":"the raw base pointer to the native string in memory"},{"name":"byteOffset","type":"int"},{"name":"byteLength","type":"int","doc":"the length of the string in bytes"},{"name":"encoding","type":"Value.StringEncoding","doc":"the encoding of the native string"},{"name":"copy","type":"boolean","doc":"whether to copy the native string bytes for additional safety"}],"returns":{"type":"Value","doc":"a polyglot string Value"}}
{"symbol":"org.graalvm.polyglot.Value.fromNativeString(long, int, Value.StringEncoding)","href":"org/graalvm/polyglot/Value.html#fromNativeString(long,int,org.graalvm.polyglot.Value.StringEncoding)","name":"fromNativeString","kind":"method","signature":"public static Value fromNativeString(long basePointer, int byteLength, Value.StringEncoding encoding)","summary":"Creates a native string object with default safety settings.","details":"This method is equivalent to calling fromNativeString(long, int, int, StringEncoding, boolean) with copy set to true.","params":[{"name":"basePointer","type":"long","doc":"the raw base pointer to the native string in memory"},{"name":"byteLength","type":"int","doc":"the length of the string in bytes"},{"name":"encoding","type":"Value.StringEncoding","doc":"the encoding of the native string"}],"returns":{"type":"Value","doc":"a polyglot string Value"}}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding","href":"org/graalvm/polyglot/Value.StringEncoding.html","name":"Value.StringEncoding","kind":"class","signature":"public static final class Value.StringEncoding","summary":"Enum like class representing the supported string encodings.","details":"The encodings determine how byte arrays or native strings are interpreted when creating or retrieving string values. This class is not directly a enum to support compatible evolution."}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_8","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_8","name":"UTF_8","kind":"field","signature":"public static final Value.StringEncoding UTF_8"}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_16_LITTLE_ENDIAN","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_16_LITTLE_ENDIAN","name":"UTF_16_LITTLE_ENDIAN","kind":"field","signature":"public static final Value.StringEncoding UTF_16_LITTLE_ENDIAN"}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_16_BIG_ENDIAN","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_16_BIG_ENDIAN","name":"UTF_16_BIG_ENDIAN","kind":"field","signature":"public static final Value.StringEncoding UTF_16_BIG_ENDIAN"}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_32_LITTLE_ENDIAN","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_32_LITTLE_ENDIAN","name":"UTF_32_LITTLE_ENDIAN","kind":"field","signature":"public static final Value.StringEncoding UTF_32_LITTLE_ENDIAN"}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_32_BIG_ENDIAN","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_32_BIG_ENDIAN","name":"UTF_32_BIG_ENDIAN","kind":"field","signature":"public static final Value.StringEncoding UTF_32_BIG_ENDIAN"}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_16","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_16","name":"UTF_16","kind":"field","signature":"public static final Value.StringEncoding UTF_16","summary":"The native UTF 16 encoding for the current platform."}
{"symbol":"org.graalvm.polyglot.Value.StringEncoding.UTF_32","href":"org/graalvm/polyglot/Value.StringEncoding.html#UTF_32","name":"UTF_32","kind":"field","signature":"public static final Value.StringEncoding UTF_32","summary":"The native UTF 32 encoding for the current platform."}
{"symbol":"org.graalvm.polyglot.io.ByteSequence","href":"org/graalvm/polyglot/io/ByteSequence.html","name":"ByteSequence","kind":"interface","signature":"public interface ByteSequence","summary":"A ByteSequence is a readable sequence of byte values.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.length()","href":"org/graalvm/polyglot/io/ByteSequence.html#length()","name":"length","kind":"method","signature":"int length()","summary":"Returns the length of this byte sequence.","returns":{"type":"int","doc":"the number of bytes in this sequence"}}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.byteAt(int)","href":"org/graalvm/polyglot/io/ByteSequence.html#byteAt(int)","name":"byteAt","kind":"method","signature":"byte byteAt(int index)","summary":"Returns the byte value at the specified index.","details":"An index ranges from zero to length() - 1. The first char value of the sequence is at index zero, the next at index one, and so on, as for array indexing.","params":[{"name":"index","type":"int","doc":"the index of the byte value to be returned"}],"returns":{"type":"byte","doc":"the specified byte value"},"throws":[{"type":"IndexOutOfBoundsException","doc":"if the index argument is negative or not less than length()"}]}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.subSequence(int, int)","href":"org/graalvm/polyglot/io/ByteSequence.html#subSequence(int,int)","name":"subSequence","kind":"method","signature":"default ByteSequence subSequence(int startIndex, int endIndex)","summary":"Returns a ByteSequence that is a subsequence of this sequence.","details":"The subsequence starts with the byte value at the specified index and ends with the byte value at index end - 1. The length (in bytes) of the returned sequence is end - start, so if start == end then an empty sequence is returned.","params":[{"name":"startIndex","type":"int","doc":"the start index, inclusive"},{"name":"endIndex","type":"int","doc":"the end index, exclusive"}],"returns":{"type":"ByteSequence","doc":"the specified subsequence"},"throws":[{"type":"IndexOutOfBoundsException","doc":"if start or end are negative, if end is greater than length(), or if start is greater than end"}]}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.toByteArray()","href":"org/graalvm/polyglot/io/ByteSequence.html#toByteArray()","name":"toByteArray","kind":"method","signature":"default byte[] toByteArray()","summary":"Returns a byte[] containing the bytes in this sequence in the same order as this sequence.","details":"The length of the byte array will be the length of this sequence. Creates a new byte array with every invocation.","returns":{"type":"byte[]"}}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.bytes()","href":"org/graalvm/polyglot/io/ByteSequence.html#bytes()","name":"bytes","kind":"method","signature":"default IntStream bytes()","summary":"Returns a stream of int zero-extending the byte values from this sequence.","returns":{"type":"IntStream","doc":"an IntStream of byte values from this sequence"}}
{"symbol":"org.graalvm.polyglot.io.ByteSequence.create(byte[])","href":"org/graalvm/polyglot/io/ByteSequence.html#create(byte[])","name":"create","kind":"method","signature":"static ByteSequence create(byte[] buffer)","summary":"Creates a ByteSequence from an existing byte[].","details":"The byte array is not defensively copied, therefore the given bytes must not mutate to ensure the contract of an immutable ByteSequence.","params":[{"name":"buffer","type":"byte[]"}],"returns":{"type":"ByteSequence"}}
{"symbol":"org.graalvm.polyglot.io.FileChannel","href":"org/graalvm/polyglot/io/FileChannel.html","name":"FileChannel","kind":"interface","signature":"public interface FileChannel extends SeekableByteChannel","summary":"A seekable byte channel that supports file locking and, on JDK 22 and later, mapping regions of its file into memory.","details":"File system implementations can support locking and memory mapping by returning either a java.nio.channels.FileChannel or a FileChannel from FileSystem.newByteChannel(Path, Set, FileAttribute[])."}
{"symbol":"org.graalvm.polyglot.io.FileChannel.position(long)","href":"org/graalvm/polyglot/io/FileChannel.html#position(long)","name":"position","kind":"method","signature":"FileChannel position(long newPosition) throws IOException","params":[{"name":"newPosition","type":"long"}],"returns":{"type":"FileChannel"},"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.truncate(long)","href":"org/graalvm/polyglot/io/FileChannel.html#truncate(long)","name":"truncate","kind":"method","signature":"FileChannel truncate(long size) throws IOException","params":[{"name":"size","type":"long"}],"returns":{"type":"FileChannel"},"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.lock()","href":"org/graalvm/polyglot/io/FileChannel.html#lock()","name":"lock","kind":"method","signature":"default FileLock lock() throws IOException","summary":"Acquires an exclusive lock on this channel's file, blocking until the lock is acquired, this channel is closed, or the invoking thread is interrupted.","details":"This method is equivalent to invoking lock(0, Long.MAX_VALUE, false).","returns":{"type":"FileLock","doc":"a newly acquired exclusive lock"},"throws":[{"type":"ClosedChannelException","doc":"if this channel is closed"},{"type":"AsynchronousCloseException","doc":"if another thread closes this channel while the invoking thread is blocked"},{"type":"FileLockInterruptionException","doc":"if the invoking thread is interrupted while blocked"},{"type":"OverlappingFileLockException","doc":"if an overlapping lock is already held by this Java virtual machine, or another thread is waiting for an overlapping lock"},{"type":"NonWritableChannelException","doc":"if this channel was not opened for writing"},{"type":"UnsupportedOperationException","doc":"if this channel does not support file locking"},{"type":"IOException","doc":"if another I/O error occurs"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.lock(long, long, boolean)","href":"org/graalvm/polyglot/io/FileChannel.html#lock(long,long,boolean)","name":"lock","kind":"method","signature":"default FileLock lock(long position, long size, boolean shared) throws IOException","summary":"Acquires a lock on a region of this channel's file, blocking until the lock is acquired, this channel is closed, or the invoking thread is interrupted.","details":"The region need not be contained within or overlap the current file contents. A requested shared lock may be converted to an exclusive lock when shared locks are not supported by the operating system.","params":[{"name":"position","type":"long","doc":"the position of the first byte in the region; must be non-negative"},{"name":"size","type":"long","doc":"the size of the region; must be non-negative and position + size must not overflow"},{"name":"shared","type":"boolean","doc":"true to request a shared lock, or false to request an exclusive lock"}],"returns":{"type":"FileLock","doc":"the newly acquired lock"},"throws":[{"type":"IllegalArgumentException","doc":"if position or size is negative or their sum overflows"},{"type":"ClosedChannelException","doc":"if this channel is closed"},{"type":"AsynchronousCloseException","doc":"if another thread closes this channel while the invoking thread is blocked"},{"type":"FileLockInterruptionException","doc":"if the invoking thread is interrupted while blocked"},{"type":"OverlappingFileLockException","doc":"if an overlapping lock is already held by this Java virtual machine, or another thread is waiting for an overlapping lock"},{"type":"NonReadableChannelException","doc":"if a shared lock is requested and this channel was not opened for reading"},{"type":"NonWritableChannelException","doc":"if an exclusive lock is requested and this channel was not opened for writing"},{"type":"UnsupportedOperationException","doc":"if this channel does not support file locking"},{"type":"IOException","doc":"if another I/O error occurs"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.tryLock()","href":"org/graalvm/polyglot/io/FileChannel.html#tryLock()","name":"tryLock","kind":"method","signature":"default FileLock tryLock() throws IOException","summary":"Attempts to acquire an exclusive lock on this channel's file without blocking.","details":"This method is equivalent to invoking tryLock(0, Long.MAX_VALUE, false).","returns":{"type":"FileLock","doc":"a newly acquired exclusive lock, or null if another program holds an overlapping lock"},"throws":[{"type":"ClosedChannelException","doc":"if this channel is closed"},{"type":"OverlappingFileLockException","doc":"if an overlapping lock is already held by this Java virtual machine, or another thread is waiting for an overlapping lock"},{"type":"NonWritableChannelException","doc":"if this channel was not opened for writing"},{"type":"UnsupportedOperationException","doc":"if this channel does not support file locking"},{"type":"IOException","doc":"if another I/O error occurs"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.tryLock(long, long, boolean)","href":"org/graalvm/polyglot/io/FileChannel.html#tryLock(long,long,boolean)","name":"tryLock","kind":"method","signature":"default FileLock tryLock(long position, long size, boolean shared) throws IOException","summary":"Attempts to acquire a lock on a region of this channel's file without blocking.","details":"The region need not be contained within or overlap the current file contents. A requested shared lock may be converted to an exclusive lock when shared locks are not supported by the operating system.","params":[{"name":"position","type":"long","doc":"the position of the first byte in the region; must be non-negative"},{"name":"size","type":"long","doc":"the size of the region; must be non-negative and position + size must not overflow"},{"name":"shared","type":"boolean","doc":"true to request a shared lock, or false to request an exclusive lock"}],"returns":{"type":"FileLock","doc":"the newly acquired lock, or null if another program holds an overlapping lock"},"throws":[{"type":"IllegalArgumentException","doc":"if position or size is negative or their sum overflows"},{"type":"ClosedChannelException","doc":"if this channel is closed"},{"type":"OverlappingFileLockException","doc":"if an overlapping lock is already held by this Java virtual machine, or another thread is waiting for an overlapping lock"},{"type":"NonReadableChannelException","doc":"if a shared lock is requested and this channel was not opened for reading"},{"type":"NonWritableChannelException","doc":"if an exclusive lock is requested and this channel was not opened for writing"},{"type":"UnsupportedOperationException","doc":"if this channel does not support file locking"},{"type":"IOException","doc":"if another I/O error occurs"}]}
{"symbol":"org.graalvm.polyglot.io.FileChannel.map(FileChannel.MapMode, long, long, Object)","href":"org/graalvm/polyglot/io/FileChannel.html#map(java.nio.channels.FileChannel.MapMode,long,long,java.lang.Object)","name":"map","kind":"method","signature":"default Object map(FileChannel.MapMode mode, long offset, long size, Object arena) throws IOException","summary":"Maps a region of this channel's file into a memory segment associated with the given arena.","detailsOmitted":true,"params":[{"name":"mode","type":"FileChannel.MapMode","doc":"the mode in which the file region is mapped"},{"name":"offset","type":"long","doc":"the offset within the file at which the mapped region starts; must be non-negative"},{"name":"size","type":"long","doc":"the size of the mapped region, in bytes; must be non-negative"},{"name":"arena","type":"Object","doc":"the java.lang.foreign.Arena associated with the returned segment"}],"returns":{"type":"Object","doc":"a java.lang.foreign.MemorySegment whose lifetime is controlled by arena"},"throws":[{"type":"IOException","doc":"if an I/O error occurs"},{"type":"NonReadableChannelException","doc":"if mode requires read access and this channel was not opened for reading"},{"type":"NonWritableChannelException","doc":"if mode requires write access and this channel was not opened for writing"},{"type":"UnsupportedOperationException","doc":"if this channel does not support memory mapping or the requested mode"},{"type":"IllegalArgumentException","doc":"if offset or size is negative or their sum overflows the range of long"},{"type":"IllegalStateException","doc":"if arena has already been closed"},{"type":"ClassCastException","doc":"if arena is not a java.lang.foreign.Arena"},{"type":"RuntimeException","doc":"if arena is confined and this method is called from a thread other than the arena's owner thread; on JDK 22 and later, the concrete exception is java.lang.WrongThreadException"},{"type":"NullPointerException","doc":"if mode or arena is null"},{"type":"SecurityException","doc":"if the FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileLock","href":"org/graalvm/polyglot/io/FileLock.html","name":"FileLock","kind":"interface","signature":"public interface FileLock extends AutoCloseable","summary":"Represents a lock on a region of a file acquired through a FileChannel.","details":"A lock remains valid until it is released by close() or its associated channel is closed, whichever occurs first. File locks are held on behalf of the entire Java virtual machine and are not suitable for coordinating access between threads in the same virtual machine."}
{"symbol":"org.graalvm.polyglot.io.FileLock.acquiredBy()","href":"org/graalvm/polyglot/io/FileLock.html#acquiredBy()","name":"acquiredBy","kind":"method","signature":"FileChannel acquiredBy()","summary":"Returns the channel through which this lock was acquired.","returns":{"type":"FileChannel","doc":"the channel through which this lock was acquired"}}
{"symbol":"org.graalvm.polyglot.io.FileLock.position()","href":"org/graalvm/polyglot/io/FileLock.html#position()","name":"position","kind":"method","signature":"long position()","summary":"Returns the position of the first byte in the locked region.","details":"The position may exceed the current size of the file.","returns":{"type":"long","doc":"the position of the first byte in the locked region"}}
{"symbol":"org.graalvm.polyglot.io.FileLock.size()","href":"org/graalvm/polyglot/io/FileLock.html#size()","name":"size","kind":"method","signature":"long size()","summary":"Returns the size of the locked region in bytes.","details":"The locked region need not be contained within or overlap the current file contents.","returns":{"type":"long","doc":"the size of the locked region in bytes"}}
{"symbol":"org.graalvm.polyglot.io.FileLock.isShared()","href":"org/graalvm/polyglot/io/FileLock.html#isShared()","name":"isShared","kind":"method","signature":"boolean isShared()","summary":"Returns whether this lock is shared.","details":"A request for a shared lock may be converted to an exclusive lock when shared locks are not supported by the operating system.","returns":{"type":"boolean","doc":"true if this lock is shared, or false if it is exclusive"}}
{"symbol":"org.graalvm.polyglot.io.FileLock.isValid()","href":"org/graalvm/polyglot/io/FileLock.html#isValid()","name":"isValid","kind":"method","signature":"boolean isValid()","summary":"Returns whether this lock is valid.","returns":{"type":"boolean","doc":"true if this lock is valid"}}
{"symbol":"org.graalvm.polyglot.io.FileLock.close()","href":"org/graalvm/polyglot/io/FileLock.html#close()","name":"close","kind":"method","signature":"void close() throws IOException","summary":"Releases this lock.","details":"If the lock is already invalid, invoking this method has no effect.","throws":[{"type":"ClosedChannelException","doc":"if the channel used to acquire this lock is closed"},{"type":"IOException","doc":"if an I/O error occurs"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem","href":"org/graalvm/polyglot/io/FileSystem.html","name":"FileSystem","kind":"interface","signature":"public interface FileSystem","summary":"Service-provider for Truffle files."}
{"symbol":"org.graalvm.polyglot.io.FileSystem.parsePath(URI)","href":"org/graalvm/polyglot/io/FileSystem.html#parsePath(java.net.URI)","name":"parsePath","kind":"method","signature":"Path parsePath(URI uri)","summary":"Parses a path from an URI.","params":[{"name":"uri","type":"URI","doc":"the URI to be converted to Path"}],"returns":{"type":"Path","doc":"the Path representing given URI"},"throws":[{"type":"UnsupportedOperationException","doc":"when URI scheme is not supported"},{"type":"IllegalArgumentException","doc":"if preconditions on the uri do not hold. The format of the URI is FileSystem specific."}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.parsePath(String)","href":"org/graalvm/polyglot/io/FileSystem.html#parsePath(java.lang.String)","name":"parsePath","kind":"method","signature":"Path parsePath(String path)","summary":"Parses a path from a String.","details":"This method is called only on the FileSystem with file scheme.","params":[{"name":"path","type":"String","doc":"the string path to be converted to Path"}],"returns":{"type":"Path","doc":"the Path"},"throws":[{"type":"UnsupportedOperationException","doc":"when the FileSystem supports only URI"},{"type":"IllegalArgumentException","doc":"if the path string cannot be converted to a Path"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.checkAccess(Path, Set, LinkOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#checkAccess(java.nio.file.Path,java.util.Set,java.nio.file.LinkOption...)","name":"checkAccess","kind":"method","signature":"void checkAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions) throws IOException","summary":"Checks existence and accessibility of a file.","params":[{"name":"path","type":"Path","doc":"the path to the file to check"},{"name":"modes","type":"Set<? extends AccessMode>","doc":"the access modes to check, possibly empty to check existence only."},{"name":"linkOptions","type":"LinkOption...","doc":"options determining how the symbolic links should be handled"}],"throws":[{"type":"NoSuchFileException","doc":"if the file denoted by the path does not exist"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.createDirectory(Path, FileAttribute...)","href":"org/graalvm/polyglot/io/FileSystem.html#createDirectory(java.nio.file.Path,java.nio.file.attribute.FileAttribute...)","name":"createDirectory","kind":"method","signature":"void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException","summary":"Creates a directory.","params":[{"name":"dir","type":"Path","doc":"the directory to create"},{"name":"attrs","type":"FileAttribute<?>...","doc":"the optional attributes to set atomically when creating the directory"}],"throws":[{"type":"FileAlreadyExistsException","doc":"if a file on given path already exists"},{"type":"IOException","doc":"in case of IO error"},{"type":"UnsupportedOperationException","doc":"if the attributes contain an attribute which cannot be set atomically"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.delete(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#delete(java.nio.file.Path)","name":"delete","kind":"method","signature":"void delete(Path path) throws IOException","summary":"Deletes a file.","params":[{"name":"path","type":"Path","doc":"the path to the file to delete"}],"throws":[{"type":"NoSuchFileException","doc":"if a file on given path does not exist"},{"type":"DirectoryNotEmptyException","doc":"if the path denotes a non empty directory"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newByteChannel(Path, Set, FileAttribute...)","href":"org/graalvm/polyglot/io/FileSystem.html#newByteChannel(java.nio.file.Path,java.util.Set,java.nio.file.attribute.FileAttribute...)","name":"newByteChannel","kind":"method","signature":"SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException","summary":"Opens or creates a file returning a SeekableByteChannel to access the file content.","details":"To support file locking and, on JDK 22 and later, memory mapping, an implementation should return either a java.nio.channels.FileChannel or a FileChannel.","params":[{"name":"path","type":"Path","doc":"the path to the file to open"},{"name":"options","type":"Set<? extends OpenOption>","doc":"the options specifying how the file should be opened"},{"name":"attrs","type":"FileAttribute<?>...","doc":"the optional attributes to set atomically when creating the new file"}],"returns":{"type":"SeekableByteChannel","doc":"the created SeekableByteChannel"},"throws":[{"type":"FileAlreadyExistsException","doc":"if StandardOpenOption.CREATE_NEW option is set and a file already exists on given path"},{"type":"IOException","doc":"in case of IO error"},{"type":"UnsupportedOperationException","doc":"if the attributes contain an attribute which cannot be set atomically"},{"type":"IllegalArgumentException","doc":"in case of invalid options combination"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newDirectoryStream(Path, DirectoryStream.Filter)","href":"org/graalvm/polyglot/io/FileSystem.html#newDirectoryStream(java.nio.file.Path,java.nio.file.DirectoryStream.Filter)","name":"newDirectoryStream","kind":"method","signature":"DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException","summary":"Returns directory entries.","params":[{"name":"dir","type":"Path","doc":"the path to the directory to iterate entries for"},{"name":"filter","type":"DirectoryStream.Filter<? super Path>","doc":"the filter"}],"returns":{"type":"DirectoryStream<Path>","doc":"the new DirectoryStream"},"throws":[{"type":"NotDirectoryException","doc":"when given path does not denote a directory"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.toAbsolutePath(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#toAbsolutePath(java.nio.file.Path)","name":"toAbsolutePath","kind":"method","signature":"Path toAbsolutePath(Path path)","summary":"Resolves given path to an absolute path.","params":[{"name":"path","type":"Path","doc":"the path to resolve, may be a non normalized path"}],"returns":{"type":"Path","doc":"an absolute Path"},"throws":[{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.toRealPath(Path, LinkOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#toRealPath(java.nio.file.Path,java.nio.file.LinkOption...)","name":"toRealPath","kind":"method","signature":"Path toRealPath(Path path, LinkOption... linkOptions) throws IOException","summary":"Returns the real (canonical) path of an existing file.","params":[{"name":"path","type":"Path","doc":"the path to resolve, may be a non normalized path"},{"name":"linkOptions","type":"LinkOption...","doc":"options determining how the symbolic links should be handled"}],"returns":{"type":"Path","doc":"an absolute canonical path"},"throws":[{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.readAttributes(Path, String, LinkOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#readAttributes(java.nio.file.Path,java.lang.String,java.nio.file.LinkOption...)","name":"readAttributes","kind":"method","signature":"Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException","summary":"Reads a file's attributes as a bulk operation.","params":[{"name":"path","type":"Path","doc":"the path to file to read attributes for"},{"name":"attributes","type":"String","doc":"the attributes to read. The attributes parameter has the form: [view-name:]attribute-list. The optional view-name corresponds to FileAttributeView.name() and determines the set of attributes, the default value is \"basic\". The attribute-list is a comma separated list of attributes. If the attribute-list contains '*' then all the attributes from given view are read."},{"name":"options","type":"LinkOption...","doc":"the options determining how the symbolic links should be handled"}],"returns":{"type":"Map<String, Object>","doc":"the Map containing the file attributes. The map's keys are attribute names, map's values are the attribute values. The map may contain a subset of required attributes in case when the FileSystem does not support some of the required attributes."},"throws":[{"type":"UnsupportedOperationException","doc":"if the attribute view is not supported. At least the \"basic\" attribute view has to be supported by the file system."},{"type":"IllegalArgumentException","doc":"is the attribute-list is empty or contains an unknown attribute"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.setAttribute(Path, String, Object, LinkOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#setAttribute(java.nio.file.Path,java.lang.String,java.lang.Object,java.nio.file.LinkOption...)","name":"setAttribute","kind":"method","signature":"default void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException","summary":"Sets a file's attribute.","params":[{"name":"path","type":"Path","doc":"the path to file to set an attribute to"},{"name":"attribute","type":"String","doc":"the attribute to set. The attribute parameter has the form: [view-name:]attribute-name. The optional view-name corresponds to FileAttributeView.name() and determines the set of attributes, the default value is \"basic\". The attribute-name is a name of an attribute."},{"name":"value","type":"Object","doc":"the attribute value"},{"name":"options","type":"LinkOption...","doc":"the options determining how the symbolic links should be handled"}],"throws":[{"type":"ClassCastException","doc":"if value is not of the expected type or value is a Collection containing element of a non expected type"},{"type":"UnsupportedOperationException","doc":"if the attribute view is not supported."},{"type":"IllegalArgumentException","doc":"is the attribute-name is an unknown attribute or value has an inappropriate value"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.copy(Path, Path, CopyOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#copy(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)","name":"copy","kind":"method","signature":"default void copy(Path source, Path target, CopyOption... options) throws IOException","summary":"Copies source file to target file.","params":[{"name":"source","type":"Path","doc":"the path to file to copy"},{"name":"target","type":"Path","doc":"the path to the target file"},{"name":"options","type":"CopyOption...","doc":"the options specifying how the copy should be performed, see StandardCopyOption"}],"throws":[{"type":"UnsupportedOperationException","doc":"if options contains unsupported option"},{"type":"FileAlreadyExistsException","doc":"if the target path already exists and the options don't contain StandardCopyOption.REPLACE_EXISTING option"},{"type":"DirectoryNotEmptyException","doc":"if the options contain StandardCopyOption.REPLACE_EXISTING but the target is a non empty directory"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.move(Path, Path, CopyOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#move(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)","name":"move","kind":"method","signature":"default void move(Path source, Path target, CopyOption... options) throws IOException","summary":"Moves (renames) source file to target file.","params":[{"name":"source","type":"Path","doc":"the path to file to move"},{"name":"target","type":"Path","doc":"the path to the target file"},{"name":"options","type":"CopyOption...","doc":"the options specifying how the move should be performed, see StandardCopyOption"}],"throws":[{"type":"UnsupportedOperationException","doc":"if options contains unsupported option"},{"type":"FileAlreadyExistsException","doc":"if the target path already exists and the options don't contain StandardCopyOption.REPLACE_EXISTING option"},{"type":"DirectoryNotEmptyException","doc":"if the options contain StandardCopyOption.REPLACE_EXISTING but the target is a non empty directory"},{"type":"AtomicMoveNotSupportedException","doc":"if the options contain StandardCopyOption.ATOMIC_MOVE but file cannot be moved atomically"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.createLink(Path, Path)","href":"org/graalvm/polyglot/io/FileSystem.html#createLink(java.nio.file.Path,java.nio.file.Path)","name":"createLink","kind":"method","signature":"default void createLink(Path link, Path existing) throws IOException","summary":"Creates a new link for an existing file.","params":[{"name":"link","type":"Path","doc":"the path to link to create"},{"name":"existing","type":"Path","doc":"the path to existing file"}],"throws":[{"type":"UnsupportedOperationException","doc":"if links are not supported by file system"},{"type":"FileAlreadyExistsException","doc":"if a file on given link path already exists"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.createSymbolicLink(Path, Path, FileAttribute...)","href":"org/graalvm/polyglot/io/FileSystem.html#createSymbolicLink(java.nio.file.Path,java.nio.file.Path,java.nio.file.attribute.FileAttribute...)","name":"createSymbolicLink","kind":"method","signature":"default void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws IOException","summary":"Creates a new symbolic link.","params":[{"name":"link","type":"Path","doc":"the path to symbolic link to create"},{"name":"target","type":"Path","doc":"the target path of the symbolic link"},{"name":"attrs","type":"FileAttribute<?>...","doc":"the optional attributes to set atomically when creating the new symbolic link"}],"throws":[{"type":"UnsupportedOperationException","doc":"if symbolic links are not supported by file system"},{"type":"FileAlreadyExistsException","doc":"if a file on given link path already exists"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.readSymbolicLink(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#readSymbolicLink(java.nio.file.Path)","name":"readSymbolicLink","kind":"method","signature":"default Path readSymbolicLink(Path link) throws IOException","summary":"Reads the target of the symbolic link.","params":[{"name":"link","type":"Path","doc":"the path to symbolic link to read"}],"returns":{"type":"Path","doc":"the Path representing the symbolic link target"},"throws":[{"type":"UnsupportedOperationException","doc":"if symbolic links are not supported by file system"},{"type":"NotLinkException","doc":"if the link does not denote a symbolic link"},{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.setCurrentWorkingDirectory(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#setCurrentWorkingDirectory(java.nio.file.Path)","name":"setCurrentWorkingDirectory","kind":"method","signature":"default void setCurrentWorkingDirectory(Path currentWorkingDirectory)","summary":"Sets the current working directory.","details":"The current working directory is used to resolve non absolute paths in FileSystem operations.","params":[{"name":"currentWorkingDirectory","type":"Path","doc":"the new current working directory"}],"throws":[{"type":"UnsupportedOperationException","doc":"if setting of the current working directory is not supported"},{"type":"IllegalArgumentException","doc":"if the currentWorkingDirectory is not a valid current working directory"},{"type":"SecurityException","doc":"if currentWorkingDirectory is not readable"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getSeparator()","href":"org/graalvm/polyglot/io/FileSystem.html#getSeparator()","name":"getSeparator","kind":"method","signature":"default String getSeparator()","summary":"Returns the name separator used to separate names in a path string.","details":"The separator is used when creating path strings by invoking the toString() method.","returns":{"type":"String","doc":"the name separator"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getPathSeparator()","href":"org/graalvm/polyglot/io/FileSystem.html#getPathSeparator()","name":"getPathSeparator","kind":"method","signature":"default String getPathSeparator()","summary":"Returns the path separator used to separate filenames in a path list.","details":"On UNIX the path separator is ':'. On Windows it's ';'.","returns":{"type":"String","doc":"the path separator"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getMimeType(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getMimeType(java.nio.file.Path)","name":"getMimeType","kind":"method","signature":"default String getMimeType(Path path)","summary":"Returns a MIME type for given path.","details":"An optional operation for filesystem implementations which can provide MIME types in an efficient way.","params":[{"name":"path","type":"Path","doc":"the file to find a MIME type for"}],"returns":{"type":"String","doc":"the MIME type or null if the MIME type is not recognized or the filesystem does not support MIME type detection"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getEncoding(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getEncoding(java.nio.file.Path)","name":"getEncoding","kind":"method","signature":"default Charset getEncoding(Path path)","summary":"Returns an file encoding for given path.","details":"An optional operation for filesystem implementations which can provide file encodings in an efficient way.","params":[{"name":"path","type":"Path","doc":"the file to find an file encoding for"}],"returns":{"type":"Charset","doc":"the file encoding or null if the file encoding is not detected or the filesystem does not support file encoding detection"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getTempDirectory()","href":"org/graalvm/polyglot/io/FileSystem.html#getTempDirectory()","name":"getTempDirectory","kind":"method","signature":"default Path getTempDirectory()","summary":"Returns the default temporary directory.","returns":{"type":"Path"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.isSameFile(Path, Path, LinkOption...)","href":"org/graalvm/polyglot/io/FileSystem.html#isSameFile(java.nio.file.Path,java.nio.file.Path,java.nio.file.LinkOption...)","name":"isSameFile","kind":"method","signature":"default boolean isSameFile(Path path1, Path path2, LinkOption... options) throws IOException","summary":"Tests if the given paths refer to the same physical file.","details":"The default implementation firstly converts the paths into absolute paths. If the absolute paths are equal it returns true without checking if the file exists. Otherwise, this method converts the paths into canonical representations and tests the canonical paths for equality. The FileSystem may re-implement the method with a more efficient test. When re-implemented the method must have the same security privileges as the toAbsolutePath and toRealPath.","params":[{"name":"path1","type":"Path","doc":"the path to the file"},{"name":"path2","type":"Path","doc":"the other path"},{"name":"options","type":"LinkOption...","doc":"the options determining how the symbolic links should be handled"}],"returns":{"type":"boolean","doc":"true if the given paths refer to the same physical file"},"throws":[{"type":"IOException","doc":"in case of IO error"},{"type":"SecurityException","doc":"if this FileSystem denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getFileStoreTotalSpace(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getFileStoreTotalSpace(java.nio.file.Path)","name":"getFileStoreTotalSpace","kind":"method","signature":"default long getFileStoreTotalSpace(Path path) throws IOException","summary":"Returns the size, in bytes, of the file store that contains the given path.","details":"If the file store's size exceeds Long.MAX_VALUE, Long.MAX_VALUE is returned.","params":[{"name":"path","type":"Path","doc":"the path whose file store size is to be determined"}],"returns":{"type":"long","doc":"the size of the file store in bytes"},"throws":[{"type":"UnsupportedOperationException","doc":"if the file system does not support retrieving file store information"},{"type":"IOException","doc":"if an I/O error occurs while accessing the file store"},{"type":"SecurityException","doc":"if the FileSystem implementation denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getFileStoreUnallocatedSpace(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getFileStoreUnallocatedSpace(java.nio.file.Path)","name":"getFileStoreUnallocatedSpace","kind":"method","signature":"default long getFileStoreUnallocatedSpace(Path path) throws IOException","summary":"Returns the number of unallocated bytes in the file store that contains the given path.","details":"The returned value represents the raw free space on the storage device, regardless of access permissions or user quotas. If the number of unallocated bytes exceeds Long.MAX_VALUE, Long.MAX_VALUE is returned. Note that the value may be imprecise, as it can change at any time due to external I/O operations, including those performed outside this virtual machine.","params":[{"name":"path","type":"Path","doc":"the path whose file store is to be queried"}],"returns":{"type":"long","doc":"the number of unallocated bytes"},"throws":[{"type":"UnsupportedOperationException","doc":"if the file system does not support retrieving file store information"},{"type":"IOException","doc":"if an I/O error occurs while accessing the file store"},{"type":"SecurityException","doc":"if the FileSystem implementation denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getFileStoreUsableSpace(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getFileStoreUsableSpace(java.nio.file.Path)","name":"getFileStoreUsableSpace","kind":"method","signature":"default long getFileStoreUsableSpace(Path path) throws IOException","summary":"Returns the number of bytes available to this Java virtual machine on the file store that contains the given path.","details":"Unlike getFileStoreUnallocatedSpace(Path), this method accounts for operating system level restrictions, user quotas, and file system permissions, and therefore may return a smaller value. If the available space exceeds Long.MAX_VALUE, Long.MAX_VALUE is returned. Note that the returned value may be imprecise, as it can change at any time due to external I/O activity, including operations performed outside this virtual machine.","params":[{"name":"path","type":"Path","doc":"the path whose file store is to be queried"}],"returns":{"type":"long","doc":"the number of usable bytes available to this Java virtual machine"},"throws":[{"type":"UnsupportedOperationException","doc":"if the file system does not support retrieving file store information"},{"type":"IOException","doc":"if an I/O error occurs while accessing the file store"},{"type":"SecurityException","doc":"if the FileSystem implementation denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.getFileStoreBlockSize(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#getFileStoreBlockSize(java.nio.file.Path)","name":"getFileStoreBlockSize","kind":"method","signature":"default long getFileStoreBlockSize(Path path) throws IOException","summary":"Returns the number of bytes per block in the file store that contains the given path.","params":[{"name":"path","type":"Path","doc":"the path whose file store is to be queried"}],"returns":{"type":"long","doc":"the block size"},"throws":[{"type":"UnsupportedOperationException","doc":"if the file system does not support retrieving file store information"},{"type":"IOException","doc":"if an I/O error occurs while accessing the file store"},{"type":"SecurityException","doc":"if the FileSystem implementation denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.isFileStoreReadOnly(Path)","href":"org/graalvm/polyglot/io/FileSystem.html#isFileStoreReadOnly(java.nio.file.Path)","name":"isFileStoreReadOnly","kind":"method","signature":"default boolean isFileStoreReadOnly(Path path) throws IOException","summary":"Determines whether the file store containing the given path is read-only.","details":"Note that even if the file store is not read-only, individual write operations may still be denied due to restrictions imposed by the FileSystem implementation, operating system level policies, user quotas, or file system permissions.","params":[{"name":"path","type":"Path","doc":"the path whose file store is to be queried"}],"returns":{"type":"boolean"},"throws":[{"type":"UnsupportedOperationException","doc":"if the file system does not support retrieving file store information"},{"type":"IOException","doc":"if an I/O error occurs while accessing the file store"},{"type":"SecurityException","doc":"if the FileSystem implementation denied the operation"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newDefaultFileSystem()","href":"org/graalvm/polyglot/io/FileSystem.html#newDefaultFileSystem()","name":"newDefaultFileSystem","kind":"method","signature":"static FileSystem newDefaultFileSystem()","summary":"Creates a FileSystem implementation based on the host Java NIO.","detailsOmitted":true,"returns":{"type":"FileSystem"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.allowLanguageHomeAccess(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.html#allowLanguageHomeAccess(org.graalvm.polyglot.io.FileSystem)","name":"allowLanguageHomeAccess","kind":"method","signature":"static FileSystem allowLanguageHomeAccess(FileSystem fileSystem)","summary":"Decorates the given fileSystem by an implementation that forwards access to files in the language home to the default file system.","details":"The method is intended to be used by custom filesystem implementations with non default storage to allow guest languages to access files in the languages homes. As the returned filesystem uses a default file system to access files in the language home, the fileSystem has to use the same Path type, separator and path separator as the default filesystem.","deprecated":{"doc":"Use allowInternalResources(FileSystem) instead to expose language homes and other internal resources through a read-only view."},"params":[{"name":"fileSystem","type":"FileSystem"}],"returns":{"type":"FileSystem"},"throws":[{"type":"IllegalArgumentException","doc":"when the fileSystem does not use the same Path type or has a different separator or path separator as the default file system."}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.allowInternalResourceAccess(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.html#allowInternalResourceAccess(org.graalvm.polyglot.io.FileSystem)","name":"allowInternalResourceAccess","kind":"method","signature":"static FileSystem allowInternalResourceAccess(FileSystem fileSystem)","summary":"Decorates the given fileSystem by an implementation that forwards access to the internal resources, including language homes, to the default file system.","detailsOmitted":true,"deprecated":{"since":"25.1","doc":"Use allowInternalResources(FileSystem) instead when migrating code that only reads internal resources. The replacement exposes internal resources and language homes through a read-only view. Code that needs mutable files based on internal resources should copy the resources to an application-controlled location, for example with Engine.copyResources(Path, String...), and expose that location through its configured fileSystem."},"params":[{"name":"fileSystem","type":"FileSystem","doc":"the file system used to access files that are not internal resources"}],"returns":{"type":"FileSystem"},"throws":[{"type":"IllegalArgumentException","doc":"when the fileSystem does not use the same Path type or has a different separator or path separator as the default file system."}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.allowInternalResources(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.html#allowInternalResources(org.graalvm.polyglot.io.FileSystem)","name":"allowInternalResources","kind":"method","signature":"static FileSystem allowInternalResources(FileSystem fileSystem)","summary":"Decorates the given fileSystem by an implementation that forwards access to the internal resources, including language homes, to the default file system.","detailsOmitted":true,"params":[{"name":"fileSystem","type":"FileSystem","doc":"the file system used to access files that are not internal resources"}],"returns":{"type":"FileSystem"},"throws":[{"type":"IllegalArgumentException","doc":"when the fileSystem does not use the same Path type or has a different separator or path separator as the default file system."}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newReadOnlyFileSystem(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.html#newReadOnlyFileSystem(org.graalvm.polyglot.io.FileSystem)","name":"newReadOnlyFileSystem","kind":"method","signature":"static FileSystem newReadOnlyFileSystem(FileSystem fileSystem)","summary":"Decorates the given fileSystem by an implementation that makes the passed fileSystem read-only by forbidding all write operations.","details":"This method can be used to make an existing file system, such as the default filesystem, read-only. Making the default file system read-only still exposes host files and does not make it suitable for a sandbox policy that prohibits host file access.","params":[{"name":"fileSystem","type":"FileSystem"}],"returns":{"type":"FileSystem"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newFileSystem(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.html#newFileSystem(java.nio.file.FileSystem)","name":"newFileSystem","kind":"method","signature":"static FileSystem newFileSystem(FileSystem fileSystem)","summary":"Creates a FileSystem implementation based on the given Java NIO filesystem.","detailsOmitted":true,"params":[{"name":"fileSystem","type":"FileSystem"}],"returns":{"type":"FileSystem"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newDenyIOFileSystem()","href":"org/graalvm/polyglot/io/FileSystem.html#newDenyIOFileSystem()","name":"newDenyIOFileSystem","kind":"method","signature":"static FileSystem newDenyIOFileSystem()","summary":"Creates a FileSystem that denies all file operations except for path parsing.","details":"Any attempt to perform file operations such as reading, writing, or deletion will result in a SecurityException being thrown. Typically, this file system does not need to be explicitly installed to restrict access to host file systems. Instead, use Context.newBuilder().allowIO(IOAccess.NONE). This method is intended primarily for use as a fallback file system in a composite file system.","returns":{"type":"FileSystem"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.newCompositeFileSystem(FileSystem, FileSystem.Selector...)","href":"org/graalvm/polyglot/io/FileSystem.html#newCompositeFileSystem(org.graalvm.polyglot.io.FileSystem,org.graalvm.polyglot.io.FileSystem.Selector...)","name":"newCompositeFileSystem","kind":"method","signature":"static FileSystem newCompositeFileSystem(FileSystem fallbackFileSystem, FileSystem.Selector... delegates)","summary":"Creates a composite FileSystem that delegates operations to the provided delegates.","detailsOmitted":true,"params":[{"name":"fallbackFileSystem","type":"FileSystem"},{"name":"delegates","type":"FileSystem.Selector..."}],"returns":{"type":"FileSystem"},"throws":[{"type":"IllegalArgumentException","doc":"if the file systems do not use the same Path type, separator, or path separator"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.Selector","href":"org/graalvm/polyglot/io/FileSystem.Selector.html","name":"FileSystem.Selector","kind":"class","signature":"public abstract class FileSystem.Selector implements Predicate<Path>","summary":"A selector for determining which FileSystem should handle operations on a given Path.","details":"This class encapsulates a FileSystem and defines a condition for selecting it."}
{"symbol":"org.graalvm.polyglot.io.FileSystem.Selector(FileSystem)","href":"org/graalvm/polyglot/io/FileSystem.Selector.html#%3Cinit%3E(org.graalvm.polyglot.io.FileSystem)","name":"Selector","kind":"constructor","signature":"protected Selector(FileSystem fileSystem)","summary":"Creates a Selector for the specified FileSystem.","params":[{"name":"fileSystem","type":"FileSystem"}]}
{"symbol":"org.graalvm.polyglot.io.FileSystem.Selector.getFileSystem()","href":"org/graalvm/polyglot/io/FileSystem.Selector.html#getFileSystem()","name":"getFileSystem","kind":"method","signature":"public final FileSystem getFileSystem()","summary":"Returns the FileSystem associated with this selector.","returns":{"type":"FileSystem"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.Selector.test(Path)","href":"org/graalvm/polyglot/io/FileSystem.Selector.html#test(java.nio.file.Path)","name":"test","kind":"method","signature":"public abstract boolean test(Path path)","summary":"Tests whether the FileSystem associated with this selector can handle operations on the specified Path.","params":[{"name":"path","type":"Path","doc":"the path to test, provided as a normalized absolute path. The given path has no path components equal to \".\" or \"..\"."}],"returns":{"type":"boolean","doc":"true if the associated FileSystem can handle the path; false otherwise"}}
{"symbol":"org.graalvm.polyglot.io.FileSystem.Selector.of(FileSystem, Predicate)","href":"org/graalvm/polyglot/io/FileSystem.Selector.html#of(org.graalvm.polyglot.io.FileSystem,java.util.function.Predicate)","name":"of","kind":"method","signature":"public static FileSystem.Selector of(FileSystem fileSystem, Predicate<Path> predicate)","summary":"Creates a Selector for the specified FileSystem using the provided Predicate.","params":[{"name":"fileSystem","type":"FileSystem","doc":"the FileSystem to associate with the selector"},{"name":"predicate","type":"Predicate<Path>","doc":"the condition to determine if the FileSystem can handle a given path"}],"returns":{"type":"FileSystem.Selector","doc":"a new Selector that delegates path testing to the predicate"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess","href":"org/graalvm/polyglot/io/IOAccess.html","name":"IOAccess","kind":"class","signature":"public final class IOAccess","summary":"Represents an IO access configuration of a polyglot context.","details":"The IO access configuration determines how a guest language can access the host IO. The access to host IO can be disabled, enabled, or virtualized using a custom file system."}
{"symbol":"org.graalvm.polyglot.io.IOAccess.NONE","href":"org/graalvm/polyglot/io/IOAccess.html#NONE","name":"NONE","kind":"field","signature":"public static final IOAccess NONE","summary":"Provides guest language no access to IO.","details":"Guest language only has read-only access to the language's home files. The NONE is a default value for Contexts created without all access. If you are using this preset, the newly added privileges will default to false for this preset. Equivalent of using the following builder configuration: IOAccess.newBuilder().build();"}
{"symbol":"org.graalvm.polyglot.io.IOAccess.ALL","href":"org/graalvm/polyglot/io/IOAccess.html#ALL","name":"ALL","kind":"field","signature":"public static final IOAccess ALL","summary":"Provides guest language full access to host IO.","details":"Guest language have full access to host file system and host sockets. The ALL is a default value for Contexts created with all access set to true. If you are using this preset, the newly added privileges will default to true for this preset. Equivalent of using the following builder configuration: IOAccess.newBuilder() .allowHostFileAccess(true) .allowHostSocketAccess(true) .build();"}
{"symbol":"org.graalvm.polyglot.io.IOAccess.newBuilder()","href":"org/graalvm/polyglot/io/IOAccess.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static IOAccess.Builder newBuilder()","summary":"Creates a new builder that allows to create a custom IO access configuration.","details":"The builder configuration needs to be completed using the method.","returns":{"type":"IOAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.newBuilder(IOAccess)","href":"org/graalvm/polyglot/io/IOAccess.html#newBuilder(org.graalvm.polyglot.io.IOAccess)","name":"newBuilder","kind":"method","signature":"public static IOAccess.Builder newBuilder(IOAccess prototype)","summary":"Creates a new builder that allows to create a custom IO access configuration based of a preset configuration.","details":"The preset configuration is copied and used as a template for the returned builder. The builder configuration needs to be completed using the method.","params":[{"name":"prototype","type":"IOAccess"}],"returns":{"type":"IOAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.hashCode()","href":"org/graalvm/polyglot/io/IOAccess.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.equals(Object)","href":"org/graalvm/polyglot/io/IOAccess.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.toString()","href":"org/graalvm/polyglot/io/IOAccess.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder","href":"org/graalvm/polyglot/io/IOAccess.Builder.html","name":"IOAccess.Builder","kind":"class","signature":"public static final class IOAccess.Builder","summary":"Builder to create a custom IO access configuration."}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder.allowHostFileAccess(boolean)","href":"org/graalvm/polyglot/io/IOAccess.Builder.html#allowHostFileAccess(boolean)","name":"allowHostFileAccess","kind":"method","signature":"public IOAccess.Builder allowHostFileAccess(boolean allow)","summary":"If true, it allows the guest language unrestricted access to files on the host system.","params":[{"name":"allow","type":"boolean"}],"returns":{"type":"IOAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder.allowHostSocketAccess(boolean)","href":"org/graalvm/polyglot/io/IOAccess.Builder.html#allowHostSocketAccess(boolean)","name":"allowHostSocketAccess","kind":"method","signature":"public IOAccess.Builder allowHostSocketAccess(boolean allow)","summary":"If true, it allows the guest language unrestricted access to host system sockets.","params":[{"name":"allow","type":"boolean"}],"returns":{"type":"IOAccess.Builder"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder.fileSystem(FileSystem)","href":"org/graalvm/polyglot/io/IOAccess.Builder.html#fileSystem(org.graalvm.polyglot.io.FileSystem)","name":"fileSystem","kind":"method","signature":"public IOAccess.Builder fileSystem(FileSystem fileSystem)","summary":"Sets a new FileSystem.","detailsOmitted":true,"params":[{"name":"fileSystem","type":"FileSystem","doc":"the file system to use in the guest language"}],"returns":{"type":"IOAccess.Builder","doc":"the Builder"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder.toString()","href":"org/graalvm/polyglot/io/IOAccess.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.io.IOAccess.Builder.build()","href":"org/graalvm/polyglot/io/IOAccess.Builder.html#build()","name":"build","kind":"method","signature":"public IOAccess build()","summary":"Creates an instance of the custom IO access configuration.","returns":{"type":"IOAccess"},"throws":[{"type":"IllegalArgumentException","doc":"if host file access is enabled and a custom file system is set."}]}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint","href":"org/graalvm/polyglot/io/MessageEndpoint.html","name":"MessageEndpoint","kind":"interface","signature":"public interface MessageEndpoint","summary":"An endpoint representing one side of message transport.","details":"The methods throw IOException when an I/O issue occurs or when the endpoint is closed."}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint.sendText(String)","href":"org/graalvm/polyglot/io/MessageEndpoint.html#sendText(java.lang.String)","name":"sendText","kind":"method","signature":"void sendText(String text) throws IOException","summary":"Send a text message.","params":[{"name":"text","type":"String"}],"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint.sendBinary(ByteBuffer)","href":"org/graalvm/polyglot/io/MessageEndpoint.html#sendBinary(java.nio.ByteBuffer)","name":"sendBinary","kind":"method","signature":"void sendBinary(ByteBuffer data) throws IOException","summary":"Send a binary message.","params":[{"name":"data","type":"ByteBuffer"}],"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint.sendPing(ByteBuffer)","href":"org/graalvm/polyglot/io/MessageEndpoint.html#sendPing(java.nio.ByteBuffer)","name":"sendPing","kind":"method","signature":"void sendPing(ByteBuffer data) throws IOException","summary":"Send a ping request.","params":[{"name":"data","type":"ByteBuffer"}],"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint.sendPong(ByteBuffer)","href":"org/graalvm/polyglot/io/MessageEndpoint.html#sendPong(java.nio.ByteBuffer)","name":"sendPong","kind":"method","signature":"void sendPong(ByteBuffer data) throws IOException","summary":"Send a pong reply as a response to ping.","params":[{"name":"data","type":"ByteBuffer"}],"throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageEndpoint.sendClose()","href":"org/graalvm/polyglot/io/MessageEndpoint.html#sendClose()","name":"sendClose","kind":"method","signature":"void sendClose() throws IOException","summary":"Close the connection.","throws":[{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageTransport","href":"org/graalvm/polyglot/io/MessageTransport.html","name":"MessageTransport","kind":"interface","signature":"public interface MessageTransport","summary":"Allows to take over transport of message communication initiated by an instrument.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.io.MessageTransport.open(URI, MessageEndpoint)","href":"org/graalvm/polyglot/io/MessageTransport.html#open(java.net.URI,org.graalvm.polyglot.io.MessageEndpoint)","name":"open","kind":"method","signature":"MessageEndpoint open(URI uri, MessageEndpoint peerEndpoint) throws IOException, MessageTransport.VetoException","summary":"Called when a connection to an URI is to be established.","details":"The virtualized connection is either opened and an endpoint call back is returned, or the connection is not virtualized in which case null is returned. This method can be called concurrently from multiple threads. However, the MessageEndpoint ought to be called on one thread at a time, unless you're sure that the particular implementation can handle concurrent calls. The same holds true for the returned endpoint, it's called synchronously.","params":[{"name":"uri","type":"URI","doc":"the connection URI"},{"name":"peerEndpoint","type":"MessageEndpoint","doc":"the peer endpoint representation"}],"returns":{"type":"MessageEndpoint","doc":"an implementation of MessageEndpoint call back, or null."},"throws":[{"type":"MessageTransport.VetoException","doc":"to veto connection to the URL."},{"type":"IOException"}]}
{"symbol":"org.graalvm.polyglot.io.MessageTransport.VetoException","href":"org/graalvm/polyglot/io/MessageTransport.VetoException.html","name":"MessageTransport.VetoException","kind":"class","signature":"public final class MessageTransport.VetoException extends Exception","summary":"Thrown when a transport connection is vetoed.","details":"The initiator of the connection is obliged to abandon it when this exception is thrown."}
{"symbol":"org.graalvm.polyglot.io.MessageTransport.VetoException(String)","href":"org/graalvm/polyglot/io/MessageTransport.VetoException.html#%3Cinit%3E(java.lang.String)","name":"VetoException","kind":"constructor","signature":"public VetoException(String message)","summary":"Create a new VetoException.","params":[{"name":"message","type":"String"}]}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler","href":"org/graalvm/polyglot/io/ProcessHandler.html","name":"ProcessHandler","kind":"interface","signature":"public interface ProcessHandler","summary":"Service-provider for guest languages process builder.","details":"This interface allows embedder to intercept subprocess creation done by guest languages."}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.start(ProcessHandler.ProcessCommand)","href":"org/graalvm/polyglot/io/ProcessHandler.html#start(org.graalvm.polyglot.io.ProcessHandler.ProcessCommand)","name":"start","kind":"method","signature":"Process start(ProcessHandler.ProcessCommand command) throws IOException","summary":"A request to start a new subprocess with given attributes.","detailsOmitted":true,"params":[{"name":"command","type":"ProcessHandler.ProcessCommand","doc":"the subprocess attributes"}],"returns":{"type":"Process"},"throws":[{"type":"SecurityException","doc":"if the process creation was forbidden by this handler"},{"type":"IOException","doc":"if the process fails to execute"}]}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html","name":"ProcessHandler.ProcessCommand","kind":"class","signature":"public final class ProcessHandler.ProcessCommand","summary":"Subprocess attributes passed to start method."}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getCommand()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getCommand()","name":"getCommand","kind":"method","signature":"public List<String> getCommand()","summary":"Returns the subprocess executable and arguments as an immutable list.","returns":{"type":"List<String>"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getDirectory()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getDirectory()","name":"getDirectory","kind":"method","signature":"public String getDirectory()","summary":"Returns the subprocess working directory.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getEnvironment()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getEnvironment()","name":"getEnvironment","kind":"method","signature":"public Map<String, String> getEnvironment()","summary":"Returns the subprocess environment as an immutable map.","returns":{"type":"Map<String, String>"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.isRedirectErrorStream()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#isRedirectErrorStream()","name":"isRedirectErrorStream","kind":"method","signature":"public boolean isRedirectErrorStream()","summary":"Return whether the standard error output should be merged into standard output.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getInputRedirect()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getInputRedirect()","name":"getInputRedirect","kind":"method","signature":"public ProcessHandler.Redirect getInputRedirect()","summary":"Returns the standard input source.","returns":{"type":"ProcessHandler.Redirect"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getOutputRedirect()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getOutputRedirect()","name":"getOutputRedirect","kind":"method","signature":"public ProcessHandler.Redirect getOutputRedirect()","summary":"Returns the standard output destination.","returns":{"type":"ProcessHandler.Redirect"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.getErrorRedirect()","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#getErrorRedirect()","name":"getErrorRedirect","kind":"method","signature":"public ProcessHandler.Redirect getErrorRedirect()","summary":"Returns the standard error output destination.","returns":{"type":"ProcessHandler.Redirect"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.ProcessCommand.create(List, String, Map, boolean, ProcessHandler.Redirect, ProcessHandler.Redirect, ProcessHandler.Redirect)","href":"org/graalvm/polyglot/io/ProcessHandler.ProcessCommand.html#create(java.util.List,java.lang.String,java.util.Map,boolean,org.graalvm.polyglot.io.ProcessHandler.Redirect,org.graalvm.polyglot.io.ProcessHandler.Redirect,org.graalvm.polyglot.io.ProcessHandler.Redirect)","name":"create","kind":"method","signature":"public static ProcessHandler.ProcessCommand create(List<String> cmd, String cwd, Map<String, String> environment, boolean redirectErrorStream, ProcessHandler.Redirect inputRedirect, ProcessHandler.Redirect outputRedirect, ProcessHandler.Redirect errorRedirect)","summary":"Creates a ProcessCommand.","details":"Not for direct use.","params":[{"name":"cmd","type":"List<String>"},{"name":"cwd","type":"String"},{"name":"environment","type":"Map<String, String>"},{"name":"redirectErrorStream","type":"boolean"},{"name":"inputRedirect","type":"ProcessHandler.Redirect"},{"name":"outputRedirect","type":"ProcessHandler.Redirect"},{"name":"errorRedirect","type":"ProcessHandler.Redirect"}],"returns":{"type":"ProcessHandler.ProcessCommand"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html","name":"ProcessHandler.Redirect","kind":"class","signature":"public final class ProcessHandler.Redirect","summary":"Represents a source of subprocess input or a destination of subprocess output."}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.PIPE","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#PIPE","name":"PIPE","kind":"field","signature":"public static final ProcessHandler.Redirect PIPE","summary":"Indicates that subprocess I/O will be connected to the current Java process using a pipe."}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.INHERIT","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#INHERIT","name":"INHERIT","kind":"field","signature":"public static final ProcessHandler.Redirect INHERIT","summary":"Indicates that subprocess I/O source or destination will be the same as those of the current process."}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.getOutputStream()","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#getOutputStream()","name":"getOutputStream","kind":"method","signature":"public OutputStream getOutputStream()","summary":"Returns the output stream to redirect to.","returns":{"type":"OutputStream"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.toString()","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.hashCode()","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#hashCode()","name":"hashCode","kind":"method","signature":"public int hashCode()","returns":{"type":"int"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.equals(Object)","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#equals(java.lang.Object)","name":"equals","kind":"method","signature":"public boolean equals(Object obj)","params":[{"name":"obj","type":"Object"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.io.ProcessHandler.Redirect.createRedirectToStream(OutputStream)","href":"org/graalvm/polyglot/io/ProcessHandler.Redirect.html#createRedirectToStream(java.io.OutputStream)","name":"createRedirectToStream","kind":"method","signature":"public static ProcessHandler.Redirect createRedirectToStream(OutputStream stream)","summary":"Creates a ProcessCommand.","details":"Not for direct use.","params":[{"name":"stream","type":"OutputStream"}],"returns":{"type":"ProcessHandler.Redirect"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent","href":"org/graalvm/polyglot/management/ExecutionEvent.html","name":"ExecutionEvent","kind":"class","signature":"public final class ExecutionEvent","summary":"An execution event object passed to an execution listener consumer.","details":"Execution event instances remain valid until the engine is closed. Values and returned exceptions will only remain valid until the context was closed."}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.getLocation()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#getLocation()","name":"getLocation","kind":"method","signature":"public SourceSection getLocation()","summary":"Returns the source location of the event that was triggered or null if no location source location is available.","returns":{"type":"SourceSection"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.getRootName()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#getRootName()","name":"getRootName","kind":"method","signature":"public String getRootName()","summary":"Returns the root name or null if no name is available.","details":"The root name may also be available for events caused by expressions and statements. In this case the name of the containing root will be returned.","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.getInputValues()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#getInputValues()","name":"getInputValues","kind":"method","signature":"public List<Value> getInputValues()","summary":"Returns the input values provided to execute this source location.","details":"This method returns null if input value collection is not enabled. Input values are available in OnReturn events.The returned list may contain null values if input values were not evaluated or if an exception occurred executing input values. The returned list is unmodifiable. The returned input values may escape the event consumer and remain valid until the context is closed.","returns":{"type":"List<Value>"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.getReturnValue()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#getReturnValue()","name":"getReturnValue","kind":"method","signature":"public Value getReturnValue()","summary":"Returns the return value of this source location after it was executed.","details":"This method returns null if return value collection is not enabled. Return values are available in OnReturn events. The returned value is allowed to escape the event consumer and remain valid until the context is closed.","returns":{"type":"Value"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.getException()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#getException()","name":"getException","kind":"method","signature":"public PolyglotException getException()","summary":"Returns the exception of this source location after it was executed.","details":"This method returns null if exception collection is not enabled. Exceptions are only available in OnReturn events if an exception was thrown when the location was executed. The returned value is allowed to escape the event consumer and remains valid until the context is closed.","returns":{"type":"PolyglotException"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.isExpression()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#isExpression()","name":"isExpression","kind":"method","signature":"public boolean isExpression()","summary":"Returns true if the source location is marked as expression, else false.","details":"The collection of expression events may be enabled by calling ExecutionListener.Builder.expressions(boolean).","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.isStatement()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#isStatement()","name":"isStatement","kind":"method","signature":"public boolean isStatement()","summary":"Returns true if the source location is marked as a statement, else false.","details":"The collection of statement events may be enabled by calling ExecutionListener.Builder.statements(boolean).","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.isRoot()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#isRoot()","name":"isRoot","kind":"method","signature":"public boolean isRoot()","summary":"Returns true if the source location is marked as a root of a function, method or closure, else false.","details":"The collection of root events may be enabled by calling ExecutionListener.Builder.roots(boolean).","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionEvent.toString()","href":"org/graalvm/polyglot/management/ExecutionEvent.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener","href":"org/graalvm/polyglot/management/ExecutionListener.html","name":"ExecutionListener","kind":"class","signature":"public final class ExecutionListener implements AutoCloseable","summary":"Execution listeners allow to instrument the execution of guest languages.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.close()","href":"org/graalvm/polyglot/management/ExecutionListener.html#close()","name":"close","kind":"method","signature":"public void close()","summary":"Closes and detaches this execution listener from the engine.","details":"After an execution listener was closed no further events will be reported. Attaching and closing execution listeners are expensive operations and typically require to traverse through all loaded code. Code that was previously optimized will be deoptimized in the process. It is most efficient to attach an execution listener before any code is executed and let execution listeners automatically close with the engine."}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.toString()","href":"org/graalvm/polyglot/management/ExecutionListener.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.newBuilder()","href":"org/graalvm/polyglot/management/ExecutionListener.html#newBuilder()","name":"newBuilder","kind":"method","signature":"public static ExecutionListener.Builder newBuilder()","summary":"Creates a builder that can be used to attach execution listeners.","details":"The returned Builder instance is not thread-safe. A minimal example on how to build and attach a listener: ExecutionListeners listener = ExecutionListeners.newBuilder() .onEnter((e) -> ...) .statements(true) .attach(context.getEngine());","returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html","name":"ExecutionListener.Builder","kind":"class","signature":"public final class ExecutionListener.Builder","summary":"A builder used to construct execution events.","details":"Builder instances are not thread-safe and may not be used from multiple threads at the same time."}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.onEnter(Consumer)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#onEnter(java.util.function.Consumer)","name":"onEnter","kind":"method","signature":"public ExecutionListener.Builder onEnter(Consumer<ExecutionEvent> listener)","summary":"Set a listener that is notified when an execution of an element is entered.","params":[{"name":"listener","type":"Consumer<ExecutionEvent>"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.onReturn(Consumer)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#onReturn(java.util.function.Consumer)","name":"onReturn","kind":"method","signature":"public ExecutionListener.Builder onReturn(Consumer<ExecutionEvent> listener)","summary":"Set a listener that is notified when an execution of an element was entered and completed.","params":[{"name":"listener","type":"Consumer<ExecutionEvent>"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.sourceFilter(Predicate)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#sourceFilter(java.util.function.Predicate)","name":"sourceFilter","kind":"method","signature":"public ExecutionListener.Builder sourceFilter(Predicate<Source> predicate)","summary":"Set an addition filter that filters execution events by source.","details":"By default all sources are included. Source predicates must be stable, i.e. always return the same result for a source. The filter predicate may be invoked on multiple threads at the same time.","params":[{"name":"predicate","type":"Predicate<Source>","doc":"the source predicate that returns true for a source to be included and false otherwise."}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.rootNameFilter(Predicate)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#rootNameFilter(java.util.function.Predicate)","name":"rootNameFilter","kind":"method","signature":"public ExecutionListener.Builder rootNameFilter(Predicate<String> predicate)","summary":"Set an addition filter execution events by root name.","details":"By default all root names are included. Root name predicates must be stable and always return the same result for source. The filter predicate may be invoked on multiple threads at the same time.","params":[{"name":"predicate","type":"Predicate<String>"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.roots(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#roots(boolean)","name":"roots","kind":"method","signature":"public ExecutionListener.Builder roots(boolean enabled)","summary":"Include program locations that are marked as root of a function, method or closure.","details":"By default no source elements are included.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.statements(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#statements(boolean)","name":"statements","kind":"method","signature":"public ExecutionListener.Builder statements(boolean enabled)","summary":"Include program locations that are marked as statements.","details":"By default no source elements are included.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.expressions(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#expressions(boolean)","name":"expressions","kind":"method","signature":"public ExecutionListener.Builder expressions(boolean enabled)","summary":"Include program locations that are marked as expressions.","details":"By default no source elements are included.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.collectInputValues(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#collectInputValues(boolean)","name":"collectInputValues","kind":"method","signature":"public ExecutionListener.Builder collectInputValues(boolean enabled)","summary":"Collect additional execution event data for input values.","details":"The input values may be accessed in OnReturn events with ExecutionEvent.getInputValues(). If additional event data is collected then the peak performance overhead of execution listeners is significant. It is not recommended to collect additional event data when running production workloads.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.collectReturnValue(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#collectReturnValue(boolean)","name":"collectReturnValue","kind":"method","signature":"public ExecutionListener.Builder collectReturnValue(boolean enabled)","summary":"Collect additional execution event data about return values.","details":"The return value may be accessed in OnReturn events with ExecutionEvent.getReturnValue(). If additional event data is collected then the peak performance overhead of execution listeners is significant. It is not recommended to collect additional event data when running production workloads.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.collectExceptions(boolean)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#collectExceptions(boolean)","name":"collectExceptions","kind":"method","signature":"public ExecutionListener.Builder collectExceptions(boolean enabled)","summary":"Collect additional execution event data about errors.","details":"The error may be accessed in OnReturn events with ExecutionEvent.getException(). If additional event data is collected then the peak performance overhead of execution listeners is significant. It is not recommended to collect additional event data when running production workloads.","params":[{"name":"enabled","type":"boolean","doc":"true if enabled, else false"}],"returns":{"type":"ExecutionListener.Builder"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.toString()","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#toString()","name":"toString","kind":"method","signature":"public String toString()","returns":{"type":"String"}}
{"symbol":"org.graalvm.polyglot.management.ExecutionListener.Builder.attach(Engine)","href":"org/graalvm/polyglot/management/ExecutionListener.Builder.html#attach(org.graalvm.polyglot.Engine)","name":"attach","kind":"method","signature":"public ExecutionListener attach(Engine engine)","summary":"Creates a new execution listener using the current builder configuration and attaches it to an engine.","detailsOmitted":true,"params":[{"name":"engine","type":"Engine","doc":"the engine to attach to"}],"returns":{"type":"ExecutionListener","doc":"the attached closable execution listener."},"throws":[{"type":"PolyglotException","doc":"if one of the provided filter predicate fails."}]}
{"symbol":"org.graalvm.polyglot.proxy.Proxy","href":"org/graalvm/polyglot/proxy/Proxy.html","name":"Proxy","kind":"interface","signature":"public interface Proxy","summary":"Proxy interfaces allow to mimic guest language objects, arrays, executables, primitives and native objects in Graal languages.","detailsOmitted":true}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray","href":"org/graalvm/polyglot/proxy/ProxyArray.html","name":"ProxyArray","kind":"interface","signature":"public interface ProxyArray extends ProxyIterable","summary":"Interface to be implemented to mimic guest language arrays.","details":"Arrays are always interpreted as zero-based arrays, independent of whether the Graal language uses one-based arrays. For example an access to array index one in a language with one-based arrays will access the proxy array at index zero."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.get(long)","href":"org/graalvm/polyglot/proxy/ProxyArray.html#get(long)","name":"get","kind":"method","signature":"Object get(long index)","summary":"Returns the element at the given index.","params":[{"name":"index","type":"long"}],"returns":{"type":"Object"},"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the index is out of bounds"},{"type":"UnsupportedOperationException","doc":"if the operation is not supported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.set(long, Value)","href":"org/graalvm/polyglot/proxy/ProxyArray.html#set(long,org.graalvm.polyglot.Value)","name":"set","kind":"method","signature":"void set(long index, Value value)","summary":"Sets the element at the given index.","params":[{"name":"index","type":"long"},{"name":"value","type":"Value"}],"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the index is out of bounds"},{"type":"UnsupportedOperationException","doc":"if the operation is not supported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.remove(long)","href":"org/graalvm/polyglot/proxy/ProxyArray.html#remove(long)","name":"remove","kind":"method","signature":"default boolean remove(long index)","summary":"Removes the element at the given index.","params":[{"name":"index","type":"long"}],"returns":{"type":"boolean","doc":"true when the element was removed, false when the element didn't exist."},"throws":[{"type":"ArrayIndexOutOfBoundsException","doc":"if the index is out of bounds"},{"type":"UnsupportedOperationException","doc":"if the operation is not supported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.getSize()","href":"org/graalvm/polyglot/proxy/ProxyArray.html#getSize()","name":"getSize","kind":"method","signature":"long getSize()","summary":"Returns the reported size of the array.","details":"The returned size of an array does not limit a guest language to get and set values using arbitrary indices. The array size is typically used by Graal languages to traverse the array.","returns":{"type":"long"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.getIterator()","href":"org/graalvm/polyglot/proxy/ProxyArray.html#getIterator()","name":"getIterator","kind":"method","signature":"default Object getIterator()","summary":"Returns an iterator.","details":"The returned object must be interpreted as an iterator using the semantics of Context.asValue(Object) otherwise an IllegalStateException is thrown. Examples for valid return values are: ProxyIterator Iterator, requires host iterable access A guest language object representing an iterator","returns":{"type":"Object"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.fromArray(Object...)","href":"org/graalvm/polyglot/proxy/ProxyArray.html#fromArray(java.lang.Object...)","name":"fromArray","kind":"method","signature":"static ProxyArray fromArray(Object... values)","summary":"Creates a proxy array backed by a Java Object array.","details":"If the set values of the array are host values then they will be unboxed. Note this function expects a variable number of arguments of type Object, thus might not work as expected on non-Object array types. For instance, an int array will be stored as the first element of the resulting proxy array. To flatten it out, convert it to an Object array first (e.g. with Arrays.stream( myIntArray ).boxed().toArray();).","params":[{"name":"values","type":"Object...","doc":"the Object[] array or the vararg arguments to be proxied."}],"returns":{"type":"ProxyArray"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyArray.fromList(List)","href":"org/graalvm/polyglot/proxy/ProxyArray.html#fromList(java.util.List)","name":"fromList","kind":"method","signature":"static ProxyArray fromList(List<Object> values)","summary":"Creates a proxy array backed by a Java List.","details":"If the set values of the list are host values then the they will be unboxed.","params":[{"name":"values","type":"List<Object>"}],"returns":{"type":"ProxyArray"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDate","href":"org/graalvm/polyglot/proxy/ProxyDate.html","name":"ProxyDate","kind":"interface","signature":"public interface ProxyDate extends Proxy","summary":"Interface to be implemented to mimic guest language objects that represents dates."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDate.asDate()","href":"org/graalvm/polyglot/proxy/ProxyDate.html#asDate()","name":"asDate","kind":"method","signature":"LocalDate asDate()","summary":"Returns the date information.","details":"The returned value must not be null.","returns":{"type":"LocalDate"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDate.from(LocalDate)","href":"org/graalvm/polyglot/proxy/ProxyDate.html#from(java.time.LocalDate)","name":"from","kind":"method","signature":"static ProxyDate from(LocalDate date)","summary":"Creates a proxy date from a local date.","params":[{"name":"date","type":"LocalDate"}],"returns":{"type":"ProxyDate"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDuration","href":"org/graalvm/polyglot/proxy/ProxyDuration.html","name":"ProxyDuration","kind":"interface","signature":"public interface ProxyDuration extends Proxy","summary":"Interface to be implemented to mimic guest language objects that represents durations."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDuration.asDuration()","href":"org/graalvm/polyglot/proxy/ProxyDuration.html#asDuration()","name":"asDuration","kind":"method","signature":"Duration asDuration()","summary":"Returns the duration information.","details":"The returned value must not be null.","returns":{"type":"Duration"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyDuration.from(Duration)","href":"org/graalvm/polyglot/proxy/ProxyDuration.html#from(java.time.Duration)","name":"from","kind":"method","signature":"static ProxyDuration from(Duration duration)","summary":"Creates a proxy duration from a duration.","params":[{"name":"duration","type":"Duration"}],"returns":{"type":"ProxyDuration"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyExecutable","href":"org/graalvm/polyglot/proxy/ProxyExecutable.html","name":"ProxyExecutable","kind":"interface","signature":"public interface ProxyExecutable extends Proxy","summary":"Interface to be implemented to mimic guest language objects that are executable."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyExecutable.execute(Value...)","href":"org/graalvm/polyglot/proxy/ProxyExecutable.html#execute(org.graalvm.polyglot.Value...)","name":"execute","kind":"method","signature":"Object execute(Value... arguments)","summary":"Executes the object with the given arguments and returns its result.","params":[{"name":"arguments","type":"Value..."}],"returns":{"type":"Object"},"throws":[{"type":"UnsupportedOperationException","doc":"if the proxy cannot be executed with the given arguments."}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html","name":"ProxyHashMap","kind":"interface","signature":"public interface ProxyHashMap extends Proxy","summary":"Interface to be implemented to mimic guest language hash maps."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.getHashSize()","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#getHashSize()","name":"getHashSize","kind":"method","signature":"long getHashSize()","summary":"Returns the number of map entries.","returns":{"type":"long"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.hasHashEntry(Value)","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#hasHashEntry(org.graalvm.polyglot.Value)","name":"hasHashEntry","kind":"method","signature":"boolean hasHashEntry(Value key)","summary":"Returns true if the proxy object contains a mapping for the specified key, or else false.","details":"Every key which returns true for hasHashEntry(Value) must be included in the iterator returned by getHashEntriesIterator() to allow guest language to enumerate map entries.","params":[{"name":"key","type":"Value"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.getHashValue(Value)","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#getHashValue(org.graalvm.polyglot.Value)","name":"getHashValue","kind":"method","signature":"Object getHashValue(Value key)","summary":"Returns the value for the specified key.","params":[{"name":"key","type":"Value"}],"returns":{"type":"Object"},"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.putHashEntry(Value, Value)","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#putHashEntry(org.graalvm.polyglot.Value,org.graalvm.polyglot.Value)","name":"putHashEntry","kind":"method","signature":"void putHashEntry(Value key, Value value)","summary":"Associates the specified value with the specified key.","details":"If the mapping for the specified key does not exist then a new mapping is defined otherwise, an existing mapping is updated.","params":[{"name":"key","type":"Value"},{"name":"value","type":"Value"}],"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.removeHashEntry(Value)","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#removeHashEntry(org.graalvm.polyglot.Value)","name":"removeHashEntry","kind":"method","signature":"default boolean removeHashEntry(Value key)","summary":"Removes the mapping for a given key.","details":"If the removal of existing mappings is not supported then an UnsupportedOperationException is thrown.","params":[{"name":"key","type":"Value"}],"returns":{"type":"boolean","doc":"true when the mapping was removed, false when the mapping didn't exist."},"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.getHashEntriesIterator()","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#getHashEntriesIterator()","name":"getHashEntriesIterator","kind":"method","signature":"Object getHashEntriesIterator()","summary":"Returns the hash entries iterator.","detailsOmitted":true,"returns":{"type":"Object"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyHashMap.from(Map)","href":"org/graalvm/polyglot/proxy/ProxyHashMap.html#from(java.util.Map)","name":"from","kind":"method","signature":"static ProxyHashMap from(Map<Object, Object> values)","summary":"Creates a proxy hash map backed by a Java Map.","details":"The map keys are as Object unboxed. If the set values are host values then they will be unboxed.","params":[{"name":"values","type":"Map<Object, Object>"}],"returns":{"type":"ProxyHashMap"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant","href":"org/graalvm/polyglot/proxy/ProxyInstant.html","name":"ProxyInstant","kind":"interface","signature":"public interface ProxyInstant extends ProxyDate, ProxyTime, ProxyTimeZone","summary":"Interface to be implemented to mimic guest language objects that represents timestamps.","details":"This interface also implements ProxyDate, ProxyTime and ProxyTimeZone."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant.asInstant()","href":"org/graalvm/polyglot/proxy/ProxyInstant.html#asInstant()","name":"asInstant","kind":"method","signature":"Instant asInstant()","summary":"Returns the instant information.","details":"The returned value must not be null. The following invariant must always hold for instant proxies: ProxyInstant proxy = ... ZoneId zone = proxy.getTimeZone(); LocalDate date = proxy.getDate(); LocalTime time = proxy.getTime(); assert ZonedDateTime.of(date, time, zone).equals(proxy.getInstant());","returns":{"type":"Instant"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant.asDate()","href":"org/graalvm/polyglot/proxy/ProxyInstant.html#asDate()","name":"asDate","kind":"method","signature":"default LocalDate asDate()","summary":"Returns the date information.","details":"The returned value must not be null. The invariant specified in asInstant() must always hold for proxy instant values.","returns":{"type":"LocalDate"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant.asTime()","href":"org/graalvm/polyglot/proxy/ProxyInstant.html#asTime()","name":"asTime","kind":"method","signature":"default LocalTime asTime()","summary":"Returns the time information.","details":"The returned value must not be null. The invariant specified in asInstant() must always hold for proxy instant values.","returns":{"type":"LocalTime"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant.asTimeZone()","href":"org/graalvm/polyglot/proxy/ProxyInstant.html#asTimeZone()","name":"asTimeZone","kind":"method","signature":"default ZoneId asTimeZone()","summary":"Returns the timezone information.","details":"The returned value must not be null. The invariant specified in asInstant() must always hold for proxy instant values.","returns":{"type":"ZoneId"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstant.from(Instant)","href":"org/graalvm/polyglot/proxy/ProxyInstant.html#from(java.time.Instant)","name":"from","kind":"method","signature":"static ProxyInstant from(Instant instant)","summary":"Creates a new proxy instant from a Java instant value.","params":[{"name":"instant","type":"Instant"}],"returns":{"type":"ProxyInstant"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstantiable","href":"org/graalvm/polyglot/proxy/ProxyInstantiable.html","name":"ProxyInstantiable","kind":"interface","signature":"public interface ProxyInstantiable extends Proxy","summary":"Interface to be implemented to mimic guest language objects that are instantiable."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyInstantiable.newInstance(Value...)","href":"org/graalvm/polyglot/proxy/ProxyInstantiable.html#newInstance(org.graalvm.polyglot.Value...)","name":"newInstance","kind":"method","signature":"Object newInstance(Value... arguments)","summary":"Creates a new instance of the object with the given arguments.","params":[{"name":"arguments","type":"Value..."}],"returns":{"type":"Object"},"throws":[{"type":"UnsupportedOperationException","doc":"if the proxy cannot be instantiated with the given arguments."}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterable","href":"org/graalvm/polyglot/proxy/ProxyIterable.html","name":"ProxyIterable","kind":"interface","signature":"public interface ProxyIterable extends Proxy","summary":"Interface to be implemented to mimic guest language iterables."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterable.getIterator()","href":"org/graalvm/polyglot/proxy/ProxyIterable.html#getIterator()","name":"getIterator","kind":"method","signature":"Object getIterator()","summary":"Returns an iterator.","details":"The returned object must be interpreted as an iterator using the semantics of Context.asValue(Object) otherwise an IllegalStateException is thrown. Examples for valid return values are: ProxyIterator Iterator, requires host iterable access A guest language object representing an iterator","returns":{"type":"Object"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterable.from(Iterable)","href":"org/graalvm/polyglot/proxy/ProxyIterable.html#from(java.lang.Iterable)","name":"from","kind":"method","signature":"static ProxyIterable from(Iterable<Object> iterable)","summary":"Creates a proxy iterable backed by a Java Iterable.","details":"If the values of the iterable are host values then they will be unboxed.","params":[{"name":"iterable","type":"Iterable<Object>"}],"returns":{"type":"ProxyIterable"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterator","href":"org/graalvm/polyglot/proxy/ProxyIterator.html","name":"ProxyIterator","kind":"interface","signature":"public interface ProxyIterator extends Proxy","summary":"Interface to be implemented to mimic guest language iterators."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterator.hasNext()","href":"org/graalvm/polyglot/proxy/ProxyIterator.html#hasNext()","name":"hasNext","kind":"method","signature":"boolean hasNext()","summary":"Returns true if the iterator has more elements, else false.","details":"Multiple calls to the hasNext() might lead to different results if the underlying data structure is modified.","returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterator.getNext()","href":"org/graalvm/polyglot/proxy/ProxyIterator.html#getNext()","name":"getNext","kind":"method","signature":"Object getNext() throws NoSuchElementException, UnsupportedOperationException","summary":"Returns the next element in the iteration.","details":"When the underlying data structure is modified the getNext() may throw the NoSuchElementException even when the hasNext() returned true.","returns":{"type":"Object"},"throws":[{"type":"NoSuchElementException","doc":"if the iteration has no more elements, the hasNext() returns false."},{"type":"UnsupportedOperationException","doc":"when the underlying iterator element exists but is not readable."}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyIterator.from(Iterator)","href":"org/graalvm/polyglot/proxy/ProxyIterator.html#from(java.util.Iterator)","name":"from","kind":"method","signature":"static ProxyIterator from(Iterator<?> iterator)","summary":"Creates a proxy iterator backed by a Java Iterator.","details":"If the set values are host values then they will be unboxed. If the Java Iterator throws the ConcurrentModificationException the exception is translated into the host exception.","params":[{"name":"iterator","type":"Iterator<?>"}],"returns":{"type":"ProxyIterator"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyNativeObject","href":"org/graalvm/polyglot/proxy/ProxyNativeObject.html","name":"ProxyNativeObject","kind":"interface","signature":"public interface ProxyNativeObject extends Proxy","summary":"Interface to be implemented to mimic native pointers."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyNativeObject.asPointer()","href":"org/graalvm/polyglot/proxy/ProxyNativeObject.html#asPointer()","name":"asPointer","kind":"method","signature":"long asPointer()","summary":"Returns the native pointer value that this object represents.","returns":{"type":"long"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject","href":"org/graalvm/polyglot/proxy/ProxyObject.html","name":"ProxyObject","kind":"interface","signature":"public interface ProxyObject extends Proxy","summary":"Interface to be implemented to mimic guest language objects that contain members."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.getMember(String)","href":"org/graalvm/polyglot/proxy/ProxyObject.html#getMember(java.lang.String)","name":"getMember","kind":"method","signature":"Object getMember(String key)","summary":"Returns the value of the member.","params":[{"name":"key","type":"String"}],"returns":{"type":"Object"},"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.getMemberKeys()","href":"org/graalvm/polyglot/proxy/ProxyObject.html#getMemberKeys()","name":"getMemberKeys","kind":"method","signature":"Object getMemberKeys()","summary":"Returns an array of member keys.","detailsOmitted":true,"returns":{"type":"Object"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.hasMember(String)","href":"org/graalvm/polyglot/proxy/ProxyObject.html#hasMember(java.lang.String)","name":"hasMember","kind":"method","signature":"boolean hasMember(String key)","summary":"Returns true if the proxy object contains a member with the given key, or else false.","details":"While not required ever member key which returns true for hasMember(String) should be returned by getMemberKeys() to allow guest members to list member keys.","params":[{"name":"key","type":"String"}],"returns":{"type":"boolean"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.putMember(String, Value)","href":"org/graalvm/polyglot/proxy/ProxyObject.html#putMember(java.lang.String,org.graalvm.polyglot.Value)","name":"putMember","kind":"method","signature":"void putMember(String key, Value value)","summary":"Sets the value associated with a member.","details":"If the member does not exist then a new member is defined. If the definition of new members is not supported then an UnsupportedOperationException is thrown.","params":[{"name":"key","type":"String"},{"name":"value","type":"Value"}],"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.removeMember(String)","href":"org/graalvm/polyglot/proxy/ProxyObject.html#removeMember(java.lang.String)","name":"removeMember","kind":"method","signature":"default boolean removeMember(String key)","summary":"Removes a member key and its value.","details":"If the removal of existing members is not supported then an UnsupportedOperationException is thrown.","params":[{"name":"key","type":"String"}],"returns":{"type":"boolean","doc":"true when the member was removed, false when the member didn't exist."},"throws":[{"type":"UnsupportedOperationException","doc":"if the operation is unsupported"}]}
{"symbol":"org.graalvm.polyglot.proxy.ProxyObject.fromMap(Map)","href":"org/graalvm/polyglot/proxy/ProxyObject.html#fromMap(java.util.Map)","name":"fromMap","kind":"method","signature":"static ProxyObject fromMap(Map<String, Object> values)","summary":"Creates a proxy backed by a Map.","details":"If the set values of the map are host values then the they will be unboxed.","params":[{"name":"values","type":"Map<String, Object>"}],"returns":{"type":"ProxyObject"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTime","href":"org/graalvm/polyglot/proxy/ProxyTime.html","name":"ProxyTime","kind":"interface","signature":"public interface ProxyTime extends Proxy","summary":"Interface to be implemented to mimic guest language objects that represents times."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTime.asTime()","href":"org/graalvm/polyglot/proxy/ProxyTime.html#asTime()","name":"asTime","kind":"method","signature":"LocalTime asTime()","summary":"Returns the time information.","details":"The returned value must not be null.","returns":{"type":"LocalTime"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTime.from(LocalTime)","href":"org/graalvm/polyglot/proxy/ProxyTime.html#from(java.time.LocalTime)","name":"from","kind":"method","signature":"static ProxyTime from(LocalTime time)","summary":"Creates a proxy time from a local time.","params":[{"name":"time","type":"LocalTime"}],"returns":{"type":"ProxyTime"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTimeZone","href":"org/graalvm/polyglot/proxy/ProxyTimeZone.html","name":"ProxyTimeZone","kind":"interface","signature":"public interface ProxyTimeZone extends Proxy","summary":"Interface to be implemented to mimic guest language objects that represents timezones."}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTimeZone.asTimeZone()","href":"org/graalvm/polyglot/proxy/ProxyTimeZone.html#asTimeZone()","name":"asTimeZone","kind":"method","signature":"ZoneId asTimeZone()","summary":"Returns the timezone information.","details":"The returned value must not be null.","returns":{"type":"ZoneId"}}
{"symbol":"org.graalvm.polyglot.proxy.ProxyTimeZone.from(ZoneId)","href":"org/graalvm/polyglot/proxy/ProxyTimeZone.html#from(java.time.ZoneId)","name":"from","kind":"method","signature":"static ProxyTimeZone from(ZoneId timeZone)","summary":"Creates a proxy timezone from a ZoneId.","params":[{"name":"timeZone","type":"ZoneId"}],"returns":{"type":"ProxyTimeZone"}}
