Uses of Interface
org.mozilla.javascript.Script
Packages that use Script
Package
Description
Provides the public API for the CommonJS Modules/1.1 implementation.
Provides default implementations for module providers.
-
Uses of Script in org.mozilla.javascript
Classes in org.mozilla.javascript that implement ScriptFields in org.mozilla.javascript declared as ScriptMethods in org.mozilla.javascript that return ScriptModifier and TypeMethodDescriptionprivate static Script
final 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.(package private) final Script
Context.compileString
(String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) Evaluator.createScriptObject
(Object bytecode, Object staticSecurityDomain) Create a script object.Interpreter.createScriptObject
(Object bytecode, Object staticSecurityDomain) Methods in org.mozilla.javascript with parameters of type ScriptModifier 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) Constructors in org.mozilla.javascript with parameters of type Script -
Uses of Script in org.mozilla.javascript.commonjs.module
Fields in org.mozilla.javascript.commonjs.module declared as ScriptModifier and TypeFieldDescriptionprivate final Script
Require.postExec
private Script
RequireBuilder.postExec
private final Script
Require.preExec
private Script
RequireBuilder.preExec
private final Script
ModuleScript.script
Methods in org.mozilla.javascript.commonjs.module that return ScriptModifier and TypeMethodDescriptionModuleScript.getScript()
Returns the script object representing the code of the module.Methods in org.mozilla.javascript.commonjs.module with parameters of type ScriptModifier and TypeMethodDescriptionprivate static void
Require.executeOptionalScript
(Script script, Context cx, Scriptable executionScope) 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.Constructors in org.mozilla.javascript.commonjs.module with parameters of type ScriptModifierConstructorDescriptionModuleScript
(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.commonjs.module.provider
Fields in org.mozilla.javascript.commonjs.module.provider with type parameters of type ScriptModifier and TypeFieldDescriptionprivate ReferenceQueue<Script>
SoftCachingModuleScriptProvider.scriptRefQueue
Constructors in org.mozilla.javascript.commonjs.module.provider with parameters of type ScriptModifierConstructorDescription(package private)
ScriptReference
(Script script, String moduleId, URI uri, URI base, Object validator, ReferenceQueue<Script> refQueue) Constructor parameters in org.mozilla.javascript.commonjs.module.provider with type arguments of type ScriptModifierConstructorDescription(package private)
ScriptReference
(Script script, String moduleId, URI uri, URI base, Object validator, ReferenceQueue<Script> refQueue) -
Uses of Script in org.mozilla.javascript.engine
Fields in org.mozilla.javascript.engine declared as ScriptMethods in org.mozilla.javascript.engine with parameters of type ScriptModifier and TypeMethodDescription(package private) Object
RhinoScriptEngine.eval
(Script script, ScriptContext sc) Constructors in org.mozilla.javascript.engine with parameters of type ScriptModifierConstructorDescription(package private)
RhinoCompiledScript
(RhinoScriptEngine engine, Script script) -
Uses of Script in org.mozilla.javascript.optimizer
Methods in org.mozilla.javascript.optimizer that return ScriptModifier and TypeMethodDescriptionCodegen.createScriptObject
(Object bytecode, Object staticSecurityDomain) Methods in org.mozilla.javascript.optimizer with parameters of type Script -
Uses of Script in org.mozilla.javascript.tools.shell
Fields in org.mozilla.javascript.tools.shell declared as ScriptFields in org.mozilla.javascript.tools.shell with type parameters of type ScriptMethods in org.mozilla.javascript.tools.shell that return ScriptModifier and TypeMethodDescriptionprivate static Script
Main.loadCompiledScript
(Context cx, String path, byte[] data, Object securityDomain) Methods in org.mozilla.javascript.tools.shell with parameters of type ScriptModifier and TypeMethodDescription(package private) void
Constructors in org.mozilla.javascript.tools.shell with parameters of type ScriptModifierConstructorDescription(package private)
Runner
(Scriptable scope, Script script) (package private)
ScriptReference
(String path, byte[] digest, Script script, ReferenceQueue<Script> queue) Constructor parameters in org.mozilla.javascript.tools.shell with type arguments of type ScriptModifierConstructorDescription(package private)
ScriptReference
(String path, byte[] digest, Script script, ReferenceQueue<Script> queue)
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.