Top Description Classes Enums
module 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 org.graalvm.polyglot.Context using org.graalvm.polyglot.Context#create(String...) and then evaluate guest language code using org.graalvm.polyglot.Context#eval(String, CharSequence).

See graalvm.org for more examples on how to use this API.

Since
19.0
See Also
For an overview over the features the polyglot API provides.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
public class
Context

A polyglot context for Graal guest languages that allows to evaluate code.

public class
Engine

An execution engine for Graal guest languages that allows to inspect the the installed guest languages, instruments and their available options.

public class
EnvironmentAccess

Represents an access policy to the process environment for the guest languages of a context.

public class
HostAccess

Represents the host access policy of a polyglot context.

public class
Instrument

A handle for an instrument installed in an engine.

public class
Language

A handle for a Graal language installed in an engine.

public class
PolyglotAccess

Represents an access policy for polyglot builtins in the guest languages.

public class
PolyglotException

A polyglot exception represents errors that contain Graal guest languages on the stack trace.

public class
ResourceLimitEvent

Event triggered by a resource limit for a context.

public class
ResourceLimits

Represents resource limits configuration that is used to configure contexts.

public class
Source

Representation of a source code unit and its contents that can be evaluated in an execution context.

public class
SourceSection

Description of contiguous section of text within a Source of program code.; supports multiple modes of access to the text and its location.

public abstract class
TypeLiteral<T>

Represents a generic type T.

public class
Value

Represents a polyglot value that can be accessed using a set of language agnostic operations.

Enum Summary

Modifier and TypeEnum and Description
public enum
SandboxPolicy

The sandbox policy presets and validates configurations of a context or engine to be suitable as a code sandbox.