java.lang.Object
swim.vm.js.JsGuestModuleLoader
- All Implemented Interfaces:
JsModuleLoader
,JsModuleResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JsModule
createModule
(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource) void
evalModule
(JsModule module) loadModule
(JsModuleSystem moduleSystem, UriPath moduleId) org.graalvm.polyglot.Source
loadModuleSource
(UriPath moduleId) final JsModuleResolver
resolveModulePath
(UriPath basePath, UriPath modulePath)
-
Constructor Details
-
JsGuestModuleLoader
-
JsGuestModuleLoader
public JsGuestModuleLoader()
-
-
Method Details
-
moduleResolver
-
resolveModulePath
- Specified by:
resolveModulePath
in interfaceJsModuleLoader
- Specified by:
resolveModulePath
in interfaceJsModuleResolver
-
loadModuleSource
- Specified by:
loadModuleSource
in interfaceJsModuleResolver
-
loadModule
- Specified by:
loadModule
in interfaceJsModuleLoader
-
createModule
protected JsModule createModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource) -
evalModule
- Specified by:
evalModule
in interfaceJsModuleLoader
-