Uses of Class
org.mozilla.javascript.commonjs.module.RequireBuilder
Package
Description
Provides the public API for the CommonJS Modules/1.1 implementation.
-
Uses of RequireBuilder in org.mozilla.javascript.commonjs.module
Modifier and TypeMethodDescriptionRequireBuilder.setModuleScriptProvider
(ModuleScriptProvider moduleScriptProvider) Sets theModuleScriptProvider
for theRequire
instances that this builder builds.RequireBuilder.setPostExec
(Script postExec) Sets the script that should execute in every module's scope after the module's own script has executed.RequireBuilder.setPreExec
(Script preExec) Sets the script that should execute in every module's scope before the module's own script has executed.RequireBuilder.setSandboxed
(boolean sandboxed) Sets whether the created require() instances will be sandboxed.