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

pack-priv final Class ModuleToUnnamedMessageTransportGen

extends ModuleToUnnamedMessageTransport
Class Inheritance
Imports
java.lang.invoke.MethodHandle, .MethodHandles.Lookup, .MethodType, java.net.URI, java.util.List, .Objects, org.graalvm.polyglot.impl.ModuleToUnnamedBridge.ModuleToUnnamedMessageTransport, org.graalvm.polyglot.io.MessageEndpoint, .MessageTransport

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 ModuleToUnnamedMessageTransportGen.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 MessageEndpoint
open(URI
the connection URI
uri_
,
MessageEndpoint
the peer endpoint representation
peerEndpoint_
)

Implements org.graalvm.polyglot.io.MessageTransport.open.

Called when a connection to an URI is to be established.

public String
Inherited from org.graalvm.polyglot.impl.ModuleToUnnamedBridge.ModuleToUnnamedMessageTransport:
fromMessageEndpointmethodHandleLookuptoMessageEndpoint

Field Detail

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

Constructor Detail

ModuleToUnnamedMessageTransportGenback to summary
public ModuleToUnnamedMessageTransportGen(Object receiver)

Method Detail

handleException_back to summary
private static <T extends Throwable> RuntimeException handleException_(Throwable t) throws Throwable-:T
Annotations
@SuppressWarnings:unchecked
openback to summary
public MessageEndpoint open(URI uri_, MessageEndpoint peerEndpoint_)

Implements org.graalvm.polyglot.io.MessageTransport.open.

Doc from org.graalvm.polyglot.io.MessageTransport.open.

Called when a connection to an URI is to be established. The virtualized connection is either opened and an endpoint call back is returned, or the connection is not virtualized in which case null is returned.

This method can be called concurrently from multiple threads. However, the MessageEndpoint ought to be called on one thread at a time, unless you're sure that the particular implementation can handle concurrent calls. The same holds true for the returned endpoint, it's called synchronously.

Parameters
uri_:URI

the connection URI

peerEndpoint_:MessageEndpoint

the peer endpoint representation

Returns:MessageEndpoint

an implementation of MessageEndpoint call back, or null.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.graalvm.polyglot.impl.ModuleToUnnamedBridge.ModuleToUnnamedMessageTransport.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

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

pack-priv final Class ModuleToUnnamedMessageTransportGen.Handles

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

Field Summary

Modifier and TypeField and Description
private final MethodHandle
private final MethodHandle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

open_back to summary
private final MethodHandle open_
toString_back to summary
private final MethodHandle toString_

Constructor Detail

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