Uses of Interface
org.mozilla.javascript.Script
Package
Description
Provides the public API for the CommonJS Modules/1.1 implementation.
-
Uses of Script in org.mozilla.javascript
Modifier and TypeMethodDescriptionfinal Script
Context.compileReader
(Reader in, String sourceName, int lineno, Object securityDomain) Compiles the source in the given reader.final Script
Context.compileReader
(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) Deprecated.final Script
Context.compileString
(String source, String sourceName, int lineno, Object securityDomain) Compiles the source in the given string.Evaluator.createScriptObject
(Object bytecode, Object staticSecurityDomain) Create a script object.Interpreter.createScriptObject
(Object bytecode, Object staticSecurityDomain) Modifier and TypeMethodDescriptionfinal String
Context.decompileScript
(Script script, int indent) Decompile the script.Context.executeScriptWithContinuations
(Script script, Scriptable scope) Execute script that may pause execution by capturing a continuation.SecurityController.execWithDomain
(Context cx, Scriptable scope, Script script, Object securityDomain) Deprecated.static DebuggableScript
Context.getDebuggableView
(Script script) Return DebuggableScript instance if any associated with the script.static Scriptable
void
Evaluator.setEvalScriptFlag
(Script script) Mark the given script to indicate it was created by a call to eval() or to a Function constructor.void
Interpreter.setEvalScriptFlag
(Script script) -
Uses of Script in org.mozilla.javascript.commonjs.module
Modifier and TypeMethodDescriptionModuleScript.getScript()
Returns the script object representing the code of the module.Modifier and TypeMethodDescriptionRequireBuilder.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.ModifierConstructorDescriptionModuleScript
(Script script, URI uri, URI base) Creates a new CommonJS module.Require
(Context cx, Scriptable nativeScope, ModuleScriptProvider moduleScriptProvider, Script preExec, Script postExec, boolean sandboxed) Creates a new instance of the require() function. -
Uses of Script in org.mozilla.javascript.optimizer
Modifier and TypeMethodDescriptionCodegen.createScriptObject
(Object bytecode, Object staticSecurityDomain)
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.