java.lang.Object
swim.vm.js.JsNodeModuleResolver
- All Implemented Interfaces:
JsModuleResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Source
loadModuleSource
(UriPath moduleId) loadPackage
(UriPath packagePath) protected void
prefixModuleSource
(UriPath moduleId, StringBuilder sourceBuilder) protected UriPath
resolveAbsoluteModulePath
(UriPath basePath, UriPath modulePath) resolveModuleDirectory
(UriPath directoryPath) resolveModuleDirectoryIndex
(UriPath directoryPath, String extension) resolveModuleDirectoryPackage
(UriPath directoryPath) resolveModulePackage
(UriPath packagePath) resolveModulePath
(UriPath basePath, UriPath modulePath) resolveModuleScript
(UriPath modulePath, String extension) resolveNodeModulesPath
(UriPath directoryPath, UriPath modulePath) protected UriPath
resolveRelativeModulePath
(UriPath basePath, UriPath modulePath) final UriPath
rootPath()
protected void
suffixModuleSource
(UriPath moduleId, StringBuilder sourceBuilder)
-
Constructor Details
-
JsNodeModuleResolver
-
JsNodeModuleResolver
public JsNodeModuleResolver()
-
-
Method Details
-
rootPath
-
resolveModulePath
- Specified by:
resolveModulePath
in interfaceJsModuleResolver
-
resolveRelativeModulePath
-
resolveAbsoluteModulePath
-
resolveNodeModulesPath
-
resolveModuleScript
-
resolveModuleDirectory
-
resolveModuleDirectoryIndex
-
resolveModuleDirectoryPackage
-
resolveModulePackage
-
loadPackage
-
prefixModuleSource
-
suffixModuleSource
-
loadModuleSource
- Specified by:
loadModuleSource
in interfaceJsModuleResolver
-