Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript.commonjs.module |
Provides the public API for the CommonJS Modules/1.1 implementation.
|
net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider |
Provides default implementations for module providers.
|
Modifier and Type | Method and Description |
---|---|
RequireBuilder |
RequireBuilder.setModuleScriptProvider(ModuleScriptProvider moduleScriptProvider)
Sets the
ModuleScriptProvider for the Require instances
that this builder builds. |
Constructor and Description |
---|
Require(Context cx,
Scriptable nativeScope,
ModuleScriptProvider moduleScriptProvider,
Script preExec,
Script postExec,
boolean sandboxed)
Creates a new instance of the require() function.
|
Modifier and Type | Class and Description |
---|---|
class |
CachingModuleScriptProviderBase
Abstract base class that implements caching of loaded module scripts.
|
class |
MultiModuleScriptProvider
A multiplexer for module script providers.
|
class |
SoftCachingModuleScriptProvider
A module script provider that uses a module source provider to load modules
and caches the loaded modules.
|
class |
StrongCachingModuleScriptProvider
A module script provider that uses a module source provider to load modules
and caches the loaded modules.
|
Constructor and Description |
---|
MultiModuleScriptProvider(java.lang.Iterable<? extends ModuleScriptProvider> providers)
Creates a new multiplexing module script provider tht gathers the
specified providers
|