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.regexp | |
net.sourceforge.htmlunit.corejs.javascript.tools.shell |
Modifier and Type | Class and Description |
---|---|
class |
BaseFunction
The base class for Function objects
See ECMA 15.3.
|
class |
BoundFunction
The class for results of the Function.bind operation
EcmaScript 5 spec, 15.3.4.5
|
class |
Delegator
This is a helper class for implementing wrappers around Scriptable
objects.
|
class |
FunctionObject |
class |
IdFunctionObject |
class |
NativeContinuation |
class |
NativeFunction
This class implements the Function native object.
|
class |
NativeJavaClass
This class reflects Java classes into the JavaScript environment, mainly
for constructors and static members.
|
class |
NativeJavaConstructor
This class reflects a single Java constructor into the JavaScript
environment.
|
class |
NativeJavaMethod
This class reflects Java methods into the JavaScript environment and
handles overloading of methods.
|
class |
NativeJavaTopPackage
This class reflects Java packages into the JavaScript environment.
|
class |
Synchronizer
This class provides support for implementing Java-style synchronized
methods in Javascript.
|
Modifier and Type | Method and Description |
---|---|
Function |
Context.compileFunction(Scriptable scope,
java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Compile a JavaScript function.
|
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
Create a function object.
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
static Function |
TopLevel.getBuiltinCtor(Context cx,
Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object constructor with the given
type from the given scope . |
static Function |
JavaAdapter.getFunction(Scriptable obj,
java.lang.String functionName) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
java.lang.Object[] args,
long argsToWrap)
Utility method which dynamically binds a Context to the current thread,
if none already exists.
|
java.lang.String |
Context.decompileFunction(Function fun,
int indent)
Decompile a JavaScript Function.
|
java.lang.String |
Context.decompileFunctionBody(Function fun,
int indent)
Decompile the body of a JavaScript Function.
|
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Deprecated.
Kept only for compatibility.
|
Modifier and Type | Class and Description |
---|---|
class |
Require
Implements the require() function as defined by
Common JS modules.
|
Modifier and Type | Method and Description |
---|---|
Function |
Codegen.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
Modifier and Type | Class and Description |
---|---|
class |
NativeRegExp
This class implements the RegExp native object.
|
Modifier and Type | Method and Description |
---|---|
static void |
Global.defineClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load a Java class that defines a JavaScript object using the
conventions outlined in ScriptableObject.defineClass.
|
static java.lang.Object |
Global.deserialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
static java.lang.Object |
Global.doctest(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Example: doctest("js> function f() {\n > return 3;\n > }\njs> f();\n3\n"); returns 2
(since 2 tests were executed).
|
static void |
Global.gc(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
static void |
Global.help(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print a help message.
|
static void |
Global.load(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a set of JavaScript source files.
|
static void |
Global.loadClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a script compiled to a class file.
|
static java.lang.Object |
Global.print(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print the string values of its arguments.
|
static void |
Global.quit(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Call embedding-specific quit action passing its argument as
int32 exit code.
|
static java.lang.Object |
Global.readFile(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The readFile reads the given file content and convert it to a string
using the specified character coding or default character coding if
explicit coding argument is not given.
|
static java.lang.Object |
Global.readUrl(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The readUrl opens connection to the given URL, read all its data
and converts them to a string
using the specified character coding or default character coding if
explicit coding argument is not given.
|
static java.lang.Object |
Global.runCommand(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Execute the specified command with the given argument and options
as a separate process and return the exit status of the process.
|
static void |
Global.seal(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The seal function seals all supplied arguments.
|
static void |
Global.serialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
static java.lang.Object |
Global.spawn(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The spawn function runs a given function or script in a different
thread.
|
static java.lang.Object |
Global.sync(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The sync function creates a synchronized function (in the sense
of a Java synchronized method) from an existing function.
|
static java.lang.Object |
Global.toint32(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Convert the argument to int32 number.
|
static double |
Global.version(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Get and set the language version.
|