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. |
EnvironmentAccess |
Represents an access policy to the process environment for the guest languages of a context.
|
HostAccess |
Represents the host access policy of a polyglot context.
|
Instrument |
A handle for an instrument installed in an
engine . |
Language |
A handle for a Graal language installed in an
engine . |
PolyglotAccess |
Represents an access policy for polyglot builtins in the guest languages.
|
ResourceLimitEvent |
Event triggered by a resource limit for a context.
|
ResourceLimits |
Represents resource limits configuration that is used to configure contexts.
|
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.
|
Enum | Description |
---|---|
HostAccess.MutableTargetMapping |
List of default host object mappings of mutable target types available in
Value.as(Class) . |
HostAccess.TargetMappingPrecedence |
Represents the precedence of a target type mapping.
|
SandboxPolicy |
Exception | Description |
---|---|
PolyglotException |
A polyglot exception represents errors that contain Graal guest languages on the stack trace.
|
Annotation Type | Description |
---|---|
HostAccess.DisableMethodScoping |
If
HostAccess.SCOPED is used, placing this annotation on an exported host function
excludes it from parameter scoping, i.e. |
HostAccess.Export |
Annotation used by the predefined
HostAccess.EXPLICIT access policy to mark public
constructors, methods and fields in public classes that should be accessible by the guest
application. |
HostAccess.Implementable |
Allows guest language to implement a Java type.
|
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.