Package org.graalvm.polyglot
package org.graalvm.polyglot
The GraalVM SDK polyglot API allows to embed Graal languages in Java applications.
To get started quickly create a new Context
using
Context.create(String...)
and then evaluate guest language code
using Context.eval(String, CharSequence)
.
See graalvm.org for more examples on how to use this API.
- Since:
- 19.0
- See Also:
-
ClassDescriptionA polyglot context for Graal guest languages that allows to
evaluate
code.An execution engine for Graal guest languages that allows to inspect the the installedguest languages
,instruments
and their available options.Represents an access policy to the process environment for the guest languages of a context.Represents the host access policy of a polyglot context.IfHostAccess.SCOPED
is used, placing this annotation on an exported host function excludes it from parameter scoping, i.e.Annotation used by the predefinedHostAccess.EXPLICIT
access policy to mark public constructors, methods and fields in public classes that should be accessible by the guest application.Allows guest language to implement a Java type.List of default host object mappings of mutable target types available inValue.as(Class)
.Represents the precedence of a target type mapping.A handle for an instrument installed in anengine
.A handle for a Graal language installed in anengine
.Represents an access policy for polyglot builtins in the guest languages.A polyglot exception represents errors that contain Graal guest languages on the stack trace.Event triggered by a resource limit for a context.Represents resource limits configuration that is used to configure contexts.Representation of a source code unit and its contents that can be evaluated in an executioncontext
.Description of contiguous section of text within aSource
of program code.; supports multiple modes of access to the text and its location.TypeLiteral<T>Represents a generic typeT
.Represents a polyglot value that can be accessed using a set of language agnostic operations.