java.lang.Object
swim.vm.js.JsNodeModuleResolver
- All Implemented Interfaces:
JsModuleResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.SourceloadModuleSource(UriPath moduleId) loadPackage(UriPath packagePath) protected voidprefixModuleSource(UriPath moduleId, StringBuilder sourceBuilder) protected UriPathresolveAbsoluteModulePath(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 UriPathresolveRelativeModulePath(UriPath basePath, UriPath modulePath) final UriPathrootPath()protected voidsuffixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
Constructor Details
-
JsNodeModuleResolver
-
JsNodeModuleResolver
public JsNodeModuleResolver()
-
-
Method Details
-
rootPath
-
resolveModulePath
- Specified by:
resolveModulePathin interfaceJsModuleResolver
-
resolveRelativeModulePath
-
resolveAbsoluteModulePath
-
resolveNodeModulesPath
-
resolveModuleScript
-
resolveModuleDirectory
-
resolveModuleDirectoryIndex
-
resolveModuleDirectoryPackage
-
resolveModulePackage
-
loadPackage
-
prefixModuleSource
-
suffixModuleSource
-
loadModuleSource
- Specified by:
loadModuleSourcein interfaceJsModuleResolver
-