Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript | |
net.sourceforge.htmlunit.corejs.javascript.commonjs.module |
Provides the public API for the CommonJS Modules/1.1 implementation.
|
net.sourceforge.htmlunit.corejs.javascript.optimizer | |
net.sourceforge.htmlunit.corejs.javascript.tools.shell |
Modifier and Type | Method and Description |
---|---|
Script |
Context.compileReader(java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Compiles the source in the given reader.
|
Script |
Context.compileReader(Scriptable scope,
java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Deprecated.
|
protected Script |
Context.compileString(java.lang.String source,
Evaluator compiler,
ErrorReporter compilationErrorReporter,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain) |
Script |
Context.compileString(java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Compiles the source in the given string.
|
Script |
Interpreter.createScriptObject(java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
Script |
Evaluator.createScriptObject(java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
Create a script object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Context.decompileScript(Script script,
int indent)
Decompile the script.
|
java.lang.Object |
Context.executeScriptWithContinuations(Script script,
Scriptable scope)
Execute script that may pause execution by capturing a continuation.
|
java.lang.Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
java.lang.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 DebuggableScript |
Context.getDebuggableView(Script script)
Return DebuggableScript instance if any associated with the script.
|
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,
java.net.URI uri,
java.net.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 |
---|---|
Script |
Codegen.createScriptObject(java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
Modifier and Type | Method and Description |
---|---|
static void |
OptRuntime.main(Script script,
java.lang.String[] args) |
void |
Codegen.setEvalScriptFlag(Script script) |
Modifier and Type | Method and Description |
---|---|
static Script |
Main.loadScriptFromSource(Context cx,
java.lang.String scriptSource,
java.lang.String path,
int lineno,
java.lang.Object securityDomain) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
Main.evaluateScript(Script script,
Context cx,
Scriptable scope) |