java.lang.Object
swim.vm.js.JsGuestModule
- All Implemented Interfaces:
JsModule
-
Constructor Summary
ConstructorDescriptionJsGuestModule
(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.graalvm.polyglot.Value
protected JsGuestModuleObject
protected JsRequireFunction
void
final org.graalvm.polyglot.Value
final UriPath
moduleId()
protected final JsGuestModuleObject
final org.graalvm.polyglot.Source
final JsModuleSystem
final JsRequireFunction
requireModule
(UriPath modulePath)
-
Constructor Details
-
JsGuestModule
public JsGuestModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource)
-
-
Method Details
-
moduleSystem
- Specified by:
moduleSystem
in interfaceJsModule
-
moduleId
-
moduleSource
public final org.graalvm.polyglot.Source moduleSource() -
moduleExports
public final org.graalvm.polyglot.Value moduleExports()- Specified by:
moduleExports
in interfaceJsModule
-
createModuleExports
protected org.graalvm.polyglot.Value createModuleExports() -
createModuleObject
-
moduleObject
-
createRequireFunction
-
requireFunction
-
evalModule
public void evalModule()- Specified by:
evalModule
in interfaceJsModule
-
requireModule
-