Top Description Inners Fields Constructors Methods
org.graalvm.polyglot.impl

public abstract Class AbstractPolyglotImpl

extends Object
Class Inheritance
Known Direct Subclasses
org.graalvm.polyglot.impl.UnnamedToModuleBridge.UnnamedToModulePolyglotImpl, org.graalvm.polyglot.Engine.PolyglotInvalid
Annotations
@SuppressWarnings:unused
Imports
java.io.File, .IOException, .InputStream, .OutputStream, .PrintStream, .PrintWriter, .Reader, java.lang.invoke.MethodHandles, .MethodHandles.Lookup, java.lang.reflect.AnnotatedElement, .Executable, .Type, java.math.BigInteger, java.net.URI, .URL, java.nio.ByteOrder, java.nio.charset.Charset, java.nio.file.Path, java.time.Duration, .Instant, .LocalDate, .LocalTime, .ZoneId, java.util.Collections, .Iterator, .List, .Map, .Objects, .Set, java.util.function.Consumer, .Function, .Predicate, java.util.logging.LogRecord, org.graalvm.options.OptionDescriptors, org.graalvm.polyglot.HostAccess.MutableTargetMapping, .HostAccess.TargetMappingPrecedence, .SandboxPolicy, org.graalvm.polyglot.io.ByteSequence, .FileSystem, .MessageTransport, .ProcessHandler

This class is intended to be used by polyglot implementations. Methods in this class are not intended to be used directly. This class and its inner classes break compatibility without notice. Do not use, unless you know what you are doing.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public abstract static class
AbstractPolyglotImpl.AbstractDispatchClass

Marker base class for native-image.

public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class
public abstract static class

Field Summary

Modifier and TypeField and Description
private AbstractPolyglotImpl.APIAccess
private AbstractPolyglotImpl.IOAccessor
private AbstractPolyglotImpl.ManagementAccess
private AbstractPolyglotImpl
private AbstractPolyglotImpl

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public FileSystem
public Object
public Object
buildEngine(String[] permittedLanguages, SandboxPolicy sandboxPolicy, OutputStream out, OutputStream err, InputStream in, Map<String, String> options, boolean allowExperimentalOptions, boolean boundEngine, MessageTransport messageInterceptor, Object logHandler, Object hostLanguage, boolean hostLanguageOnly, boolean registerInActiveEngines, Object polyglotHostService)

public Object
buildLimits(long statementLimit, Predicate<Object> statementLimitSourceFilter, Consumer<Object> onLimit)

public Object
buildSource(String language, Object origin, URI uri, String name, String mimeType, Object content, boolean interactive, boolean internal, boolean cached, Charset encoding, URL url, String path)

public boolean
copyResources(Path targetFolder, String... components)

protected final OptionDescriptors
createAllEngineOptionDescriptors()

Creates a union of all available option descriptors including prev implementations.

protected OptionDescriptors
createEngineOptionDescriptors()

Returns all additional option descriptors of the current polyglot impl or null.

public Object
public Object
public AbstractPolyglotImpl.ThreadScope
public OptionDescriptors
public String
public String
public String
findLanguage(String mimeType)

public String
public String
public final AbstractPolyglotImpl.APIAccess
public Object
public final AbstractPolyglotImpl.IOAccessor
pack-priv MethodHandles.Lookup
public final AbstractPolyglotImpl.ManagementAccess
public final AbstractPolyglotImpl
public final AbstractPolyglotImpl
public abstract int
public final AbstractPolyglotImpl
public void
public Object
initializeModuleToUnnamedAccess(MethodHandles.Lookup unnamedLookup, Object unnamedAccess, Object unnamedAPIAccess, Object unnamedIOAccess, Object unnamedManagementAccess)

public boolean
public boolean
public boolean
public Class<?>
public FileSystem
public ProcessHandler
public Object
public Object
newIOAccess(String name, boolean allowHostFileAccess, boolean allowHostSocketAccess, FileSystem customFileSystem)

public Object
newLogHandler(Object logHandlerOrStream)

public FileSystem
public FileSystem
public <S, T> Object
newTargetTypeMapping(Class<S> sourceType, Class<T> targetType, Predicate<S> acceptsValue, Function<S, T> convertValue, HostAccess.TargetMappingPrecedence precedence)

public void
public void
public final void
public final void
public final void
public final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait