- java.lang.Object
-
- swim.vm.js.JsNodeModuleResolver
-
- All Implemented Interfaces:
JsModuleResolver
public class JsNodeModuleResolver extends Object implements JsModuleResolver
-
-
Constructor Summary
Constructors Constructor Description JsNodeModuleResolver()JsNodeModuleResolver(UriPath rootPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.graalvm.polyglot.SourceloadModuleSource(UriPath moduleId)ValueloadPackage(UriPath packagePath)protected voidprefixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)protected UriPathresolveAbsoluteModulePath(UriPath basePath, UriPath modulePath)UriPathresolveModuleDirectory(UriPath directoryPath)UriPathresolveModuleDirectoryIndex(UriPath directoryPath, String extension)UriPathresolveModuleDirectoryPackage(UriPath directoryPath)UriPathresolveModulePackage(UriPath packagePath)UriPathresolveModulePath(UriPath basePath, UriPath modulePath)UriPathresolveModuleScript(UriPath modulePath, String extension)UriPathresolveNodeModulesPath(UriPath directoryPath, UriPath modulePath)protected UriPathresolveRelativeModulePath(UriPath basePath, UriPath modulePath)UriPathrootPath()protected voidsuffixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
-
-
Constructor Detail
-
JsNodeModuleResolver
public JsNodeModuleResolver(UriPath rootPath)
-
JsNodeModuleResolver
public JsNodeModuleResolver()
-
-
Method Detail
-
rootPath
public final UriPath rootPath()
-
resolveModulePath
public UriPath resolveModulePath(UriPath basePath, UriPath modulePath)
- Specified by:
resolveModulePathin interfaceJsModuleResolver
-
resolveRelativeModulePath
protected UriPath resolveRelativeModulePath(UriPath basePath, UriPath modulePath)
-
resolveAbsoluteModulePath
protected UriPath resolveAbsoluteModulePath(UriPath basePath, UriPath modulePath)
-
resolveNodeModulesPath
public UriPath resolveNodeModulesPath(UriPath directoryPath, UriPath modulePath)
-
resolveModuleDirectoryIndex
public UriPath resolveModuleDirectoryIndex(UriPath directoryPath, String extension)
-
prefixModuleSource
protected void prefixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
suffixModuleSource
protected void suffixModuleSource(UriPath moduleId, StringBuilder sourceBuilder)
-
loadModuleSource
public org.graalvm.polyglot.Source loadModuleSource(UriPath moduleId)
- Specified by:
loadModuleSourcein interfaceJsModuleResolver
-
-