- java.lang.Object
-
- swim.vm.js.JsGuestModule
-
-
Constructor Summary
Constructors Constructor Description JsGuestModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.graalvm.polyglot.Value
createModuleExports()
protected JsGuestModuleObject
createModuleObject()
protected JsRequireFunction
createRequireFunction()
void
evalModule()
org.graalvm.polyglot.Value
moduleExports()
UriPath
moduleId()
protected JsGuestModuleObject
moduleObject()
org.graalvm.polyglot.Source
moduleSource()
JsModuleSystem
moduleSystem()
JsRequireFunction
requireFunction()
JsModule
requireModule(UriPath modulePath)
-
-
-
Constructor Detail
-
JsGuestModule
public JsGuestModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource)
-
-
Method Detail
-
moduleSystem
public final JsModuleSystem moduleSystem()
- Specified by:
moduleSystem
in interfaceJsModule
-
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
protected JsGuestModuleObject createModuleObject()
-
moduleObject
protected final JsGuestModuleObject moduleObject()
-
createRequireFunction
protected JsRequireFunction createRequireFunction()
-
requireFunction
public final JsRequireFunction requireFunction()
-
evalModule
public void evalModule()
- Specified by:
evalModule
in interfaceJsModule
-
-