- java.lang.Object
-
- swim.vm.js.JsStaticModuleResolver
-
- All Implemented Interfaces:
JsModuleResolver
public class JsStaticModuleResolver extends Object implements JsModuleResolver
-
-
Constructor Summary
Constructors Constructor Description JsStaticModuleResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineModuleSource(String moduleId, String source)
void
defineModuleSource(UriPath moduleId, String source)
org.graalvm.polyglot.Source
loadModuleSource(UriPath moduleId)
protected void
prefixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
protected String
processModuleSource(UriPath moduleId, String source)
UriPath
resolveModulePath(UriPath basePath, UriPath modulePath)
protected void
suffixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
-
-
Method Detail
-
resolveModulePath
public UriPath resolveModulePath(UriPath basePath, UriPath modulePath)
- Specified by:
resolveModulePath
in interfaceJsModuleResolver
-
loadModuleSource
public org.graalvm.polyglot.Source loadModuleSource(UriPath moduleId)
- Specified by:
loadModuleSource
in interfaceJsModuleResolver
-
prefixModuleSource
protected void prefixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
suffixModuleSource
protected void suffixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
-