| Package | Description |
|---|---|
| org.htmlunit.corejs.javascript | |
| org.htmlunit.corejs.javascript.commonjs.module | |
| org.htmlunit.corejs.javascript.tools.shell |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Function
This is interface that all functions in JavaScript must implement.
|
interface |
RefCallable
Object that can allows assignments to the result of function calls.
|
interface |
SerializableCallable
This interface makes it possible to pass a lambda function to the various methods in
LambdaConstructor and LambdaFunction that require a Callable that is also Serializable.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrowFunction
The class for Arrow Function Definitions EcmaScript 6 Rev 14, March 8, 2013 Draft spec , 13.2
|
class |
BaseFunction
The base class for Function objects.
|
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 |
KnownBuiltInFunction
This class implements a lambda function which is known to the runtime system and which may be
treated specially by the interpreter or runtime.
|
class |
LambdaConstructor
This class implements a JavaScript function that may be used as a constructor by delegating to an
interface that can be easily implemented as a lambda.
|
class |
LambdaFunction
This class implements a single JavaScript function that has the prototype of the built-in
Function class, and which is implemented using a single function that can easily be implemented
using a lambda expression.
|
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 |
|---|---|
Callable |
ScriptRuntime.LookupResult.getCallable()
Coerce the result to a Callable.
|
static Callable |
ScriptRuntime.getElemFunctionAndThis(Object obj,
Object elem,
Context cx)
Deprecated.
|
static Callable |
ScriptRuntime.getElemFunctionAndThis(Object obj,
Object elem,
Context cx,
Scriptable scope)
|
static Callable |
ScriptRuntime.getElemFunctionAndThisOptional(Object obj,
Object elem,
Context cx,
Scriptable scope)
|
static Callable |
ScriptRuntime.getNameFunctionAndThis(String name,
Context cx,
Scriptable scope)
Deprecated.
|
static Callable |
ScriptRuntime.getNameFunctionAndThisOptional(String name,
Context cx,
Scriptable scope)
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(Object obj,
String property,
Context cx)
Deprecated.
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(Object obj,
String property,
Context cx,
Scriptable scope)
Deprecated.
|
static Callable |
ScriptRuntime.getPropFunctionAndThisOptional(Object obj,
String property,
Context cx,
Scriptable scope)
Deprecated.
|
static Callable |
ScriptRuntime.getValueFunctionAndThis(Object value,
Context cx)
Deprecated.
Use
ScriptRuntime.getValueAndThis(Object, Context) instead |
static Callable |
ScriptRuntime.getValueFunctionAndThisOptional(Object value,
Context cx)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
abstract Object |
PolicySecurityController.SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
static Object |
Context.call(ContextFactory factory,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call
call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
using the Context instance associated with the current thread. |
Object |
Context.callFunctionWithContinuations(Callable function,
Scriptable scope,
Object[] args)
Call function that may pause execution by capturing a continuation.
|
static Ref |
ScriptRuntime.callRef(Callable function,
Scriptable thisObj,
Object[] args,
Context cx)
Perform function call in reference context.
|
static Object |
ScriptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
String filename,
int lineNumber,
boolean isOptionalChainingCall) |
Object |
SecurityController.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call
call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
of callable under restricted security domain where an action is allowed only if it is
allowed according to the Java stack on the moment of the execWithDomain call and
securityDomain. |
Object |
PolicySecurityController.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
static Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Deprecated.
|
protected Object |
ContextFactory.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Execute top call to script or function.
|
static Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
boolean isTopLevelStrict) |
static Scriptable |
ScriptRuntime.getApplyOrCallThis(Context cx,
Scriptable scope,
Object arg0,
int l,
Callable target) |
static Object |
NativeJSON.parse(Context cx,
Scriptable scope,
String jtext,
Callable reviver) |
void |
ScriptableObject.setGetterOrSetter(Object name,
int index,
Callable getterOrSetter,
boolean isSetter)
Implement the legacy "__defineGetter__" and "__defineSetter__" methods.
|
| Constructor and Description |
|---|
ArrowFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Scriptable boundHomeObject) |
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Object[] boundArgs) |
| Modifier and Type | Class and Description |
|---|---|
class |
Require
Implements the require() function as defined by Common JS modules.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
JavaPolicySecurity.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Copyright © 2025 HtmlUnit. All rights reserved.