| Package | Description |
|---|---|
| org.htmlunit.corejs.javascript | |
| org.htmlunit.corejs.javascript.commonjs.module | |
| org.htmlunit.corejs.javascript.tools.shell |
| Modifier and Type | Class and Description |
|---|---|
class |
JSScript
Represents a script object built upon a
JSDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
Script |
Context.compileReader(Reader in,
String sourceName,
int lineno,
Object securityDomain)
Compiles the source in the given reader.
|
Script |
Context.compileReader(Reader in,
String sourceName,
int lineno,
Object securityDomain,
Consumer<CompilerEnvirons> compilerEnvironsProcessor) |
Script |
Context.compileReader(Scriptable scope,
Reader in,
String sourceName,
int lineno,
Object securityDomain)
Deprecated.
|
protected Script |
Context.compileString(String source,
Evaluator compiler,
ErrorReporter compilationErrorReporter,
String sourceName,
int lineno,
Object securityDomain,
Consumer<CompilerEnvirons> compilerEnvironsProcessor) |
Script |
Context.compileString(String source,
String sourceName,
int lineno,
Object securityDomain)
Compiles the source in the given string.
|
Script |
Interpreter.createScriptObject(Object bytecode,
Object staticSecurityDomain) |
Script |
Evaluator.createScriptObject(Object bytecode,
Object staticSecurityDomain)
Create a script object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Context.callFunctionWithContinuations(Script script,
Scriptable scope)
Call function that may pause execution by capturing a continuation.
|
Object |
SecurityController.callWithDomain(Object securityDomain,
Context cx,
Script script,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
String |
Context.decompileScript(Script script,
int indent)
Decompile the script.
|
static Object |
ScriptRuntime.doTopCall(Script script,
Context cx,
Scriptable scope,
Scriptable thisObj)
Deprecated.
|
protected Object |
ContextFactory.doTopCall(Script script,
Context cx,
Scriptable scope,
Scriptable thisObj)
Execute top call to script.
|
static Object |
ScriptRuntime.doTopCall(Script script,
Context cx,
Scriptable scope,
Scriptable thisObj,
boolean isTopLevelStrict) |
Object |
Context.executeScriptWithContinuations(Script script,
Scriptable scope)
Execute script that may pause execution by capturing a continuation.
|
Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
Object securityDomain)
Deprecated.
The application should not override this method and instead override
SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope,
Scriptable thisObj, Object[] args). |
static Scriptable |
JavaAdapter.runScript(Script script) |
void |
Interpreter.setEvalScriptFlag(Script script) |
void |
Evaluator.setEvalScriptFlag(Script script)
Mark the given script to indicate it was created by a call to eval() or to a Function
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Script |
ModuleScript.getScript()
Returns the script object representing the code of the module.
|
| Modifier and Type | Method and Description |
|---|---|
RequireBuilder |
RequireBuilder.setPostExec(Script postExec)
Sets the script that should execute in every module's scope after the module's own script has
executed.
|
RequireBuilder |
RequireBuilder.setPreExec(Script preExec)
Sets the script that should execute in every module's scope before the module's own script
has executed.
|
| Constructor and Description |
|---|
ModuleScript(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.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
JavaPolicySecurity.callWithDomain(Object securityDomain,
Context cx,
Script script,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Copyright © 2025 HtmlUnit. All rights reserved.