Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ALL - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy that allows full unrestricted access to public methods or fields of public host classes.
- ALL - Static variable in class org.graalvm.polyglot.io.IOAccess
-
Provides guest language full access to host IO.
- ALL - Static variable in class org.graalvm.polyglot.PolyglotAccess
-
Provides guest languages full access to other languages using polyglot evaluation and binding builtins.
- allowAccess(Executable) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to a given constructor or method.
- allowAccess(Field) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to a given field.
- allowAccessAnnotatedBy(Class<? extends Annotation>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to public constructors, methods or fields of public classes that were annotated by the given annotation class.
- allowAccessInheritance(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to inherit access to allowed methods, i.e.
- allowAllAccess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the default value for all privileges.
- allowAllClassImplementations(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow guest languages to implement (extend) any Java class.
- allowAllImplementations(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow guest languages to implement any Java interface.
- allowArrayAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access arrays as values with
array elements. - allowBigIntegerNumberAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access
BigIntegeras anumber. - allowBindingsAccess(String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows access to polyglot bindings for a language.
- allowBufferAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access
ByteBuffers as values withbuffer elements. - allowCreateProcess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If
true, allows guest language to execute external processes. - allowCreateThread(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If
true, allows guest languages to create new threads. - allowEnvironmentAccess(EnvironmentAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow environment access using the provided policy.
- allowEval(String, String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows evaluation of code by one language of another.
- allowEvalBetween(String...) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows bidirectional evaluation of code between the given languages.
- allowExperimentalOptions(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow experimental options to be used for language options.
- allowExperimentalOptions(boolean) - Method in class org.graalvm.polyglot.Engine.Builder
-
Allow experimental options to be used for instruments and engine options.
- allowHostAccess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Deprecated.
- allowHostAccess(HostAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Configures which public constructors, methods or fields of public classes are accessible by guest applications.
- allowHostClassLoading(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If host class loading is enabled, then the guest language is allowed to load new host classes via jar or class files.
- allowHostClassLookup(Predicate<String>) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets a filter that specifies the Java host classes that can be looked up by the guest application.
- allowHostFileAccess(boolean) - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
If
true, it allows the guest language unrestricted access to files on the host system. - allowHostSocketAccess(boolean) - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
If
true, it allows the guest language unrestricted access to host system sockets. - allowImplementations(Class<?>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow implementations of this type by the guest language.
- allowImplementationsAnnotatedBy(Class<? extends Annotation>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow implementations of types annotated with the given annotation.
- allowInnerContextOptions(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allows this context to spawn inner contexts that may change option values set for the outer context.
- allowInternalResourceAccess(FileSystem) - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Decorates the given
fileSystemby an implementation that forwards access to the internal resources to the default file system. - allowIO(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Deprecated.
- allowIO(IOAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Configures guest language access to host IO.
- allowIterableAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
- allowIteratorAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
- allowLanguageHomeAccess(FileSystem) - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Deprecated.
- allowListAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access lists as values with
array elementsanditerators. - allowMapAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
- allowMutableTargetMappings(HostAccess.MutableTargetMapping...) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows host object mappings of mutable target types, such as
List,Map,IteratorandIterablebased on theHostAccess.MutableTargetMapping. - allowNativeAccess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allows guest languages to access the native interface.
- allowPolyglotAccess(PolyglotAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow polyglot access using the provided policy.
- allowPublicAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows unrestricted access to all public constructors, methods or fields of public classes.
- allowValueSharing(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Enables or disables sharing of any
valuebetween contexts. - arguments(String, String[]) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the guest language application arguments for a language
context. - ARRAY_TO_JAVA_LIST - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest object arrays to host object
List. - as(Class<T>) - Method in class org.graalvm.polyglot.Value
-
Maps a polyglot value to a value with a given Java target type.
- as(TypeLiteral<T>) - Method in class org.graalvm.polyglot.Value
-
Maps a polyglot value to a given Java target type literal.
- asBigInteger() - Method in class org.graalvm.polyglot.Value
- asBoolean() - Method in class org.graalvm.polyglot.Value
-
Returns a
booleanrepresentation of this value if it isboolean. - asByte() - Method in class org.graalvm.polyglot.Value
- asDate() - Method in interface org.graalvm.polyglot.proxy.ProxyDate
-
Returns the date information.
- asDate() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the date information.
- asDate() - Method in class org.graalvm.polyglot.Value
-
Returns this value as date if this object represents a
date. - asDouble() - Method in class org.graalvm.polyglot.Value
- asDuration() - Method in interface org.graalvm.polyglot.proxy.ProxyDuration
-
Returns the duration information.
- asDuration() - Method in class org.graalvm.polyglot.Value
-
Returns this value as duration if this object represents a
duration. - asFloat() - Method in class org.graalvm.polyglot.Value
- asHostException() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns the original Java host exception that caused this exception.
- asHostObject() - Method in class org.graalvm.polyglot.Value
-
Returns the original Java host language object.
- asInstant() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the instant information.
- asInstant() - Method in class org.graalvm.polyglot.Value
-
Returns this value as instant if this object represents an
instant. - asInt() - Method in class org.graalvm.polyglot.Value
- asLong() - Method in class org.graalvm.polyglot.Value
- asNativePointer() - Method in class org.graalvm.polyglot.Value
-
Returns the value of the pointer as
longvalue. - asPointer() - Method in interface org.graalvm.polyglot.proxy.ProxyNativeObject
-
Returns the native pointer value that this object represents.
- asProxyObject() - Method in class org.graalvm.polyglot.Value
-
Returns the unboxed instance of the
Proxy. - asShort() - Method in class org.graalvm.polyglot.Value
- asString() - Method in class org.graalvm.polyglot.Value
- asTime() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the time information.
- asTime() - Method in interface org.graalvm.polyglot.proxy.ProxyTime
-
Returns the time information.
- asTime() - Method in class org.graalvm.polyglot.Value
-
Returns this value as time if this object represents a
time. - asTimeZone() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the timezone information.
- asTimeZone() - Method in interface org.graalvm.polyglot.proxy.ProxyTimeZone
-
Returns the timezone information.
- asTimeZone() - Method in class org.graalvm.polyglot.Value
-
Returns this value as timestamp if this object represents a
timezone. - asValue(Object) - Method in class org.graalvm.polyglot.Context
-
Converts a host value to a polyglot
valuerepresentation. - asValue(Object) - Static method in class org.graalvm.polyglot.Value
-
Converts a Java host value to a polyglot value.
- attach(Engine) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Creates a new execution listener using the current builder configuration and attaches it to an engine.
- Attributes - Search tag in class org.graalvm.polyglot.Source
- Section
B
- Bindings - Search tag in class org.graalvm.polyglot.Context
- Section
- build() - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Builds and returns a new option descriptor.
- build() - Method in class org.graalvm.polyglot.Context.Builder
-
Creates a new context instance from the configuration provided in the builder.
- build() - Method in class org.graalvm.polyglot.Engine.Builder
-
Creates a new engine instance from the configuration provided in the builder.
- build() - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Creates an instance of the custom host access configuration.
- build() - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
Creates an instance of the custom IO access configuration.
- build() - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Creates an instance of the custom polyglot access configuration.
- build() - Method in class org.graalvm.polyglot.ResourceLimits.Builder
-
Builds the limit configuration object.
- build() - Method in class org.graalvm.polyglot.Source.Builder
-
Uses configuration of this builder to create new
Sourceobject. - buildLiteral() - Method in class org.graalvm.polyglot.Source.Builder
-
Uses configuration of this builder to create a new
Sourceobject. - byteAt(int) - Method in interface org.graalvm.polyglot.io.ByteSequence
-
Returns the
bytevalue at the specified index. - bytes() - Method in interface org.graalvm.polyglot.io.ByteSequence
-
Returns a stream of
intzero-extending thebytevalues from this sequence. - ByteSequence - Interface in org.graalvm.polyglot.io
-
A ByteSequence is a readable sequence of
bytevalues.
C
- cached(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Enables or disables code caching for this source.
- canExecute() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value can beexecuted. - canInstantiate() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value can be instantiated. - canInvokeMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the given member exists and can be invoked. - category(OptionCategory) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Defines the user category for this option.
- Character and byte based Sources - Search tag in class org.graalvm.polyglot.Source
- Section
- checkAccess(Path, Set<? extends AccessMode>, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Checks existence and accessibility of a file.
- close() - Method in class org.graalvm.polyglot.Context
-
Closes this context and frees up potentially allocated native resources.
- close() - Method in class org.graalvm.polyglot.Engine
-
Closes this engine and frees up allocated native resources.
- close() - Method in class org.graalvm.polyglot.management.ExecutionListener
-
Closes and detaches this execution listener from the engine.
- close(boolean) - Method in class org.graalvm.polyglot.Context
-
Closes the context and frees up potentially allocated native resources.
- close(boolean) - Method in class org.graalvm.polyglot.Engine
-
Closes this engine and frees up allocated native resources.
- collectExceptions(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data about errors.
- collectInputValues(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data for input values.
- collectReturnValue(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data about return values.
- compareTo(int...) - Method in class org.graalvm.home.Version
-
Compares this version to another GraalVM version.
- compareTo(Version) - Method in class org.graalvm.home.Version
- Compatibility - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- Configuration - Search tag in class org.graalvm.polyglot.Context
- Section
- CONSTRAINED - Enum constant in enum class org.graalvm.polyglot.SandboxPolicy
-
Policy intended for trusted, but potentially buggy applications.
- CONSTRAINED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy used by Context with a
SandboxPolicy.CONSTRAINEDsandbox policy when the host access policy is not explicitly specified by the embedder. - content(CharSequence) - Method in class org.graalvm.polyglot.Source.Builder
-
Specifies character based content of
to-be-builtSource. - content(String) - Method in class org.graalvm.polyglot.Source.Builder
-
Specifies content of
to-be-builtSource. - content(ByteSequence) - Method in class org.graalvm.polyglot.Source.Builder
-
Specifies byte based content of
to-be-builtSource. - Context - Class in org.graalvm.polyglot
-
A polyglot context for Graal guest languages that allows to
evaluatecode. - Context.Builder - Class in org.graalvm.polyglot
-
Builder class to construct
Contextinstances. - Context Exit - Search tag in class org.graalvm.polyglot.Context
- Section
- convert(Object, String, String) - Method in class org.graalvm.options.OptionType
-
Converts a string value, validates it, and converts it to an object of this type.
- convert(String) - Method in class org.graalvm.options.OptionType
-
Converts a string value, validates it, and converts it to an object of this type.
- copy(Path, Path, CopyOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Copies source file to target file.
- copyResources(Path, String...) - Static method in class org.graalvm.polyglot.Engine
-
Unpacks the language or instrument internal resources specified by the
componentsinto thetargetFolderdirectory. - create() - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine instance with default configuration.
- create(byte[]) - Static method in interface org.graalvm.polyglot.io.ByteSequence
-
Creates a
ByteSequencefrom an existingbyte[]. - create(int...) - Static method in class org.graalvm.home.Version
-
Constructs a new GraalVM version from a list of version numbers.
- create(String...) - Static method in class org.graalvm.polyglot.Context
-
Creates a context with default configuration.
- create(String...) - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine instance with default configuration with a set of permitted languages.
- create(String, CharSequence) - Static method in class org.graalvm.polyglot.Source
-
Shortcut for creating a source object from a language and char sequence.
- create(List<String>, String, Map<String, String>, boolean, ProcessHandler.Redirect, ProcessHandler.Redirect, ProcessHandler.Redirect) - Static method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Creates a ProcessCommand.
- create(List<OptionDescriptor>) - Static method in interface org.graalvm.options.OptionDescriptors
-
Creates an
OptionDescriptorsinstance from a list. - createDirectory(Path, FileAttribute<?>...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a directory.
- createLink(Path, Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a new link for an existing file.
- createRedirectToStream(OutputStream) - Static method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Creates a ProcessCommand.
- createSymbolicLink(Path, Path, FileAttribute<?>...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a new symbolic link.
- createUnion(OptionDescriptors...) - Static method in interface org.graalvm.options.OptionDescriptors
-
Creates a union options descriptor out of multiple given descriptors.
- Creation and Closing - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- currentWorkingDirectory(Path) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the current working directory used by the guest application to resolve relative paths.
D
- defaultType(Class<T>) - Static method in class org.graalvm.options.OptionType
-
Returns the default option type for a class.
- defaultType(T) - Static method in class org.graalvm.options.OptionType
-
Returns the default option type for a given value.
- delete(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Deletes a file.
- denyAccess(Class<?>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Prevents access to members of given class and its subclasses.
- denyAccess(Class<?>, boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Prevents access to members of given class.
- denyBindingsAccess(String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Denies access to polyglot bindings for a language.
- denyEval(String, String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Denies evaluation of code by one language of another.
- denyEvalBetween(String...) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Denies bidirectional evaluation of code between the given languages.
- deprecated(boolean) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Defines if this option is deprecated.
- deprecationMessage(String) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Specifies a human-readable deprecation reason and the recommended fix.
- disableMethodScoping(Executable) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Function parameters of the specified executable escape the executable's scope.
- disableMethodScopingAnnotatedBy(Class<? extends Annotation>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Function parameters of a method annotated with the specified annotation are not scoped.
E
- empty() - Static method in class org.graalvm.options.OptionMap
-
Returns an empty option map (immutable).
- EMPTY - Static variable in interface org.graalvm.options.OptionDescriptors
-
An empty set of option descriptors.
- encoding(Charset) - Method in class org.graalvm.polyglot.Source.Builder
-
Assigns an encoding used to read the file content.
- engine(Engine) - Method in class org.graalvm.polyglot.Context.Builder
-
Explicitly sets the underlying engine to use.
- Engine - Class in org.graalvm.polyglot
-
An execution engine for Graal guest languages that allows to inspect the the installed
guest languages,instrumentsand their available options. - Engine.Builder - Class in org.graalvm.polyglot
- enter() - Method in class org.graalvm.polyglot.Context
-
Explicitly enters the context on the current thread.
- entrySet() - Method in class org.graalvm.options.OptionMap
-
Returns an unmodifiable
Setview of the mappings contained in this map. - environment(String, String) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets an environment variable.
- environment(Map<String, String>) - Method in class org.graalvm.polyglot.Context.Builder
-
Shortcut for setting multiple
environment variablesusing a map. - EnvironmentAccess - Class in org.graalvm.polyglot
-
Represents an access policy to the process environment for the guest languages of a context.
- equals(Object) - Method in class org.graalvm.home.Version
- equals(Object) - Method in class org.graalvm.options.OptionDescriptor
- equals(Object) - Method in class org.graalvm.options.OptionMap
- equals(Object) - Method in class org.graalvm.polyglot.Context
- equals(Object) - Method in class org.graalvm.polyglot.HostAccess
- equals(Object) - Method in class org.graalvm.polyglot.io.IOAccess
- equals(Object) - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
- equals(Object) - Method in exception class org.graalvm.polyglot.PolyglotException
- equals(Object) - Method in class org.graalvm.polyglot.Source
- equals(Object) - Method in class org.graalvm.polyglot.SourceSection
- equals(Object) - Method in class org.graalvm.polyglot.TypeLiteral
- equals(Object) - Method in class org.graalvm.polyglot.Value
-
Compares the identity of the underlying polyglot objects.
- err(OutputStream) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the error output stream to be used for the context.
- err(OutputStream) - Method in class org.graalvm.polyglot.Engine.Builder
-
Sets the standard error stream to be used for this engine.
- Error Handling - Search tag in class org.graalvm.polyglot.Context
- Section
- eval(String, CharSequence) - Method in class org.graalvm.polyglot.Context
-
Evaluates a guest language code literal, using a provided
language id. - eval(Source) - Method in class org.graalvm.polyglot.Context
-
Evaluates a source object by using the language specified in the source.
- Evaluation - Search tag in class org.graalvm.polyglot.Context
- Section
- Event Consumers - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- Event Data - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- Event Filters - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- Examples: - Search tag in org.graalvm.home.Version.format(String)
- Section
- Example usage with JavaScript: - Search tag in org.graalvm.polyglot.Context.Builder.allowHostClassLookup(Predicate<String>)
- Section
- EXECUTABLE_TO_JAVA_INTERFACE - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of executable guest objects to a
FunctionalInterface. - execute(Object...) - Method in class org.graalvm.polyglot.Value
-
Executes this value if it
canbe executed and returns its result. - execute(Value...) - Method in interface org.graalvm.polyglot.proxy.ProxyExecutable
-
Executes the object with the given arguments and returns its result.
- executeVoid(Object...) - Method in class org.graalvm.polyglot.Value
-
Executes this value if it
canbe executed. - ExecutionEvent - Class in org.graalvm.polyglot.management
-
An execution event object passed to an execution listener consumer.
- ExecutionListener - Class in org.graalvm.polyglot.management
-
Execution listeners allow to instrument the execution of guest languages.
- ExecutionListener.Builder - Class in org.graalvm.polyglot.management
-
A builder used to construct execution events.
- EXPERIMENTAL - Enum constant in enum class org.graalvm.options.OptionStability
-
An experimental option has no guarantees of stability and might be removed at any point.
- EXPERT - Enum constant in enum class org.graalvm.options.OptionCategory
-
An option only relevant in corner cases and for fine-tuning.
- EXPLICIT - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy that allows access to public host methods or fields that were annotated with @Export and were declared in public class.
- expressions(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Include program locations that are marked as expressions.
F
- fileSystem(FileSystem) - Method in class org.graalvm.polyglot.Context.Builder
-
Deprecated.If a file system was previously set use
allowIO(IOAccess.newBuilder().fileSystem(fileSystem).build()). - fileSystem(FileSystem) - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
Sets a new
FileSystem. - FileSystem - Interface in org.graalvm.polyglot.io
-
Service-provider for
Trufflefiles. - fillInStackTrace() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Unsupported,
PolyglotExceptioninstances are not writable therefore filling the stack trace has no effect for them. - findHome() - Static method in class org.graalvm.polyglot.Engine
-
Finds the GraalVM home folder.
- findLanguage(File) - Static method in class org.graalvm.polyglot.Source
-
Returns the id of the first language that supports evaluating the probed mime type of a given
file. - findLanguage(String) - Static method in class org.graalvm.polyglot.Source
-
Returns the first installed language that supports evaluating sources for a given MIME type.
- findLanguage(URL) - Static method in class org.graalvm.polyglot.Source
-
Returns the id of the first language that supports evaluating the probed mime type of a given
URL. - findMimeType(File) - Static method in class org.graalvm.polyglot.Source
-
Returns the probed MIME type for a given file, or
nullif no MIME type could be resolved. - findMimeType(URL) - Static method in class org.graalvm.polyglot.Source
-
Returns the probed MIME type for a given url, or
nullif no MIME type could be resolved. - fitsInBigInteger() - Method in class org.graalvm.polyglot.Value
- fitsInByte() - Method in class org.graalvm.polyglot.Value
- fitsInDouble() - Method in class org.graalvm.polyglot.Value
- fitsInFloat() - Method in class org.graalvm.polyglot.Value
- fitsInInt() - Method in class org.graalvm.polyglot.Value
- fitsInLong() - Method in class org.graalvm.polyglot.Value
- fitsInShort() - Method in class org.graalvm.polyglot.Value
- format(String) - Method in class org.graalvm.home.Version
-
Format the GraalVM version with a custom format string.
- from(Iterable<Object>) - Static method in interface org.graalvm.polyglot.proxy.ProxyIterable
-
Creates a proxy iterable backed by a Java
Iterable. - from(Duration) - Static method in interface org.graalvm.polyglot.proxy.ProxyDuration
-
Creates a proxy duration from a duration.
- from(Instant) - Static method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Creates a new proxy instant from a Java instant value.
- from(LocalDate) - Static method in interface org.graalvm.polyglot.proxy.ProxyDate
-
Creates a proxy date from a local date.
- from(LocalTime) - Static method in interface org.graalvm.polyglot.proxy.ProxyTime
-
Creates a proxy time from a local time.
- from(ZoneId) - Static method in interface org.graalvm.polyglot.proxy.ProxyTimeZone
-
Creates a proxy timezone from a ZoneId.
- from(Iterator<?>) - Static method in interface org.graalvm.polyglot.proxy.ProxyIterator
-
Creates a proxy iterator backed by a Java
Iterator. - from(Map<Object, Object>) - Static method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Creates a proxy hash map backed by a Java
Map. - From a file on disk - Search tag in class org.graalvm.polyglot.Source
- Section
- fromArray(Object...) - Static method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Creates a proxy array backed by a Java Object array.
- fromList(List<Object>) - Static method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Creates a proxy array backed by a Java List.
- fromMap(Map<String, Object>) - Static method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Creates a proxy backed by a
Map.
G
- get(long) - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns the element at the given index.
- get(String) - Method in interface org.graalvm.options.OptionDescriptors
-
Gets the
OptionDescriptormatching a given option name ornullif this option descriptor set does not contain a matching option name. - get(String) - Method in class org.graalvm.options.OptionMap
-
Returns the value to which the specified key is mapped, or
nullif this option map contains no mapping for the key. - get(OptionKey<T>) - Method in interface org.graalvm.options.OptionValues
-
Returns the value of a given option.
- getArrayElement(long) - Method in class org.graalvm.polyglot.Value
-
Returns the array element of a given index.
- getArraySize() - Method in class org.graalvm.polyglot.Value
-
Returns the array size for values with array elements.
- getBindings(String) - Method in class org.graalvm.polyglot.Context
-
Returns a value that represents the top-most bindings of a language.
- getBufferSize() - Method in class org.graalvm.polyglot.Value
-
Returns the buffer size in bytes for values with buffer elements.
- getBytecodeIndex() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the bytecode index of this frame if available, or a negative number if no bytecode index is available.
- getBytes() - Method in class org.graalvm.polyglot.Source
-
Returns the bytes of the source if it is a
byte based source. - getCachedSources() - Method in class org.graalvm.polyglot.Engine
-
Returns the sources previously cached by this engine.
- getCategory() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the user category of this option.
- getCharacters() - Method in class org.graalvm.polyglot.Source
-
Returns all characters of the source.
- getCharacters() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the source code fragment described by this section.
- getCharacters(int) - Method in class org.graalvm.polyglot.Source
-
Gets the text (not including a possible terminating newline) in a (1-based) numbered line.
- getCharEndIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the index of the text position immediately following the last character in the section.
- getCharIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 0-based index of the first character in this section.
- getCharLength() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the length of this section in characters.
- getCode() - Method in class org.graalvm.polyglot.SourceSection
-
Deprecated.use
SourceSection.getCharacters()instead. - getColumnNumber(int) - Method in class org.graalvm.polyglot.Source
-
Given a 0-based character offset, return the 1-based number of the column at the position.
- getCommand() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess executable and arguments as an immutable list.
- getContext() - Method in class org.graalvm.polyglot.ResourceLimitEvent
-
The context for which the limit was exceeded.
- getContext() - Method in class org.graalvm.polyglot.Value
-
Returns the context this value was created with.
- getCurrent() - Static method in class org.graalvm.home.Version
-
Returns the current GraalVM version of the installed component.
- getCurrent() - Static method in class org.graalvm.polyglot.Context
-
Returns the currently entered polyglot context.
- getDefaultMimeType() - Method in class org.graalvm.polyglot.Language
-
Returns the default MIME type that is in use by a language.
- getDefaultValue() - Method in class org.graalvm.options.OptionKey
-
Returns the default value for this option.
- getDefaultValue() - Method in class org.graalvm.options.OptionType
-
Deprecated.
- getDeprecationMessage() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the deprecation reason and the recommended fix.
- getDescriptors() - Method in interface org.graalvm.options.OptionValues
-
Returns all available options.
- getDirectory() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess working directory.
- getEncoding(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns an file encoding for given path.
- getEndColumn() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 1-based column number of the last character in this section (inclusive).
- getEndLine() - Method in class org.graalvm.polyglot.SourceSection
-
Returns 1-based line number of the last character in this section (inclusive).
- getEngine() - Method in class org.graalvm.polyglot.Context
-
Provides access to meta-data about the underlying Graal engine.
- getEnvironment() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess environment as an immutable map.
- getErrorRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard error output destination.
- getException() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the exception of this source location after it was executed.
- getExitStatus() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns the exit status if this exception indicates that the application was
exited. - getGuestObject() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns an additional guest language object.
- getHashEntriesIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the hash entries iterator.
- getHashEntriesIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash entries iterator that allows read each map entry.
- getHashKeysIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash keys iterator that allows read each map key.
- getHashSize() - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the number of map entries.
- getHashSize() - Method in class org.graalvm.polyglot.Value
-
Returns the number of map entries for values with hash entries.
- getHashValue(Object) - Method in class org.graalvm.polyglot.Value
-
Returns the value for the specified key or
nullif the mapping for the specified key does not exist. - getHashValue(Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the value for the specified key.
- getHashValueOrDefault(Object, Object) - Method in class org.graalvm.polyglot.Value
-
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.
- getHashValuesIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash values iterator that allows read each map value.
- getHelp() - Method in class org.graalvm.options.OptionDescriptor
-
Returns a human-readable description on how to use the option.
- getHomeFolder() - Method in class org.graalvm.home.HomeFinder
- getId() - Method in class org.graalvm.polyglot.Instrument
-
Gets the ID clients can use to acquire this instrument.
- getId() - Method in class org.graalvm.polyglot.Language
-
Gets the primary identification string of this language.
- getImplementationName() - Method in class org.graalvm.polyglot.Engine
-
Gets a human-readable name of the polyglot implementation (for example, "Default Truffle Engine" or "Graal Truffle Engine").
- getImplementationName() - Method in class org.graalvm.polyglot.Language
-
Gets a human-readable name of the language implementation (for example, "Graal.JS").
- getInputRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard input source.
- getInputStream() - Method in class org.graalvm.polyglot.Source
-
Deprecated.use
Source.getReader(),Source.getCharacters()orSource.getBytes()instead. The implementation is inefficient and can not distinguish byte and character based sources. - getInputValues() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the input values provided to execute this source location.
- getInstance() - Static method in class org.graalvm.home.HomeFinder
- getInstruments() - Method in class org.graalvm.polyglot.Engine
-
Gets all installed instruments of this engine.
- getIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns an iterator.
- getIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyIterable
-
Returns an iterator.
- getIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new iterator that allows read each element of a sequence.
- getIteratorNextElement() - Method in class org.graalvm.polyglot.Value
-
Returns the next element in the iteration.
- getKey() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the key for this option.
- getLanguage() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the language of this stack frame.
- getLanguage() - Method in class org.graalvm.polyglot.Source
-
Returns the language this source created with.
- getLanguageHomes() - Method in class org.graalvm.home.HomeFinder
- getLanguages() - Method in class org.graalvm.polyglot.Engine
-
Gets a map of all installed languages with the language id as key and the language object as value.
- getLength() - Method in class org.graalvm.polyglot.Source
-
Gets the number of characters or bytes of the source.
- getLineCount() - Method in class org.graalvm.polyglot.Source
-
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.
- getLineLength(int) - Method in class org.graalvm.polyglot.Source
-
The number of characters (not counting a possible terminating newline) in a (1-based) numbered line.
- getLineNumber(int) - Method in class org.graalvm.polyglot.Source
-
Given a 0-based character offset, return the 1-based number of the line that includes the position.
- getLineStartOffset(int) - Method in class org.graalvm.polyglot.Source
-
Given a 1-based line number, return the 0-based offset of the first character in the line.
- getLocation() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the source location of the event that was triggered or
nullif no location source location is available. - getMember(String) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns the value of the member.
- getMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns the member with a given
identifierornullif the member does not exist. - getMemberKeys() - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns an array of member keys.
- getMemberKeys() - Method in class org.graalvm.polyglot.Value
-
Returns a set of all member keys.
- getMessage() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Gets a user readable message for the polyglot exception.
- getMetaObject() - Method in class org.graalvm.polyglot.Value
-
Returns the metaobject that is associated with this value or
nullif no metaobject is available. - getMetaParents() - Method in class org.graalvm.polyglot.Value
-
Returns the meta parents of a meta object as an array object
Value.hasArrayElements(). - getMetaQualifiedName() - Method in class org.graalvm.polyglot.Value
-
Returns the qualified name of a metaobject as
String. - getMetaSimpleName() - Method in class org.graalvm.polyglot.Value
-
Returns the simple name of a metaobject as
string. - getMimeType() - Method in class org.graalvm.polyglot.Source
-
Returns the MIME type that is associated with this source.
- getMimeType(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns a MIME type for given path.
- getMimeTypes() - Method in class org.graalvm.polyglot.Language
-
Returns the MIME types supported by this language.
- getName() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the name of the option that this descriptor represents.
- getName() - Method in class org.graalvm.options.OptionType
-
Returns the name of this type.
- getName() - Method in class org.graalvm.polyglot.Instrument
-
Gets a human-readable name for this instrument.
- getName() - Method in class org.graalvm.polyglot.Language
-
Gets a human-readable name for the language (for example, "JavaScript").
- getName() - Method in class org.graalvm.polyglot.Source
-
Returns the name of this resource holding a guest language program.
- getNext() - Method in interface org.graalvm.polyglot.proxy.ProxyIterator
-
Returns the next element in the iteration.
- getOptions() - Method in class org.graalvm.polyglot.Engine
-
Returns all options available for the engine.
- getOptions() - Method in class org.graalvm.polyglot.Instrument
-
Gets the options available for this instrument.
- getOptions() - Method in class org.graalvm.polyglot.Language
-
Returns the set of options provided by this language.
- getOutputRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard output destination.
- getOutputStream() - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Returns the output stream to redirect to.
- getPath() - Method in class org.graalvm.polyglot.Source
-
The fully qualified name of the source.
- getPathSeparator() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the path separator used to separate filenames in a path list.
- getPolyglotBindings() - Method in class org.graalvm.polyglot.Context
-
Returns polyglot bindings that may be used to exchange symbols between the host and guest languages.
- getPolyglotStackTrace() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Provides programmatic access to the polyglot stack trace information printed by
PolyglotException.printStackTrace(). - getRawType() - Method in class org.graalvm.polyglot.TypeLiteral
-
Returns the raw class type of the literal.
- getReader() - Method in class org.graalvm.polyglot.Source
-
Returns a new reader that reads from the
charactersprovided by this source. - getReturnValue() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the return value of this source location after it was executed.
- getRootName() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the root name or
nullif no name is available. - getRootName() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the root name of this stack frame.
- getSeparator() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the name separator used to separate names in a path string.
- getSize() - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns the reported size of the array.
- getSource() - Method in class org.graalvm.polyglot.SourceSection
-
Representation of the source program that contains this section.
- getSourceLocation() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Gets a guest language source location of this error or
nullif no source location is available for this exception. - getSourceLocation() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the source location of the stack frame or
nullif no source location is available. - getSourceLocation() - Method in class org.graalvm.polyglot.Value
-
Returns the declared source location of the value.
- getStability() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the stability of this option.
- getStackTrace() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Gets stack trace elements for Java and guest languages.
- getStartColumn() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 1-based column number of the first character in this section (inclusive).
- getStartLine() - Method in class org.graalvm.polyglot.SourceSection
-
Returns 1-based line number of the first character in this section (inclusive).
- getTempDirectory() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the default temporary directory.
- getToolHomes() - Method in class org.graalvm.home.HomeFinder
- getType() - Method in class org.graalvm.options.OptionKey
-
Returns the option type of this key.
- getType() - Method in class org.graalvm.polyglot.TypeLiteral
-
Returns the type literal including generic type information.
- getURI() - Method in class org.graalvm.polyglot.Source
-
Get the URI of the source.
- getURL() - Method in class org.graalvm.polyglot.Source
-
The URL if the source is retrieved via URL.
- getUsageSyntax() - Method in class org.graalvm.options.OptionDescriptor
-
Specifies a human-readable syntax describing the accepted values for this option.
- getValue(OptionValues) - Method in class org.graalvm.options.OptionKey
-
Returns the value of this key given the
values. - getVersion() - Method in class org.graalvm.home.HomeFinder
- getVersion() - Method in class org.graalvm.polyglot.Engine
-
Gets the version string of the engine in an unspecified format.
- getVersion() - Method in class org.graalvm.polyglot.Instrument
-
Gets the version of this instrument.
- getVersion() - Method in class org.graalvm.polyglot.Language
-
Gets the version information of the language in an arbitrary language-specific format.
- getWebsite() - Method in class org.graalvm.polyglot.Instrument
-
Gets the website of this instrument.
- getWebsite() - Method in class org.graalvm.polyglot.Language
-
Get the URL for the language website.
H
- hasArrayElements() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this polyglot value has array elements. - hasBeenSet(OptionKey<?>) - Method in interface org.graalvm.options.OptionValues
-
Determines if a value for
optionKeyhas been set explicitly by theContextorEngine, and thereforeOptionValues.get(OptionKey)does not callOptionKey.getDefaultValue(). - hasBeenSet(OptionValues) - Method in class org.graalvm.options.OptionKey
-
Returns
trueif a value for this key has been set for the given option values orfalseif no value has been set. - hasBufferElements() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the receiver may have buffer elements. - hasBytes() - Method in class org.graalvm.polyglot.Source
-
Returns
trueif this source represents a byte based source, elsefalse. - hasCharacters() - Method in class org.graalvm.polyglot.Source
-
Returns
trueif this source represents a character based source, elsefalse. - hasCharIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns
trueif this section has a character index information,falseotherwise. - hasColumns() - Method in class org.graalvm.polyglot.SourceSection
-
Returns
trueif this section has a column number information,falseotherwise. - HASH_TO_JAVA_MAP - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest object hashes to host object
Map. - hasHashEntries() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this polyglot value represents a map. - hasHashEntry(Object) - Method in class org.graalvm.polyglot.Value
-
Returns
trueif mapping for the specified key exists. - hasHashEntry(Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns
trueif the proxy object contains a mapping for the specified key, or elsefalse. - hashCode() - Method in class org.graalvm.home.Version
- hashCode() - Method in class org.graalvm.options.OptionDescriptor
- hashCode() - Method in class org.graalvm.options.OptionMap
- hashCode() - Method in class org.graalvm.polyglot.Context
- hashCode() - Method in class org.graalvm.polyglot.HostAccess
- hashCode() - Method in class org.graalvm.polyglot.io.IOAccess
- hashCode() - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
- hashCode() - Method in exception class org.graalvm.polyglot.PolyglotException
- hashCode() - Method in class org.graalvm.polyglot.Source
- hashCode() - Method in class org.graalvm.polyglot.SourceSection
- hashCode() - Method in class org.graalvm.polyglot.TypeLiteral
- hashCode() - Method in class org.graalvm.polyglot.Value
-
Returns the identity hash code of the underlying object.
- hasIterator() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this polyglot value provides an iterator. - hasIteratorNextElement() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value represents an iterator which has more elements, elsefalse. - hasLines() - Method in class org.graalvm.polyglot.SourceSection
-
Returns
trueif this section has a line number information,falseotherwise. - hasMember(String) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns
trueif the proxy object contains a member with the given key, or elsefalse. - hasMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns
trueif such a member exists for a givenidentifier. - hasMembers() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value generally supports containing members. - hasMetaParents() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value represents a metaobject and the metaobject has meta parents. - hasNext() - Method in interface org.graalvm.polyglot.proxy.ProxyIterator
-
Returns
trueif the iterator has more elements, elsefalse. - hasSetOptions() - Method in interface org.graalvm.options.OptionValues
-
Determines if a value for any of the option keys in
option descriptorshas been set. - help(String) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Specifies a human-readable description on how to use the option.
- HIGH - Enum constant in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Defines high or default precedence and conversion order for a target type mapping.
- HIGHEST - Enum constant in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Defines higher precedence and conversion order as all default mappings and target type mappings with lower precedence.
- HomeFinder - Class in org.graalvm.home
-
A utility class to find various paths of the running GraalVM, as well as the version.
- HomeFinder() - Constructor for class org.graalvm.home.HomeFinder
- HostAccess - Class in org.graalvm.polyglot
-
Represents the host access policy of a polyglot context.
- HostAccess.Builder - Class in org.graalvm.polyglot
-
Builder to create a custom
host access policy. - HostAccess.DisableMethodScoping - Annotation Interface in org.graalvm.polyglot
-
If
HostAccess.SCOPEDis used, placing this annotation on an exported host function excludes it from parameter scoping, i.e. - HostAccess.Export - Annotation Interface in org.graalvm.polyglot
-
Annotation used by the predefined
HostAccess.EXPLICITaccess policy to mark public constructors, methods and fields in public classes that should be accessible by the guest application. - HostAccess.Implementable - Annotation Interface in org.graalvm.polyglot
-
Allows guest language to implement a Java type.
- HostAccess.MutableTargetMapping - Enum Class in org.graalvm.polyglot
-
List of default host object mappings of mutable target types available in
Value.as(Class). - HostAccess.TargetMappingPrecedence - Enum Class in org.graalvm.polyglot
-
Represents the precedence of a target type mapping.
- hostClassFilter(Predicate<String>) - Method in class org.graalvm.polyglot.Context.Builder
-
Deprecated.use
Context.Builder.allowHostClassLookup(Predicate)instead. - hostClassLoader(ClassLoader) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets a host class loader.
- Host Interoperability - Search tag in class org.graalvm.polyglot.Context
- Section
I
- in(InputStream) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the input stream to be used for the context.
- in(InputStream) - Method in class org.graalvm.polyglot.Engine.Builder
-
Sets the standard input stream to be used for this engine.
- INHERIT - Static variable in class org.graalvm.polyglot.EnvironmentAccess
-
Provides guest languages read access to process environment.
- INHERIT - Static variable in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Indicates that subprocess I/O source or destination will be the same as those of the current process.
- initialize(String) - Method in class org.graalvm.polyglot.Context
-
Forces the initialization of a language.
- Instrument - Class in org.graalvm.polyglot
-
A handle for an instrument installed in an
engine. - interactive(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Marks the source as interactive.
- internal(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Set whether this source has been marked as internal, meaning that it has been provided by the infrastructure, language implementation, or system library.
- INTERNAL - Enum constant in enum class org.graalvm.options.OptionCategory
-
An option only relevant when debugging a language implementation or an instrument.
- interrupt(Duration) - Method in class org.graalvm.polyglot.Context
-
Use this method to interrupt this context.
- In this example: - Search tag in org.graalvm.polyglot.Context.Builder.allowHostClassLookup(Predicate<String>)
- Section
- invokeMember(String, Object...) - Method in class org.graalvm.polyglot.Value
-
Invokes the given member of this value.
- IOAccess - Class in org.graalvm.polyglot.io
-
Represents an IO access configuration of a polyglot context.
- IOAccess.Builder - Class in org.graalvm.polyglot.io
-
Builder to create a custom
IO access configuration. - isAvailable() - Method in class org.graalvm.polyglot.SourceSection
-
Returns whether this is a special instance that signifies that source information is available.
- isBoolean() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value represents a boolean value. - isBufferWritable() - Method in class org.graalvm.polyglot.Value
-
Returns true if the receiver object is a modifiable buffer.
- isCancelled() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif the execution was cancelled. - isDate() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this object represents a date, elsefalse. - isDeprecated() - Method in class org.graalvm.options.OptionDescriptor
-
Returns
trueif this option was marked deprecated. - isDuration() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this object represents a duration, elsefalse. - isException() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this object represents an exception, elsefalse. - isExit() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception is caused by an attempt of a guest language program to exit the application. - isExpression() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns
trueif the source location is marked as expression, elsefalse. - isGuestException() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception originates from a Graal guest language. - isGuestFrame() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns true if the stack frame originates from the guest language.
- isHostException() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception originates from the Java host language. - isHostFrame() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns true if the stack frame originates from the host language.
- isHostObject() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value originated form the host language Java. - isIncompleteSource() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception indicates a syntax error that is indicating that the syntax is incomplete. - isInstant() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value represents an instant. - isInteractive() - Method in class org.graalvm.polyglot.Language
-
Returns
trueif a the language is suitable for interactive evaluation ofsources. - isInteractive() - Method in class org.graalvm.polyglot.Source
-
Check whether this source has been marked as interactive.
- isInternal() - Method in class org.graalvm.polyglot.Source
-
Gets whether this source has been marked as internal, meaning that it has been provided by the infrastructure, language implementation, or system library.
- isInternalError() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception was caused by an internal implementation error. - isInterrupted() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif the current application thread was interrupted by anInterruptedException, or by callingContext.interrupt(Duration)from the host. - isIterator() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value represents an iterator object. - isMetaInstance(Object) - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the given instance is an instance of this value, elsefalse. - isMetaObject() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif the value represents a metaobject. - isNativePointer() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value is a native pointer. - isNull() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value is anulllike. - isNumber() - Method in class org.graalvm.polyglot.Value
- ISOLATED - Enum constant in enum class org.graalvm.polyglot.SandboxPolicy
-
Policy intended for trusted applications, but which might have security vulnerabilities and optionally that can be mitigated using this policy.
- ISOLATED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy used by Context with an
SandboxPolicy.ISOLATEDsandbox policy when the host access policy is not explicitly specified by the embedder. - Isolation - Search tag in class org.graalvm.polyglot.Context
- Section
- isOptionMap() - Method in class org.graalvm.options.OptionDescriptor
-
Returns
trueif this option is an option map. - isProxyObject() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value represents aProxy. - isRedirectErrorStream() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Return whether the standard error output should be merged into standard output.
- isRelease() - Method in class org.graalvm.home.Version
-
Returns
trueif this is a supported release build of GraalVM elsefalse. - isResourceExhausted() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception indicates that a resource limit was exceeded, elsefalse. - isRoot() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns
trueif the source location is marked as a root of a function, method or closure, elsefalse. - isSameFile(Path, Path, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Tests if the given paths refer to the same physical file.
- isSnapshot() - Method in class org.graalvm.home.Version
-
Returns
trueif this is an unsupported snapshot build of GraalVM elsefalse. - isStatement() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns
trueif the source location is marked as a statement, elsefalse. - isStricterOrEqual(SandboxPolicy) - Method in enum class org.graalvm.polyglot.SandboxPolicy
-
Tests whether this
SandboxPolicyis stricter or equal toother. - isStricterThan(SandboxPolicy) - Method in enum class org.graalvm.polyglot.SandboxPolicy
-
Tests whether this
SandboxPolicyis stricter thanother. - isString() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this value represents a string. - isSyntaxError() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Returns
trueif this exception indicates a parser or syntax error. - isTime() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this object represents a time, elsefalse. - isTimeZone() - Method in class org.graalvm.polyglot.Value
-
Returns
trueif this object represents a timezone, elsefalse. - ITERABLE_TO_JAVA_ITERABLE - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest object iterables to host object
Iterable. - iterator() - Method in interface org.graalvm.options.OptionDescriptors
- ITERATOR_TO_JAVA_ITERATOR - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest object iterators to host object
Iterator.
L
- Language - Class in org.graalvm.polyglot
-
A handle for a Graal language installed in an
engine. - leave() - Method in class org.graalvm.polyglot.Context
-
Explicitly leaves the context on the current thread.
- length() - Method in interface org.graalvm.polyglot.io.ByteSequence
-
Returns the length of this byte sequence.
- logHandler(OutputStream) - Method in class org.graalvm.polyglot.Context.Builder
-
Installs a new logging
Handlerusing givenOutputStream. - logHandler(OutputStream) - Method in class org.graalvm.polyglot.Engine.Builder
-
Installs a new logging
Handlerusing givenOutputStream. - logHandler(Handler) - Method in class org.graalvm.polyglot.Context.Builder
-
Installs a new logging
Handler. - logHandler(Handler) - Method in class org.graalvm.polyglot.Engine.Builder
-
Installs a new logging
Handler. - lookup(Class<T>) - Method in class org.graalvm.polyglot.Instrument
-
Looks up an additional internal service that is provided by this instrument using a Java type.
- LOW - Enum constant in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Defines low precedence and conversion order for a target type mapping.
- LOWEST - Enum constant in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Defines lowest precedence and conversion order for a target type mapping.
M
- mapOf(Class<V>) - Static method in class org.graalvm.options.OptionKey
-
Constructs a new option key to group/accumulate options with common prefixes.
- Mapping to Java methods and fields - Search tag in org.graalvm.polyglot.Context.asValue(Object)
- Section
- MEMBERS_TO_JAVA_INTERFACE - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest objects with members to a Java interface.
- MEMBERS_TO_JAVA_MAP - Enum constant in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Enables default mapping of guest objects with members to
Map. - MessageEndpoint - Interface in org.graalvm.polyglot.io
-
An endpoint representing one side of
message transport. - MessageTransport - Interface in org.graalvm.polyglot.io
-
Allows to take over transport of message communication initiated by an instrument.
- MessageTransport.VetoException - Exception Class in org.graalvm.polyglot.io
-
Thrown when a transport connection is vetoed.
- methodScoping(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Sets the default scoping of callback function parameters.
- mimeType(String) - Method in class org.graalvm.polyglot.Source.Builder
- move(Path, Path, CopyOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Moves (renames) source file to target file.
N
- Naive and aware dates and times - Search tag in class org.graalvm.polyglot.Value
- Section
- name(String) - Method in class org.graalvm.polyglot.Source.Builder
-
Specifies a name to the
to-be-builtSource. - newBuilder() - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine builder that allows to configure an engine instance.
- newBuilder() - Static method in class org.graalvm.polyglot.HostAccess
-
Creates a new builder that allows to create a custom host access policy.
- newBuilder() - Static method in class org.graalvm.polyglot.io.IOAccess
-
Creates a new builder that allows to create a custom IO access configuration.
- newBuilder() - Static method in class org.graalvm.polyglot.management.ExecutionListener
-
Creates a builder that can be used to attach execution listeners.
- newBuilder() - Static method in class org.graalvm.polyglot.PolyglotAccess
-
Creates a new custom polyglot access configuration builder.
- newBuilder() - Static method in class org.graalvm.polyglot.ResourceLimits
-
Creates a new builder to construct
ResourceLimitsinstances. - newBuilder(String...) - Static method in class org.graalvm.polyglot.Context
-
Creates a builder for constructing a context with custom configuration.
- newBuilder(String...) - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine builder that allows to configure an engine instance.
- newBuilder(String, File) - Static method in class org.graalvm.polyglot.Source
-
Creates a new file based source builder from a given file.
- newBuilder(String, Reader, String) - Static method in class org.graalvm.polyglot.Source
-
Creates new character based literal source from a reader.
- newBuilder(String, CharSequence, String) - Static method in class org.graalvm.polyglot.Source
-
Creates a new character based literal source from a character sequence.
- newBuilder(String, URL) - Static method in class org.graalvm.polyglot.Source
-
Creates a new URL based source builder from a given URL.
- newBuilder(String, ByteSequence, String) - Static method in class org.graalvm.polyglot.Source
-
Creates a new byte based literal source from a byte sequence.
- newBuilder(OptionKey<T>, String) - Static method in class org.graalvm.options.OptionDescriptor
-
Creates a new option descriptor builder by key.
- newBuilder(HostAccess) - Static method in class org.graalvm.polyglot.HostAccess
-
Creates a new builder that allows to create a custom host access policy based of a preset configuration.
- newBuilder(IOAccess) - Static method in class org.graalvm.polyglot.io.IOAccess
-
Creates a new builder that allows to create a custom IO access configuration based of a preset configuration.
- newByteChannel(Path, Set<? extends OpenOption>, FileAttribute<?>...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Opens or creates a file returning a
SeekableByteChannelto access the file content. - newDefaultFileSystem() - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a
FileSystemimplementation based on the host Java NIO. - newDirectoryStream(Path, DirectoryStream.Filter<? super Path>) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns directory entries.
- newFileSystem(FileSystem) - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a
FileSystemimplementation based on the given Java NIO filesystem. - newInstance(Object...) - Method in class org.graalvm.polyglot.Value
-
Instantiates this value if it
canbe instantiated. - newInstance(Value...) - Method in interface org.graalvm.polyglot.proxy.ProxyInstantiable
-
Creates a new instance of the object with the given arguments.
- newReadOnlyFileSystem(FileSystem) - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Decorates the given
fileSystemby an implementation that makes the passedfileSystemread-only by forbidding all write operations. - NONE - Static variable in class org.graalvm.polyglot.EnvironmentAccess
-
Provides guest languages no access to process environment.
- NONE - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy that disallows any access to public host methods or fields.
- NONE - Static variable in class org.graalvm.polyglot.io.IOAccess
-
Provides guest language no access to IO.
- NONE - Static variable in class org.graalvm.polyglot.PolyglotAccess
-
Provides guest languages no access to other languages using polyglot builtins evaluation and binding builtins.
O
- Object Identity - Search tag in org.graalvm.polyglot.Value.as(Class<T>)
- Section
- Object target type mapping - Search tag in org.graalvm.polyglot.Value.as(Class<T>)
- Section
- onEnter(Consumer<ExecutionEvent>) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Set a listener that is notified when an execution of an element is entered.
- onLimit(Consumer<ResourceLimitEvent>) - Method in class org.graalvm.polyglot.ResourceLimits.Builder
-
Notified when a resource limit is reached.
- onReturn(Consumer<ExecutionEvent>) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Set a listener that is notified when an execution of an element was entered and completed.
- open(URI, MessageEndpoint) - Method in interface org.graalvm.polyglot.io.MessageTransport
-
Called when a connection to an URI is to be established.
- option(String, String) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets an option for this
context. - option(String, String) - Method in class org.graalvm.polyglot.Engine.Builder
- OptionCategory - Enum Class in org.graalvm.options
-
Categorizes options according to user relevance.
- OptionDescriptor - Class in org.graalvm.options
-
Represents metadata for a single option.
- OptionDescriptor.Builder - Class in org.graalvm.options
-
Represents an option descriptor builder.
- OptionDescriptors - Interface in org.graalvm.options
-
An interface to a set of
OptionDescriptors. - OptionKey<T> - Class in org.graalvm.options
-
Represents the option key for an option specification.
- OptionKey(T) - Constructor for class org.graalvm.options.OptionKey
-
Constructs a new option key given a default value.
- OptionKey(T, OptionType<T>) - Constructor for class org.graalvm.options.OptionKey
-
Constructs a new option key given a default value and option key.
- OptionMap<T> - Class in org.graalvm.options
-
Represents a mapping between
Stringkeys and values. - options(Map<String, String>) - Method in class org.graalvm.polyglot.Context.Builder
-
Shortcut for setting multiple
optionsusing a map. - options(Map<String, String>) - Method in class org.graalvm.polyglot.Engine.Builder
-
Shortcut for setting multiple
optionsusing a map. - OptionStability - Enum Class in org.graalvm.options
-
Categorizes options according to their stability.
- OptionType<T> - Class in org.graalvm.options
-
Represents a type of an option that allows to convert string values to Java values.
- OptionType(String, Function<String, T>) - Constructor for class org.graalvm.options.OptionType
-
Constructs a new option type with name and function that allows to convert a string to the option type.
- OptionType(String, Function<String, T>, Consumer<T>) - Constructor for class org.graalvm.options.OptionType
-
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.
- OptionType(String, T, Function<String, T>) - Constructor for class org.graalvm.options.OptionType
-
Deprecated.
- OptionType(String, T, Function<String, T>, Consumer<T>) - Constructor for class org.graalvm.options.OptionType
-
Deprecated.
- OptionValues - Interface in org.graalvm.options
-
Represents a set of option values based on an
OptionDescriptor. - org.graalvm.home - package org.graalvm.home
-
The GraalVM SDK home API allows query home paths for the GraalVM, its languages and its tools.
- org.graalvm.options - package org.graalvm.options
-
The GraalVM SDK options package contains reusable collection classes for options.
- org.graalvm.polyglot - package org.graalvm.polyglot
-
The GraalVM SDK polyglot API allows to embed Graal languages in Java applications.
- org.graalvm.polyglot.io - package org.graalvm.polyglot.io
-
Input/Output support for the GraalVM SDK polyglot API.
- org.graalvm.polyglot.management - package org.graalvm.polyglot.management
-
The management package provides tools that monitor and instrument the behavior of guest language programs.
- org.graalvm.polyglot.proxy - package org.graalvm.polyglot.proxy
-
The GraalVM SDK proxy interfaces allow to mimic guest language objects, arrays, executables, primitives and native objects in Graal languages.
- out(OutputStream) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the standard output stream to be used for the context.
- out(OutputStream) - Method in class org.graalvm.polyglot.Engine.Builder
-
Sets the standard output stream to be used for this engine.
P
- parse(String) - Static method in class org.graalvm.home.Version
-
Parses a GraalVM version from its String raw format.
- parse(String, CharSequence) - Method in class org.graalvm.polyglot.Context
-
Parses but does not evaluate a guest language code literal using a provided
language idand character sequence and returns avaluethat can beexecuted. - parse(Source) - Method in class org.graalvm.polyglot.Context
- parsePath(String) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Parses a path from a
String. - parsePath(URI) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Parses a path from an
URI. - Performance - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- pin() - Method in class org.graalvm.polyglot.Value
-
Pins a scoped value such that it can be used beyond the scope of a scoped host method call.
- PIPE - Static variable in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Indicates that subprocess I/O will be connected to the current Java process using a pipe.
- PolyglotAccess - Class in org.graalvm.polyglot
-
Represents an access policy for polyglot builtins in the guest languages.
- PolyglotAccess.Builder - Class in org.graalvm.polyglot
-
A builder for a polyglot access configuration.
- PolyglotException - Exception Class in org.graalvm.polyglot
-
A polyglot exception represents errors that contain Graal guest languages on the stack trace.
- PolyglotException.StackFrame - Class in org.graalvm.polyglot
-
Represents a polyglot stack frame originating from a guest language or the host language Java.
- Pre-Initialization - Search tag in class org.graalvm.polyglot.Context
- Section
- printStackTrace() - Method in exception class org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to the standard
error output. - printStackTrace(PrintStream) - Method in exception class org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to specified print stream.
- printStackTrace(PrintWriter) - Method in exception class org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to specified print writer.
- processHandler(ProcessHandler) - Method in class org.graalvm.polyglot.Context.Builder
-
Installs a
ProcessHandlerresponsible for external process creation. - ProcessHandler - Interface in org.graalvm.polyglot.io
-
Service-provider for guest languages process builder.
- ProcessHandler.ProcessCommand - Class in org.graalvm.polyglot.io
-
Subprocess attributes passed to
startmethod. - ProcessHandler.Redirect - Class in org.graalvm.polyglot.io
-
Represents a source of subprocess input or a destination of subprocess output.
- Proxies - Search tag in class org.graalvm.polyglot.Context
- Section
- Proxy - Interface in org.graalvm.polyglot.proxy
-
Proxy interfaces allow to mimic guest language objects, arrays, executables, primitives and native objects in Graal languages.
- ProxyArray - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language arrays.
- ProxyDate - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents dates.
- ProxyDuration - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents durations.
- ProxyExecutable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that are executable.
- ProxyHashMap - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language hash maps.
- ProxyInstant - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents timestamps.
- ProxyInstantiable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that are instantiable.
- ProxyIterable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language iterables.
- ProxyIterator - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language iterators.
- ProxyNativeObject - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic native pointers.
- ProxyObject - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that contain members.
- ProxyTime - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents times.
- ProxyTimeZone - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents timezones.
- putHashEntry(Object, Object) - Method in class org.graalvm.polyglot.Value
-
Associates the specified value with the specified key.
- putHashEntry(Value, Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Associates the specified value with the specified key.
- putMember(String, Object) - Method in class org.graalvm.polyglot.Value
-
Sets the value of a member using an identifier.
- putMember(String, Value) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Sets the value associated with a member.
R
- readAttributes(Path, String, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Reads a file's attributes as a bulk operation.
- readBuffer(long, byte[], int, int) - Method in class org.graalvm.polyglot.Value
-
Reads bytes from the receiver object into the specified byte array.
- readBufferByte(long) - Method in class org.graalvm.polyglot.Value
-
Reads the byte at the given byte offset from the start of the buffer.
- readBufferDouble(ByteOrder, long) - Method in class org.graalvm.polyglot.Value
-
Reads the double at the given byte offset from the start of the buffer in the given byte order.
- readBufferFloat(ByteOrder, long) - Method in class org.graalvm.polyglot.Value
-
Reads the float at the given byte offset from the start of the buffer in the given byte order.
- readBufferInt(ByteOrder, long) - Method in class org.graalvm.polyglot.Value
-
Reads the int at the given byte offset from the start of the buffer in the given byte order.
- readBufferLong(ByteOrder, long) - Method in class org.graalvm.polyglot.Value
-
Reads the long at the given byte offset from the start of the buffer in the given byte order.
- readBufferShort(ByteOrder, long) - Method in class org.graalvm.polyglot.Value
-
Reads the short at the given byte offset from the start of the buffer in the given byte order.
- Read from a URL - Search tag in class org.graalvm.polyglot.Source
- Section
- Reading from a stream - Search tag in class org.graalvm.polyglot.Source
- Section
- Reading from bytes - Search tag in class org.graalvm.polyglot.Source
- Section
- readSymbolicLink(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Reads the target of the symbolic link.
- remove(long) - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Removes the element at the given index.
- removeArrayElement(long) - Method in class org.graalvm.polyglot.Value
-
Removes an array element at a given index.
- removeHashEntry(Object) - Method in class org.graalvm.polyglot.Value
-
Removes the mapping for a given key.
- removeHashEntry(Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Removes the mapping for a given key.
- removeMember(String) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Removes a member key and its value.
- removeMember(String) - Method in class org.graalvm.polyglot.Value
-
Removes a single member from the object.
- resetLimits() - Method in class org.graalvm.polyglot.Context
-
Resets all accumulators of resource limits for the associated context to zero.
- ResourceLimitEvent - Class in org.graalvm.polyglot
-
Event triggered by a resource limit for a context.
- resourceLimits(ResourceLimits) - Method in class org.graalvm.polyglot.Context.Builder
-
Assigns resource limit configuration to a context.
- ResourceLimits - Class in org.graalvm.polyglot
-
Represents resource limits configuration that is used to configure contexts.
- ResourceLimits.Builder - Class in org.graalvm.polyglot
-
A builder used to construct resource limits.
- rootNameFilter(Predicate<String>) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Set an addition filter execution events by root name.
- roots(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Include program locations that are marked as root of a function, method or closure.
S
- safepoint() - Method in class org.graalvm.polyglot.Context
-
Polls safepoints events and executes them for the current thread.
- sandbox(SandboxPolicy) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets a code sandbox policy to a context.
- sandbox(SandboxPolicy) - Method in class org.graalvm.polyglot.Engine.Builder
-
Sets a code sandbox policy to an engine.
- SandboxPolicy - Enum Class in org.graalvm.polyglot
- SCOPED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy that is the same as EXPLICIT and enables method scoping of callback parameter values on top.
- Scoped Values - Search tag in class org.graalvm.polyglot.Value
- Section
- sendBinary(ByteBuffer) - Method in interface org.graalvm.polyglot.io.MessageEndpoint
-
Send a binary message.
- sendClose() - Method in interface org.graalvm.polyglot.io.MessageEndpoint
-
Close the connection.
- sendPing(ByteBuffer) - Method in interface org.graalvm.polyglot.io.MessageEndpoint
-
Send a ping request.
- sendPong(ByteBuffer) - Method in interface org.graalvm.polyglot.io.MessageEndpoint
-
Send a pong reply as a response to ping.
- sendText(String) - Method in interface org.graalvm.polyglot.io.MessageEndpoint
-
Send a text message.
- serverTransport(MessageTransport) - Method in class org.graalvm.polyglot.Context.Builder
-
Take over the transport of messages communication with a server peer.
- serverTransport(MessageTransport) - Method in class org.graalvm.polyglot.Engine.Builder
-
Take over transport of message communication with a server peer.
- set(long, Value) - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Sets the element at the given index.
- set(OptionKey<T>, T) - Method in interface org.graalvm.options.OptionValues
-
Deprecated.
OptionValuesshould 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. - setArrayElement(long, Object) - Method in class org.graalvm.polyglot.Value
-
Sets the value at a given index.
- setAttribute(Path, String, Object, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Sets a file's attribute.
- setCurrentWorkingDirectory(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Sets the current working directory.
- setStackTrace(StackTraceElement[]) - Method in exception class org.graalvm.polyglot.PolyglotException
-
Unsupported,
PolyglotExceptioninstances are not writable therefore setting the stack trace has no effect for them. - Source - Class in org.graalvm.polyglot
-
Representation of a source code unit and its contents that can be evaluated in an execution
context. - Source.Builder - Class in org.graalvm.polyglot
-
Represents a builder to build
Sourceobjects. - sourceFilter(Predicate<Source>) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Set an addition filter that filters execution events by source.
- Source from a literal text - Search tag in class org.graalvm.polyglot.Source
- Section
- SourceSection - Class in org.graalvm.polyglot
-
Description of contiguous section of text within a
Sourceof program code.; supports multiple modes of access to the text and its location. - stability(OptionStability) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Defines the stability of this option.
- STABLE - Enum constant in enum class org.graalvm.options.OptionStability
-
A stable option is expected to remain available for many releases.
- start(ProcessHandler.ProcessCommand) - Method in interface org.graalvm.polyglot.io.ProcessHandler
-
A request to start a new subprocess with given attributes.
- statementLimit(long, Predicate<Source>) - Method in class org.graalvm.polyglot.ResourceLimits.Builder
-
Specifies the maximum number of statements a context may execute until the onLimit event is notified and the context will be
closed. - Statement Limit Example - Search tag in class org.graalvm.polyglot.ResourceLimits
- Section
- statements(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Include program locations that are marked as statements.
- subSequence(int, int) - Method in interface org.graalvm.polyglot.io.ByteSequence
-
Returns a
ByteSequencethat is a subsequence of this sequence.
T
- targetTypeMapping(Class<S>, Class<T>, Predicate<S>, Function<S, T>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Adds a custom source to target type mapping for Java host calls, host field assignments and
explicit value conversions. - targetTypeMapping(Class<S>, Class<T>, Predicate<S>, Function<S, T>, HostAccess.TargetMappingPrecedence) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Adds a custom source to target type mapping for Java host calls, host field assignments and
explicit value conversions. - Target type mapping - Search tag in org.graalvm.polyglot.Value.as(Class<T>)
- Section
- Thread-Safety - Search tag in class org.graalvm.polyglot.Context
- Section
- throwException() - Method in class org.graalvm.polyglot.Value
-
Throws this value if this object represents an
exception. - timeZone(ZoneId) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the default time zone to be used for this context.
- toAbsolutePath(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Resolves given path to an absolute path.
- toByteArray() - Method in interface org.graalvm.polyglot.io.ByteSequence
-
Returns a
byte[]containing the bytes in this sequence in the same order as this sequence. - toHostFrame() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns a Java stack trace element representation of the polyglot stack trace element.
- toRealPath(Path, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the real (canonical) path of an existing file.
- toString() - Method in class org.graalvm.home.Version
- toString() - Method in class org.graalvm.options.OptionDescriptor
- toString() - Method in class org.graalvm.options.OptionType
- toString() - Method in class org.graalvm.polyglot.EnvironmentAccess
- toString() - Method in class org.graalvm.polyglot.HostAccess
- toString() - Method in class org.graalvm.polyglot.io.IOAccess
- toString() - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
- toString() - Method in class org.graalvm.polyglot.management.ExecutionEvent
- toString() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns a string representation of this stack frame.
- toString() - Method in class org.graalvm.polyglot.ResourceLimitEvent
- toString() - Method in class org.graalvm.polyglot.Source
- toString() - Method in class org.graalvm.polyglot.SourceSection
-
Returns an implementation-defined string representation of this source section to be used for debugging purposes only.
- toString() - Method in class org.graalvm.polyglot.TypeLiteral
- toString() - Method in class org.graalvm.polyglot.Value
-
Converts this value to a human readable string.
- TRUSTED - Enum constant in enum class org.graalvm.polyglot.SandboxPolicy
-
Policy intended for fully trusted applications.
- TypeLiteral<T> - Class in org.graalvm.polyglot
-
Represents a generic type
T. - TypeLiteral() - Constructor for class org.graalvm.polyglot.TypeLiteral
-
Constructs a new type literal.
U
- UNTRUSTED - Enum constant in enum class org.graalvm.polyglot.SandboxPolicy
-
Policy intended for untrusted applications.
- UNTRUSTED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy used by Context with an
SandboxPolicy.UNTRUSTEDsandbox policy when the host access policy is not explicitly specified by the embedder. - uri(URI) - Method in class org.graalvm.polyglot.Source.Builder
- Usage example: - Search tag in class org.graalvm.home.Version
- Section
- usageSyntax(String) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Specifies a human-readable syntax describing the accepted values for this option.
- Use-cases - Search tag in class org.graalvm.polyglot.management.ExecutionListener
- Section
- useModuleLookup(MethodHandles.Lookup) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Sets the
lookupthe guest application should use to find and access classes on the host side inmodularizedhost applications. - USER - Enum constant in enum class org.graalvm.options.OptionCategory
-
An option common for users to apply.
- useSystemExit(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Specifies whether
System.exit(int)may be used to improve efficiency of stack unwinding for context exit requested by the guest application. - useSystemProperties(boolean) - Method in class org.graalvm.polyglot.Engine.Builder
-
Specifies whether the engine should use
system propertiesif no explicit option isset.
V
- validate(T) - Method in class org.graalvm.options.OptionType
-
Validates an option value and throws an
IllegalArgumentExceptionif the value is invalid. - Value - Class in org.graalvm.polyglot
-
Represents a polyglot value that can be accessed using a set of language agnostic operations.
- valueOf(String) - Static method in enum class org.graalvm.options.OptionCategory
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.graalvm.options.OptionStability
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.graalvm.polyglot.SandboxPolicy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.graalvm.options.OptionCategory
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.graalvm.options.OptionStability
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.graalvm.polyglot.HostAccess.MutableTargetMapping
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.graalvm.polyglot.HostAccess.TargetMappingPrecedence
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.graalvm.polyglot.SandboxPolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Version - Class in org.graalvm.home
-
A version utility to canonicalize and compare GraalVM versions.
- VetoException(String) - Constructor for exception class org.graalvm.polyglot.io.MessageTransport.VetoException
-
Create a new VetoException.
W
- writeBufferByte(long, byte) - Method in class org.graalvm.polyglot.Value
-
Writes the given byte at the given byte offset from the start of the buffer.
- writeBufferDouble(ByteOrder, long, double) - Method in class org.graalvm.polyglot.Value
-
Writes the given double in the given byte order at the given byte offset from the start of the buffer.
- writeBufferFloat(ByteOrder, long, float) - Method in class org.graalvm.polyglot.Value
-
Writes the given float in the given byte order at the given byte offset from the start of the buffer.
- writeBufferInt(ByteOrder, long, int) - Method in class org.graalvm.polyglot.Value
-
Writes the given int in the given byte order at the given byte offset from the start of the buffer.
- writeBufferLong(ByteOrder, long, long) - Method in class org.graalvm.polyglot.Value
-
Writes the given long in the given byte order at the given byte offset from the start of the buffer.
- writeBufferShort(ByteOrder, long, short) - Method in class org.graalvm.polyglot.Value
-
Writes the given short in the given byte order at the given byte offset from the start of the buffer.
All Classes and Interfaces|All Packages|Serialized Form
Context.Builder.allowHostAccess(HostAccess)orContext.Builder.allowHostClassLookup(Predicate)instead.