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

pack-priv final Class ModuleToUnnamedProcessHandlerGen

extends ModuleToUnnamedProcessHandler
Class Inheritance
Imports
java.lang.invoke.MethodHandle, .MethodHandles.Lookup, .MethodType, java.util.List, .Objects, org.graalvm.polyglot.impl.ModuleToUnnamedBridge.ModuleToUnnamedProcessHandler, org.graalvm.polyglot.io.ProcessHandler

Generated code used for Truffle unnamed to named module bridge. This code allows polyglot on the classpath to delegate to polyglot on the module-path. This code is generated by the polyglot annotation processor.asdf

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final ModuleToUnnamedProcessHandlerGen.Handles
pack-priv final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static <T extends Throwable> RuntimeException
public Process
start(ProcessHandler.ProcessCommand
the subprocess attributes
command_
)

Implements org.graalvm.polyglot.io.ProcessHandler.start.

A request to start a new subprocess with given attributes.

Inherited from org.graalvm.polyglot.impl.ModuleToUnnamedBridge.ModuleToUnnamedProcessHandler:
methodHandleLookuptoProcessCommand

Field Detail

HANDLESback to summary
private static final ModuleToUnnamedProcessHandlerGen.Handles HANDLES
receiverback to summary
pack-priv final Object receiver

Constructor Detail

ModuleToUnnamedProcessHandlerGenback to summary
public ModuleToUnnamedProcessHandlerGen(Object receiver)

Method Detail

handleException_back to summary
private static <T extends Throwable> RuntimeException handleException_(Throwable t) throws Throwable-:T
Annotations
@SuppressWarnings:unchecked
startback to summary
public Process start(ProcessHandler.ProcessCommand command_)

Implements org.graalvm.polyglot.io.ProcessHandler.start.

Doc from org.graalvm.polyglot.io.ProcessHandler.start.

A request to start a new subprocess with given attributes.

The default implementation uses ProcessBuilder to create the new subprocess. The subprocess current working directory is set to ProcessCommand#getDirectory(). The ProcessCommand#getDirectory() value was either explicitely set by the guest language or the FileSystem's current working directory is used. The subprocess environment is set to ProcessCommand#getEnvironment(), the initial value of ProcessBuilder#environment() is cleaned. The ProcessCommand#getEnvironment() contains the environment variables set by guest language and possibly also the JVM process environment depending on value of Builder#allowEnvironmentAccess(org.graalvm.polyglot.EnvironmentAccess).

Implementation example: ProcessHandlerSnippets#example

Parameters
command_:ProcessHandler.ProcessCommand

the subprocess attributes

Annotations
@Override
org.graalvm.polyglot.impl back to summary

pack-priv final Class ModuleToUnnamedProcessHandlerGen.Handles

extends Object
Class Inheritance
  • java.lang.Object
  • org.graalvm.polyglot.impl.ModuleToUnnamedProcessHandlerGen.Handles

Field Summary

Modifier and TypeField and Description
private final MethodHandle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

start_back to summary
private final MethodHandle start_

Constructor Detail

Handlesback to summary
pack-priv Handles(MethodHandles.Lookup lookup) throws ReflectiveOperationException