See: Description
| Class | Description |
|---|---|
| Context |
A polyglot context for Graal guest languages that allows to
evaluate code. |
| Engine |
An execution engine for Graal guest languages that allows to inspect the
the installed
guest languages, instruments and
their available options. |
| Instrument |
A handle for an instrument installed in an
engine. |
| Language |
A handle for a Graal language installed in an
engine. |
| Source |
Representation of a source code unit and its contents that can be evaluated in an execution
context. |
| SourceSection |
Description of contiguous section of text within a
Source of program code.; supports
multiple modes of access to the text and its location. |
| TypeLiteral<T> |
Represents a generic type
T. |
| Value |
Represents a polyglot value that can be accessed using a set of language agnostic operations.
|
| Exception | Description |
|---|---|
| PolyglotException |
A polyglot exception represents errors that contain Graal guest languages on the stack trace.
|
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.
For an overview over the features the polyglot API provides.