| Modifier and Type | Interface and Description |
|---|---|
interface |
Function
This is interface that all functions in JavaScript must implement.
|
| 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 |
ES6Generator |
class |
ES6Iterator |
class |
FunctionObject |
class |
IdFunctionObject |
class |
IdScriptableObject
Base class for native object implementation that uses IdFunctionObject to export its methods to
script via <class-name>.prototype object.
|
class |
ImporterTopLevel
Class ImporterTopLevel
This class defines a ScriptableObject that can be instantiated as a top-level ("global")
object to provide functionality similar to Java's "import" statement.
|
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 |
NativeArray
This class implements the Array native object.
|
class |
NativeArrayIterator |
class |
NativeCall
This class implements the activation object.
|
class |
NativeCallSite
This class is used by the V8 extension "Error.prepareStackTrace."
|
class |
NativeCollectionIterator |
class |
NativeConsole |
class |
NativeContinuation |
class |
NativeFunction
This class implements the Function native object.
|
class |
NativeGenerator
This class implements generator objects.
|
class |
NativeIterator
This class implements iterator objects.
|
static class |
NativeIterator.StopIteration |
class |
NativeJavaArray
This class reflects Java arrays into the JavaScript environment.
|
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 |
NativeJavaList
NativeJavaList is a wrapper for java objects implementing java.util.List
interface. |
class |
NativeJavaMap
NativeJavaMap is a wrapper for java objects implementing java.util.Map
interface. |
class |
NativeJavaMethod
This class reflects Java methods into the JavaScript environment and handles overloading of
methods.
|
class |
NativeJavaObject
This class reflects non-Array Java objects into the JavaScript environment.
|
class |
NativeJavaPackage
This class reflects Java packages into the JavaScript environment.
|
class |
NativeJavaTopPackage
This class reflects Java packages into the JavaScript environment.
|
class |
NativeJSON
This class implements the JSON native object.
|
class |
NativeMap |
class |
NativeObject
This class implements the Object native object.
|
class |
NativePromise |
class |
NativeSet |
class |
NativeStringIterator |
class |
NativeSymbol
This is an implementation of the standard "Symbol" type that implements all of its weird
properties.
|
class |
NativeWeakMap
This is an implementation of the ES6 WeakMap class.
|
class |
NativeWeakSet
This is an implementation of the ES6 WeakSet class.
|
class |
NativeWith
This class implements the object lookup required for the
with statement. |
class |
ScriptableObject
This is the default implementation of the Scriptable interface.
|
class |
Synchronizer
This class provides support for implementing Java-style synchronized methods in Javascript.
|
class |
TopLevel
A top-level scope object that provides special means to cache and preserve the initial values of
the built-in constructor properties for better ECMAScript compliance.
|
| Modifier and Type | Field and Description |
|---|---|
protected Scriptable |
Delegator.obj |
protected Scriptable |
NativeWith.parent |
protected Scriptable |
NativeJavaObject.parent
The parent scope of this object.
|
protected Scriptable |
NativeWith.prototype |
protected Scriptable |
NativeJavaObject.prototype
The prototype of this object.
|
static Scriptable |
Undefined.SCRIPTABLE_UNDEFINED
An alternate representation of undefined, to be used only when we need to pass it to a method
that takes as Scriptable as a parameter.
|
| Modifier and Type | Field and Description |
|---|---|
static Class<Scriptable> |
ScriptRuntime.ScriptableClass |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable.
|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing.
|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java
inheritance to JavaScript prototype-based inheritance.
|
| Modifier and Type | Method and Description |
|---|---|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
String id)
Returns the object in the scope chain that has a given property.
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
LambdaFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
LambdaConstructor.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
Function.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor.
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
Object[] args)
Note that if the
delegee is null, this method creates a new
instance of the Delegator itself rather than forwarding the call to the delegee
. |
Scriptable |
Constructable.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor.
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
Object[] extraArgs) |
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
ArrowFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
Object adapter) |
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
boolean requiresArgumentObject,
Scriptable homeObject) |
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
Scriptable homeObject)
|
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args,
boolean isStrict)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
boolean requiresArgumentObject,
Scriptable homeObject) |
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
Scriptable homeObject)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args,
boolean isStrict)
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope) |
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new
Scriptable instance using the default constructor for the class of the
underlying Java method. |
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object.
|
protected static Scriptable |
ScriptableObject.ensureScriptable(Object arg) |
static Scriptable |
ScriptRuntime.enterDotQuery(Object value,
Scriptable scope) |
static Scriptable |
ScriptRuntime.enterWith(Object obj,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.getApplyOrCallThis(Context cx,
Scriptable scope,
Object arg0,
int l,
Callable target) |
static Scriptable |
ScriptableObject.getArrayPrototype(Scriptable scope) |
static Scriptable |
TopLevel.getBuiltinPrototype(Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object prototype with the given
type from
the given scope. |
Scriptable |
TopLevel.getBuiltinPrototype(TopLevel.Builtins type)
Get the cached built-in object prototype from this scope with the given
type. |
Scriptable |
BaseFunction.getClassPrototype() |
static Scriptable |
ScriptableObject.getClassPrototype(Scriptable scope,
String className)
Get the prototype for the named class.
|
Scriptable |
Delegator.getDelegee()
Retrieve the delegee.
|
Scriptable |
EcmaError.getErrorObject()
Deprecated.
Always returns null.
|
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope)
Get the Function.prototype property.
|
static Scriptable |
ScriptableObject.getGeneratorFunctionPrototype(Scriptable scope) |
Scriptable |
NativeCall.getHomeObject() |
Scriptable |
BaseFunction.getHomeObject() |
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope)
Get the Object.prototype property.
|
Scriptable |
ScriptableObject.getParentScope()
Returns the parent (enclosing) scope of the object.
|
Scriptable |
Scriptable.getParentScope()
Get the parent scope of the object.
|
Scriptable |
NativeWith.getParentScope() |
Scriptable |
NativeJavaObject.getParentScope()
Returns the parent (enclosing) scope of the object.
|
Scriptable |
Delegator.getParentScope() |
Scriptable |
ScriptableObject.getPrototype()
Returns the prototype of the object.
|
Scriptable |
Scriptable.getPrototype()
Get the prototype of the object.
|
Scriptable |
NativeWith.getPrototype() |
Scriptable |
NativeJavaObject.getPrototype() |
Scriptable |
NativeJavaArray.getPrototype() |
Scriptable |
IdFunctionObject.getPrototype() |
Scriptable |
Delegator.getPrototype() |
static Scriptable |
ScriptRuntime.getTemplateLiteralCallSite(Context cx,
Scriptable scope,
Object[] strings,
int index) |
Scriptable |
ScriptRuntime.LookupResult.getThis() |
static Scriptable |
ScriptRuntime.getTopCallScope(Context cx) |
static Scriptable |
ScriptableObject.getTopLevelScope(Scriptable obj)
Get the global scope.
|
Scriptable |
Context.initSafeStandardObjects(ScriptableObject scope)
Initialize the standard objects, leaving out those that offer access directly to Java
classes.
|
Scriptable |
Context.initStandardObjects(ScriptableObject scope)
Initialize the standard objects.
|
static Scriptable |
ScriptRuntime.lastStoredScriptable(Context cx)
Deprecated.
|
static Scriptable |
ScriptRuntime.leaveDotQuery(Scriptable scope) |
static Scriptable |
ScriptRuntime.leaveWith(Scriptable scope) |
Scriptable |
Context.newArray(Scriptable scope,
int length)
Create an array with a specified initial length.
|
Scriptable |
Context.newArray(Scriptable scope,
Object[] elements)
Create an array with a set of initial elements.
|
static Scriptable |
ScriptRuntime.newArrayLiteral(Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
Object[] args) |
static Scriptable |
ScriptRuntime.newCatchScope(Throwable t,
Scriptable lastCatchScope,
String exceptionName,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
String constructorName,
Object[] args) |
static Scriptable |
ScriptRuntime.newObject(Object ctor,
Context cx,
Scriptable scope,
Object[] args)
Operator new.
|
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object.
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName)
Create a new JavaScript object by executing the named constructor.
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName,
Object[] args)
Creates a new JavaScript object by executing the named constructor.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope)
|
static Scriptable |
JavaAdapter.runScript(Script script) |
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly) |
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val)
Convert the value to an object.
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated.
Use
ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
static Scriptable |
Context.toObject(Object value,
Scriptable scope)
Convert the value to an JavaScript object value.
|
static Scriptable |
Context.toObject(Object value,
Scriptable scope,
Class<?> staticType)
Deprecated.
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val) |
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated.
Use
ScriptRuntime.toObject(Scriptable, Object) instead. |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj)
Deprecated.
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj,
Scriptable scope) |
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
Object javaObject,
Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from
JavaScript.
|
static Scriptable |
ScriptRuntime.wrapException(Throwable t,
Scriptable scope,
Context cx) |
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
Class<?> javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and
use as constructor from JavaScript.
|
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
Object obj)
Wrap an object newly created by a constructor call.
|
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
| Modifier and Type | Method and Description |
|---|---|
void |
ScriptableObject.LambdaSetterFunction.accept(Scriptable scope,
Object value) |
Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType) |
void |
FunctionObject.addAsConstructor(Scriptable scope,
Scriptable prototype)
Define this function as a JavaScript constructor.
|
void |
FunctionObject.addAsConstructor(Scriptable scope,
Scriptable prototype,
int attributes)
Define this function as a JavaScript constructor.
|
void |
IdFunctionObject.addAsProperty(Scriptable target) |
protected void |
IdScriptableObject.addIdFunctionProperty(Scriptable obj,
Object tag,
int id,
String name,
int arity) |
static void |
ScriptRuntimeES6.addSymbolSpecies(Context cx,
Scriptable scope,
ScriptableObject constructor)
Registers the symbol
[Symbol.species] on the given constructor function. |
static void |
ScriptRuntimeES6.addSymbolUnscopables(Context cx,
Scriptable scope,
ScriptableObject constructor,
LazilyLoadedCtor value)
Registers the symbol
[Symbol.unscopables] on the given constructor function. |
Object |
ScriptableObject.LambdaGetterFunction.apply(Scriptable scope) |
boolean |
BuiltInSlot.Setter.apply(U builtIn,
Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
Object |
BuiltInSlot.Getter.apply(U builtIn,
Scriptable start) |
static Object |
ScriptRuntime.applyOrCall(boolean isApply,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Function.prototype.apply and Function.prototype.call
See Ecma 15.3.4.[34]
|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
String id)
Returns the object in the scope chain that has a given property.
|
protected static ScriptableObject |
ScriptableObject.buildDataDescriptor(Scriptable scope,
Object value,
int attributes) |
void |
TopLevel.cacheBuiltins(Scriptable scope,
boolean sealed)
Cache the built-in ECMAScript objects to protect them against modifications by the script.
|
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
Callable.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
using the Context instance associated with the current thread. |
static Object |
ScriptRuntime.call(Context cx,
Object fun,
Object thisArg,
Object[] args,
Scriptable scope)
Deprecated.
The method is only present for compatibility.
|
Object |
ScriptRuntime.LookupResult.call(Context cx,
Scriptable scope,
Object[] args)
A convenience method to coerce the result to a Callable as in "getCallable()", then call
the result with ths stored "this".
|
Object |
Synchronizer.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeJavaTopPackage.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeJavaMethod.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeJavaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeJavaClass.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeContinuation.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
LambdaFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
LambdaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
IdFunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
FunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Performs conversions on argument types if needed and invokes the underlying Java method or
constructor.
|
Object |
Function.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call the function.
|
Object |
Delegator.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
Callable.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Perform the call.
|
Object |
BoundFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] extraArgs) |
Object |
BaseFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Should be overridden.
|
Object |
ArrowFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
Context.callFunctionWithContinuations(Callable function,
Scriptable scope,
Object[] args)
Call function that may pause execution by capturing a continuation.
|
static Object |
ScriptRuntime.callIterator(Object obj,
Context cx,
Scriptable scope)
Given an object, get the "Symbol.iterator" element, throw a TypeError if it is not present,
then call the result, (throwing a TypeError if the result is not a function), and return that
result, whatever it is.
|
static Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
Object[] args,
long argsToWrap)
Utility method which dynamically binds a Context to the current thread, if none already
exists.
|
static Object |
ScriptableObject.callMethod(Context cx,
Scriptable obj,
String methodName,
Object[] args)
Call a method of an object.
|
static Object |
ScriptableObject.callMethod(Scriptable obj,
String methodName,
Object[] args)
Call a method of an object.
|
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
Callable.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 |
ArrayLikeAbstractOperations.coercibleIterativeMethod(Context cx,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable o,
Object[] args,
long length) |
protected Function |
Context.compileFunction(Scriptable scope,
String source,
Evaluator compiler,
ErrorReporter compilationErrorReporter,
String sourceName,
int lineno,
Object securityDomain) |
Function |
Context.compileFunction(Scriptable scope,
String source,
String sourceName,
int lineno,
Object securityDomain)
Compile a JavaScript function.
|
protected Object |
Context.compileImpl(Scriptable scope,
String sourceString,
String sourceName,
int lineno,
Object securityDomain,
boolean returnFunction,
Evaluator compiler,
ErrorReporter compilationErrorReporter,
Consumer<CompilerEnvirons> compilerEnvironProcessor) |
Script |
Context.compileReader(Scriptable scope,
Reader in,
String sourceName,
int lineno,
Object securityDomain)
Deprecated.
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
LambdaFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
LambdaConstructor.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
Function.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor.
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
Object[] args)
Note that if the
delegee is null, this method creates a new
instance of the Delegator itself rather than forwarding the call to the delegee
. |
Scriptable |
Constructable.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor.
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
Object[] extraArgs) |
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
ArrowFunction.construct(Context cx,
Scriptable scope,
Object[] args) |
static EcmaError |
NativeGlobal.constructError(Context cx,
String error,
String message,
Scriptable scope)
Deprecated.
Use
ScriptRuntime.constructError(String,String) instead. |
static EcmaError |
NativeGlobal.constructError(Context cx,
String error,
String message,
Scriptable scope,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
Deprecated.
|
static Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
Object arg,
Class<?> desired)
Deprecated.
Use
FunctionObject.getTypeTag(Class) and #convertArg(Context, Scriptable,
Object, int, boolean) for type conversion. |
static Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
Object arg,
int typeTag) |
static <T> T |
LambdaConstructor.convertThisObject(Scriptable thisObj,
Class<T> targetClass)
A convenience method to convert JavaScript's "this" object into a target class and throw a
TypeError if it does not match.
|
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
Object adapter) |
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
boolean requiresArgumentObject,
Scriptable homeObject) |
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
Scriptable homeObject)
|
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args,
boolean isStrict)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
boolean requiresArgumentObject,
Scriptable homeObject) |
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
Object[] args,
boolean isStrict,
boolean argsHasRest,
Scriptable homeObject)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args,
boolean isStrict)
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
Object bytecode,
Object staticSecurityDomain) |
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
Object bytecode,
Object staticSecurityDomain)
Create a function object.
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope) |
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new
Scriptable instance using the default constructor for the class of the
underlying Java method. |
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object.
|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable.
|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing.
|
static <T extends Scriptable> |
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java
inheritance to JavaScript prototype-based inheritance.
|
void |
ScriptableObject.defineConst(String name,
Scriptable start) |
void |
ConstProperties.defineConst(String name,
Scriptable start)
Reserves a definition spot for a const.
|
static void |
ScriptableObject.defineConstProperty(Scriptable destination,
String propertyName)
Utility method to add properties to arbitrary Scriptable object.
|
void |
LambdaConstructor.defineConstructorMethod(Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property directly on the constructor that is implemented under the covers
by a LambdaFunction, and override the properties of its "name", "length", "arity", and
"protoyupe" properties.
|
void |
LambdaConstructor.defineConstructorMethod(Scriptable scope,
String name,
int length,
SerializableCallable target,
int attributes)
Define a function property directly on the constructor that is implemented under the covers
by a LambdaFunction.
|
void |
LambdaConstructor.defineConstructorMethod(Scriptable scope,
String name,
int length,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property directly on the constructor that is implemented under the covers
by a LambdaFunction, and override the properties of its "name", "length", and "arity"
properties.
|
void |
LambdaConstructor.defineConstructorMethod(Scriptable scope,
Symbol key,
String name,
int length,
SerializableCallable target,
int attributes)
Define a function property directly on the constructor that is implemented under the covers
by a LambdaFunction.
|
void |
LambdaConstructor.defineKnownBuiltInPrototypeMethod(Object tag,
Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property on the prototype of the constructor using a KnownBuiltInFunction
under the covers.
|
void |
ScriptableObject.defineProperty(Scriptable scope,
String name,
int length,
SerializableCallable target,
int attributes,
int propertyAttributes)
Utility method to add lambda properties to arbitrary Scriptable object.
|
static void |
ScriptableObject.defineProperty(Scriptable destination,
String propertyName,
Object value,
int attributes)
Utility method to add properties to arbitrary Scriptable object.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
String name,
int length,
SerializableCallable target)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
String name,
int length,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
String name,
int length,
SerializableCallable target,
int attributes,
int propertyAttributes,
boolean defaultPrototype)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers and control the prototype of the new function
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
SymbolKey name,
int length,
Object prototype,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
SymbolKey name,
int length,
SerializableCallable target,
int attributes,
int propertyAttributes)
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
static Object |
ScriptRuntime.delete(Object obj,
Object id,
Context cx,
Scriptable scope,
boolean isName)
The delete operator
See ECMA 11.4.1
In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]]
method returns a value.
|
static boolean |
ScriptRuntime.deleteObjectElem(Scriptable target,
Object elem,
Context cx) |
static boolean |
ScriptableObject.deleteProperty(Scriptable obj,
int index)
Removes the property from an object or its prototype chain.
|
static boolean |
ScriptableObject.deleteProperty(Scriptable obj,
String name)
Removes the property from an object or its prototype chain.
|
static boolean |
ScriptableObject.deleteProperty(Scriptable obj,
Symbol key)
A version of deleteProperty for properties with Symbol keys.
|
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 Object |
ScriptRuntime.elemIncrDecr(Object obj,
Object index,
Context cx,
Scriptable scope,
int incrDecrMask) |
static void |
ScriptRuntime.enterActivationFunction(Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.enterDotQuery(Object value,
Scriptable scope) |
static Scriptable |
ScriptRuntime.enterWith(Object obj,
Context cx,
Scriptable scope) |
static Object |
ScriptRuntime.enumInit(Object value,
Context cx,
Scriptable scope,
int enumType) |
static Object |
ScriptRuntime.evalSpecial(Context cx,
Scriptable scope,
Object thisArg,
Object[] args,
String filename,
int lineNumber)
The eval function property of the global object.
|
Object |
Context.evaluateReader(Scriptable scope,
Reader in,
String sourceName,
int lineno,
Object securityDomain)
Evaluate a reader as JavaScript source.
|
Object |
Context.evaluateString(Scriptable scope,
String source,
String sourceName,
int lineno,
Object securityDomain)
Evaluate a JavaScript source string.
|
default Object |
Script.exec(Context cx,
Scriptable scope)
Deprecated.
|
Object |
Script.exec(Context cx,
Scriptable scope,
Scriptable thisObj)
Execute the script.
|
Object |
NativeWith.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeJavaTopPackage.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeIterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeGenerator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeContinuation.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeConsole.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeCallSite.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
NativeCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
JavaAdapter.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
ImporterTopLevel.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
IdScriptableObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable
should be returned.
|
Object |
IdFunctionCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should
be returned
|
Object |
ES6Iterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Object |
ES6Generator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
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). |
IdFunctionObject |
IdScriptableObject.exportAsJSClass(int maxPrototypeId,
Scriptable scope,
boolean sealed) |
static void |
ScriptRuntime.fillObjectLiteral(Scriptable object,
Object[] propertyIds,
Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope) |
int |
RegExpProxy.find_split(Context cx,
Scriptable scope,
String target,
String separator,
Scriptable re,
int[] ip,
int[] matchlen,
boolean[] matched,
String[][] parensp) |
static String |
NativeConsole.format(Context cx,
Scriptable scope,
Object[] args) |
Object |
ScriptableObject.get(int index,
Scriptable start)
Returns the value of the indexed property or NOT_FOUND.
|
Object |
Scriptable.get(int index,
Scriptable start)
Get a property from the object selected by an integral index.
|
Object |
NativeWith.get(int index,
Scriptable start) |
Object |
NativeJavaPackage.get(int index,
Scriptable start) |
Object |
NativeJavaObject.get(int index,
Scriptable start) |
Object |
NativeJavaMap.get(int index,
Scriptable start) |
Object |
NativeJavaList.get(int index,
Scriptable start) |
Object |
NativeJavaArray.get(int index,
Scriptable start) |
Object |
NativeArray.get(int index,
Scriptable start) |
Object |
Delegator.get(int index,
Scriptable start) |
static ClassCache |
ClassCache.get(Scriptable scope)
Search for ClassCache object in the given scope.
|
Object |
ScriptableObject.get(String name,
Scriptable start)
Returns the value of the named property or NOT_FOUND.
|
Object |
Scriptable.get(String name,
Scriptable start)
Get a named property from the object.
|
Object |
NativeWith.get(String id,
Scriptable start) |
Object |
NativeJavaPackage.get(String id,
Scriptable start) |
Object |
NativeJavaObject.get(String name,
Scriptable start) |
Object |
NativeJavaMap.get(String name,
Scriptable start) |
Object |
NativeJavaList.get(String name,
Scriptable start) |
Object |
NativeJavaClass.get(String name,
Scriptable start) |
Object |
NativeJavaArray.get(String id,
Scriptable start) |
Object |
ImporterTopLevel.get(String name,
Scriptable start) |
Object |
IdScriptableObject.get(String name,
Scriptable start) |
Object |
Delegator.get(String name,
Scriptable start) |
Object |
SymbolScriptable.get(Symbol key,
Scriptable start)
Return the value of the property with the specified key, or NOT_FOUND.
|
Object |
ScriptableObject.get(Symbol key,
Scriptable start)
Another version of Get that supports Symbol keyed properties.
|
Object |
NativeWith.get(Symbol key,
Scriptable start) |
Object |
NativeJavaObject.get(Symbol key,
Scriptable start) |
Object |
NativeJavaMap.get(Symbol key,
Scriptable start) |
Object |
NativeJavaList.get(Symbol key,
Scriptable start) |
Object |
NativeJavaArray.get(Symbol key,
Scriptable start) |
Object |
IdScriptableObject.get(Symbol key,
Scriptable start) |
Object |
Delegator.get(Symbol key,
Scriptable start) |
static Scriptable |
ScriptRuntime.getApplyOrCallThis(Context cx,
Scriptable scope,
Object arg0,
int l,
Callable target) |
static Object[] |
ScriptRuntime.getArrayElements(Scriptable object) |
static Scriptable |
ScriptableObject.getArrayPrototype(Scriptable scope) |
int |
ScriptableObject.getAttributes(int index,
Scriptable start)
Deprecated.
Use
ScriptableObject.getAttributes(int index). The engine always ignored the start
argument. |
int |
ScriptableObject.getAttributes(String name,
Scriptable start)
Deprecated.
Use
ScriptableObject.getAttributes(String name). The engine always ignored the start
argument. |
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 Scriptable |
TopLevel.getBuiltinPrototype(Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object prototype with the given
type from
the given scope. |
static Scriptable |
ScriptableObject.getClassPrototype(Scriptable scope,
String className)
Get the prototype for the named class.
|
static Object |
ScriptableObject.getDefaultValue(Scriptable object,
Class<?> typeHint) |
static ScriptRuntime.LookupResult |
ScriptRuntime.getElemAndThis(Object obj,
Object elem,
Context cx,
Scriptable scope)
Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj
properly converted to Scriptable available in the result.
|
static ScriptRuntime.LookupResult |
ScriptRuntime.getElemAndThisOptional(Object obj,
Object elem,
Context cx,
Scriptable scope) |
Object[] |
Context.getElements(Scriptable object)
Get the elements of a JavaScript array.
|
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 Function |
ScriptRuntime.getExistingCtor(Context cx,
Scriptable scope,
String constructorName) |
static Function |
JavaAdapter.getFunction(Scriptable obj,
String functionName) |
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope)
Get the Function.prototype property.
|
static Scriptable |
ScriptableObject.getGeneratorFunctionPrototype(Scriptable scope) |
Object |
ScriptableObject.getGetterOrSetter(String name,
int index,
Scriptable scope,
boolean isSetter)
Get the getter or setter for a given property.
|
long |
ArrayLikeAbstractOperations.LengthAccessor.getLength(Context cx,
Scriptable o) |
static ScriptableObject |
ScriptRuntime.getLibraryScopeOrNull(Scriptable scope) |
static ScriptRuntime.LookupResult |
ScriptRuntime.getNameAndThis(String name,
Context cx,
Scriptable scope)
Prepare for calling name(...): return function corresponding to name and make current top
scope available as part of the result.
|
static ScriptRuntime.LookupResult |
ScriptRuntime.getNameAndThisOptional(String name,
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 Object |
ScriptRuntime.getObjectElem(Object obj,
Object elem,
Context cx,
Scriptable scope)
Call obj.
|
static Object |
ScriptRuntime.getObjectElem(Scriptable obj,
Object elem,
Context cx) |
static Object |
ScriptRuntime.getObjectIndex(Object obj,
double dblIndex,
Context cx,
Scriptable scope)
A cheaper and less general version of the above for well-known argument types.
|
static Object |
ScriptRuntime.getObjectIndex(Scriptable obj,
int index,
Context cx) |
static Object |
ScriptRuntime.getObjectProp(Object obj,
String property,
Context cx,
Scriptable scope)
Version of getObjectElem when elem is a valid JS identifier name.
|
static Object |
ScriptRuntime.getObjectProp(Scriptable obj,
String property,
Context cx) |
static Object |
ScriptRuntime.getObjectPropNoWarn(Object obj,
String property,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope)
Get the Object.prototype property.
|
static ScriptRuntime.LookupResult |
ScriptRuntime.getPropAndThis(Object obj,
String property,
Context cx,
Scriptable scope)
Prepare for calling obj.property(...): return function corresponding to obj.property and make
obj properly converted to Scriptable in the result.
|
static ScriptRuntime.LookupResult |
ScriptRuntime.getPropAndThisOptional(Object obj,
String property,
Context cx,
Scriptable scope) |
static Object |
ScriptableObject.getProperty(Scriptable obj,
int index)
Gets an indexed property from an object or any object in its prototype chain.
|
static Object |
ScriptableObject.getProperty(Scriptable obj,
String name)
Gets a named property from an object or any object in its prototype chain.
|
static Object |
ScriptableObject.getProperty(Scriptable obj,
Symbol key)
This is a version of getProperty that works with Symbols.
|
static Object[] |
ScriptableObject.getPropertyIds(Scriptable obj)
Returns an array of all ids from an object and its prototypes.
|
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 Comparator<Object> |
ArrayLikeAbstractOperations.getSortComparator(Context cx,
Scriptable scope,
Object[] args) |
static ArrayLikeAbstractOperations.ElementComparator |
ArrayLikeAbstractOperations.getSortComparatorFromArguments(Context cx,
Scriptable scope,
Object[] args) |
static Object |
NativeIterator.getStopIterationObject(Scriptable scope)
Get the value of the "StopIteration" object.
|
static String |
AbstractEcmaStringOperations.getSubstitution(Context cx,
Scriptable scope,
String matched,
String str,
int position,
NativeArray capturesArray,
Object namedCaptures,
String replacementTemplate)
GetSubstitution(matched, str, position, captures, namedCaptures, replacementTemplate)
22.1.3.19.1
GetSubstitution (matched, str, position, captures, namedCaptures, replacementTemplate)
|
static Object |
ScriptRuntime.getSuperElem(Object superObject,
Object elem,
Context cx,
Scriptable scope,
Object thisObject) |
static Object |
ScriptRuntime.getSuperElem(Object elem,
Scriptable superScriptable,
Scriptable thisScriptable) |
static Object |
ScriptRuntime.getSuperIndex(Object superObject,
double dblIndex,
Context cx,
Scriptable scope,
Object thisObject) |
static Object |
ScriptRuntime.getSuperProp(Object superObject,
String property,
Context cx,
Scriptable scope,
Object thisObject,
boolean noWarn) |
static Object |
ScriptableObject.getSuperProperty(Scriptable superObj,
Scriptable thisObj,
int index)
Gets an indexed property from super, walking the super's prototype chain, but passing the
correct "this" to getter slots.
|
static Object |
ScriptableObject.getSuperProperty(Scriptable superObj,
Scriptable thisObj,
String name)
Gets a named property from super, walking the super's prototype chain, but passing the
correct "this" to getter slots.
|
static Object |
ScriptableObject.getSuperProperty(Scriptable superObj,
Scriptable thisObj,
Symbol key)
This is a version of getSuperProperty that works with Symbols.
|
static Scriptable |
ScriptRuntime.getTemplateLiteralCallSite(Context cx,
Scriptable scope,
Object[] strings,
int index) |
static Object |
ScriptRuntime.getTopLevelProp(Scriptable scope,
String id) |
static Scriptable |
ScriptableObject.getTopLevelScope(Scriptable obj)
Get the global scope.
|
static Object |
ScriptableObject.getTopScopeValue(Scriptable scope,
Object key)
Get arbitrary application-specific value associated with the top scope of the given scope.
|
static <T> T |
ScriptableObject.getTypedProperty(Scriptable s,
int index,
Class<T> type)
Gets an indexed property from an object or any object in its prototype chain and coerces it
to the requested Java type.
|
static <T> T |
ScriptableObject.getTypedProperty(Scriptable s,
String name,
Class<T> type)
Gets a named property from an object or any object in its prototype chain and coerces it to
the requested Java type.
|
Object |
Slot.getValue(Scriptable start) |
Object |
LazyLoadSlot.getValue(Scriptable start) |
Object |
LambdaSlot.getValue(Scriptable start) |
Object |
LambdaAccessorSlot.getValue(Scriptable owner) |
Object |
BuiltInSlot.getValue(Scriptable start) |
Object |
AccessorSlot.getValue(Scriptable start) |
boolean |
ScriptableObject.has(int index,
Scriptable start)
Returns true if the property index is defined.
|
boolean |
Scriptable.has(int index,
Scriptable start)
Indicates whether or not an indexed property is defined in an object.
|
boolean |
NativeWith.has(int index,
Scriptable start) |
boolean |
NativeJavaPackage.has(int index,
Scriptable start) |
boolean |
NativeJavaObject.has(int index,
Scriptable start) |
boolean |
NativeJavaMap.has(int index,
Scriptable start) |
boolean |
NativeJavaList.has(int index,
Scriptable start) |
boolean |
NativeJavaArray.has(int index,
Scriptable start) |
boolean |
NativeArray.has(int index,
Scriptable start) |
boolean |
Delegator.has(int index,
Scriptable start) |
boolean |
ScriptableObject.has(String name,
Scriptable start)
Returns true if the named property is defined.
|
boolean |
Scriptable.has(String name,
Scriptable start)
Indicates whether or not a named property is defined in an object.
|
boolean |
NativeWith.has(String id,
Scriptable start) |
boolean |
NativeJavaPackage.has(String id,
Scriptable start) |
boolean |
NativeJavaObject.has(String name,
Scriptable start) |
boolean |
NativeJavaMap.has(String name,
Scriptable start) |
boolean |
NativeJavaList.has(String name,
Scriptable start) |
boolean |
NativeJavaClass.has(String name,
Scriptable start) |
boolean |
NativeJavaArray.has(String id,
Scriptable start) |
boolean |
ImporterTopLevel.has(String name,
Scriptable start) |
boolean |
IdScriptableObject.has(String name,
Scriptable start) |
boolean |
Delegator.has(String name,
Scriptable start) |
boolean |
SymbolScriptable.has(Symbol key,
Scriptable start)
Return true if the specified property exists.
|
boolean |
ScriptableObject.has(Symbol key,
Scriptable start)
A version of "has" that supports symbols.
|
boolean |
NativeWith.has(Symbol key,
Scriptable start) |
boolean |
NativeJavaObject.has(Symbol key,
Scriptable start) |
boolean |
NativeJavaMap.has(Symbol key,
Scriptable start) |
boolean |
NativeJavaList.has(Symbol key,
Scriptable start) |
boolean |
NativeJavaArray.has(Symbol key,
Scriptable start) |
boolean |
IdScriptableObject.has(Symbol key,
Scriptable start) |
boolean |
Delegator.has(Symbol key,
Scriptable start) |
boolean |
ScriptableObject.hasInstance(Scriptable instance)
Implements the instanceof operator.
|
boolean |
Scriptable.hasInstance(Scriptable instance)
The instanceof operator.
|
boolean |
NativeWith.hasInstance(Scriptable value) |
boolean |
NativeJavaObject.hasInstance(Scriptable value) |
boolean |
NativeJavaClass.hasInstance(Scriptable value)
Determines if prototype is a wrapped Java object and performs a Java "instanceof".
|
boolean |
NativeJavaArray.hasInstance(Scriptable value) |
boolean |
NativeIterator.StopIteration.hasInstance(Scriptable instance) |
boolean |
Delegator.hasInstance(Scriptable instance) |
boolean |
BoundFunction.hasInstance(Scriptable instance) |
boolean |
BaseFunction.hasInstance(Scriptable instance)
Implements the instanceof operator for JavaScript Function objects.
|
boolean |
ArrowFunction.hasInstance(Scriptable instance) |
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
Object elem,
Context cx) |
static boolean |
ScriptableObject.hasProperty(Scriptable obj,
int index)
Returns whether an indexed property is defined in an object or any object in its prototype
chain.
|
static boolean |
ScriptableObject.hasProperty(Scriptable obj,
String name)
Returns whether a named property is defined in an object or any object in its prototype
chain.
|
static boolean |
ScriptableObject.hasProperty(Scriptable obj,
Symbol key)
A version of hasProperty for properties with Symbol keys.
|
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
Object[] args,
Function funObj)
Deprecated.
Kept only for compatibility.
|
static void |
NativeSymbol.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativePromise.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeJavaTopPackage.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeGlobal.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeContinuation.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed) |
static void |
NativeConsole.init(Scriptable scope,
boolean sealed,
NativeConsole.ConsolePrinter printer) |
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode) |
void |
IdFunctionObject.initFunction(String name,
Scriptable scope) |
Object |
Initializable.initialize(Context cx,
Scriptable scope,
boolean sealed)
Initialize the class in question, returning the new constructor.
|
static void |
ScriptRuntime.initScript(NativeFunction funObj,
Scriptable thisObj,
Context cx,
Scriptable scope,
boolean evalScript) |
void |
NativeFunction.initScriptFunction(Context cx,
Scriptable scope) |
void |
NativeFunction.initScriptFunction(Context cx,
Scriptable scope,
boolean es6GeneratorFunction,
boolean isShorthand) |
Object |
InterfaceAdapter.invoke(ContextFactory cf,
Object target,
Scriptable topScope,
Object thisObject,
Method method,
Object[] args) |
static boolean |
ScriptRuntime.isArrayLike(Scriptable obj) |
protected boolean |
NativeStringIterator.isDone(Context cx,
Scriptable scope) |
protected boolean |
NativeCollectionIterator.isDone(Context cx,
Scriptable scope) |
protected boolean |
NativeArrayIterator.isDone(Context cx,
Scriptable scope) |
protected abstract boolean |
ES6Iterator.isDone(Context cx,
Scriptable scope) |
boolean |
RegExpProxy.isRegExp(Scriptable obj) |
static Object |
ArrayLikeAbstractOperations.iterativeMethod(Context cx,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args,
ArrayLikeAbstractOperations.LengthAccessor lengthAccessor)
Implements the methods "every", "filter", "forEach", "map", and "some" without using an
IdFunctionObject.
|
static Object |
ArrayLikeAbstractOperations.iterativeMethod(Context cx,
IdFunctionObject fun,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args,
ArrayLikeAbstractOperations.LengthAccessor lengthAccessor)
Implements the methods "every", "filter", "forEach", "map", and "some" using an
IdFunctionObject.
|
static Object |
ArrayLikeAbstractOperations.iterativeMethod(Context cx,
Object tag,
String name,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args,
ArrayLikeAbstractOperations.LengthAccessor lengthAccessor) |
static Object |
Context.javaToJS(Object value,
Scriptable scope)
Convenient method to convert java value to its closest representation in JavaScript.
|
static Object |
Context.javaToJS(Object value,
Scriptable scope,
Context cx)
Convenient method to convert java value to its closest representation in JavaScript.
|
static void |
NativeObject.js_protoSetter(Scriptable thisObj,
Object proto) |
Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
String thisString,
Object[] _args) |
static boolean |
ScriptRuntime.jsDelegatesTo(Scriptable lhs,
Scriptable rhs)
Delegates to
|
static Scriptable |
ScriptRuntime.leaveDotQuery(Scriptable scope) |
static Scriptable |
ScriptRuntime.leaveWith(Scriptable scope) |
static long |
AbstractEcmaObjectOperations.lengthOfArrayLike(Context cx,
Scriptable o)
LengthOfArrayLike ( obj )
7.3.18
LengthOfArrayLike (obj)
|
static boolean |
ScriptRuntime.loadFromIterable(Context cx,
Scriptable scope,
Object arg1,
BiConsumer<Object,Object> setter)
This is used to handle all the special cases that are required when invoking
Object.fromEntries or constructing a NativeMap or NativeWeakMap from an iterable.
|
void |
IdFunctionObject.markAsConstructor(Scriptable prototypeProperty) |
static Object |
ScriptRuntime.name(Context cx,
Scriptable scope,
String name)
Looks up a name in the scope chain and returns its value.
|
static Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
String id,
Context cx,
int incrDecrMask) |
static Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
String id,
int incrDecrMask)
Deprecated.
|
static Ref |
ScriptRuntime.nameRef(Object name,
Context cx,
Scriptable scope,
int memberTypeFlags) |
static Ref |
ScriptRuntime.nameRef(Object namespace,
Object name,
Context cx,
Scriptable scope,
int memberTypeFlags) |
Scriptable |
Context.newArray(Scriptable scope,
int length)
Create an array with a specified initial length.
|
Scriptable |
Context.newArray(Scriptable scope,
Object[] elements)
Create an array with a set of initial elements.
|
static Scriptable |
ScriptRuntime.newArrayLiteral(Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
Object[] args) |
static Scriptable |
ScriptRuntime.newCatchScope(Throwable t,
Scriptable lastCatchScope,
String exceptionName,
Context cx,
Scriptable scope) |
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
String constructorName,
Object[] args) |
static Scriptable |
ScriptRuntime.newObject(Object ctor,
Context cx,
Scriptable scope,
Object[] args)
Operator new.
|
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object.
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName)
Create a new JavaScript object by executing the named constructor.
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName,
Object[] args)
Creates a new JavaScript object by executing the named constructor.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated.
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope)
|
static Object |
ScriptRuntime.newSpecial(Context cx,
Object fun,
Object[] args,
Scriptable scope,
int callType) |
protected Object |
ES6Iterator.next(Context cx,
Scriptable scope) |
protected Object |
NativeStringIterator.nextValue(Context cx,
Scriptable scope) |
protected Object |
NativeCollectionIterator.nextValue(Context cx,
Scriptable scope) |
protected Object |
NativeArrayIterator.nextValue(Context cx,
Scriptable scope) |
protected abstract Object |
ES6Iterator.nextValue(Context cx,
Scriptable scope) |
static RuntimeException |
ScriptRuntime.notFoundError(Scriptable object,
String property) |
static Object[] |
ScriptRuntime.padAndRestArguments(Context cx,
Scriptable scope,
Object[] args,
int argCount)
Helper function for builtin objects that use the varargs form.
|
static Object |
NativeJSON.parse(Context cx,
Scriptable scope,
String jtext,
Callable reviver) |
void |
NativeConsole.ConsolePrinter.print(Context cx,
Scriptable scope,
NativeConsole.Level level,
Object[] args,
ScriptStackElement[] stack) |
static Object |
ScriptRuntime.propIncrDecr(Object obj,
String id,
Context cx,
Scriptable scope,
int incrDecrMask) |
void |
ScriptableObject.put(int index,
Scriptable start,
Object value)
Sets the value of the indexed property, creating it if need be.
|
void |
Scriptable.put(int index,
Scriptable start,
Object value)
Sets an indexed property in this object.
|
void |
NativeWith.put(int index,
Scriptable start,
Object value) |
void |
NativeSymbol.put(int index,
Scriptable start,
Object value) |
void |
NativeJavaPackage.put(int index,
Scriptable start,
Object value) |
void |
NativeJavaObject.put(int index,
Scriptable start,
Object value) |
void |
NativeJavaMap.put(int index,
Scriptable start,
Object value) |
void |
NativeJavaList.put(int index,
Scriptable start,
Object value) |
void |
NativeJavaArray.put(int index,
Scriptable start,
Object value) |
void |
NativeArray.put(int index,
Scriptable start,
Object value) |
void |
Delegator.put(int index,
Scriptable start,
Object value) |
void |
ScriptableObject.put(String name,
Scriptable start,
Object value)
Sets the value of the named property, creating it if need be.
|
void |
Scriptable.put(String name,
Scriptable start,
Object value)
Sets a named property in this object.
|
void |
NativeWith.put(String id,
Scriptable start,
Object value) |
void |
NativeSymbol.put(String name,
Scriptable start,
Object value) |
void |
NativeJavaPackage.put(String id,
Scriptable start,
Object value) |
void |
NativeJavaObject.put(String name,
Scriptable start,
Object value) |
void |
NativeJavaMap.put(String name,
Scriptable start,
Object value) |
void |
NativeJavaList.put(String name,
Scriptable start,
Object value) |
void |
NativeJavaClass.put(String name,
Scriptable start,
Object value) |
void |
NativeJavaArray.put(String id,
Scriptable start,
Object value) |
void |
NativeArray.put(String id,
Scriptable start,
Object value) |
void |
IdScriptableObject.put(String name,
Scriptable start,
Object value) |
void |
Delegator.put(String name,
Scriptable start,
Object value) |
void |
SymbolScriptable.put(Symbol key,
Scriptable start,
Object value)
Add a new property to to the object.
|
void |
ScriptableObject.put(Symbol key,
Scriptable start,
Object value)
Implementation of put required by SymbolScriptable objects.
|
void |
NativeWith.put(Symbol symbol,
Scriptable start,
Object value) |
void |
NativeSymbol.put(Symbol key,
Scriptable start,
Object value) |
void |
NativeJavaObject.put(Symbol symbol,
Scriptable start,
Object value) |
void |
IdScriptableObject.put(Symbol key,
Scriptable start,
Object value) |
void |
Delegator.put(Symbol symbol,
Scriptable start,
Object value) |
void |
ScriptableObject.putConst(String name,
Scriptable start,
Object value)
Sets the value of the named const property, creating it if need be.
|
void |
ConstProperties.putConst(String name,
Scriptable start,
Object value)
Sets a named const property in this object.
|
static void |
ScriptableObject.putConstProperty(Scriptable obj,
String name,
Object value)
Puts a named property in an object or in an object in its prototype chain.
|
protected boolean |
ScriptableObject.putOwnProperty(int index,
Scriptable start,
Object value,
boolean isThrow)
Set the value of the named property, and return true if the property is actually defined and
can be set.
|
protected boolean |
ScriptableObject.putOwnProperty(String name,
Scriptable start,
Object value,
boolean isThrow)
Set the value of the named property, and return true if the property is actually defined and
can be set.
|
protected boolean |
ScriptableObject.putOwnProperty(Symbol key,
Scriptable start,
Object value,
boolean isThrow)
Set the value of the named property, and return true if the property is actually defined and
can be set.
|
static void |
ScriptableObject.putProperty(Scriptable obj,
int index,
Object value)
Puts an indexed property in an object or in an object in its prototype chain.
|
static void |
ScriptableObject.putProperty(Scriptable obj,
String name,
Object value)
Puts a named property in an object or in an object in its prototype chain.
|
static void |
ScriptableObject.putProperty(Scriptable obj,
Symbol key,
Object value)
This is a version of putProperty for Symbol keys.
|
static void |
ScriptableObject.putSuperProperty(Scriptable superObj,
Scriptable thisObj,
int index,
Object value)
Variant of putProperty to handle super[index] = value where index is integer
|
static void |
ScriptableObject.putSuperProperty(Scriptable superObj,
Scriptable thisObj,
String name,
Object value)
Variant of putProperty to handle super.name = value
|
static void |
ScriptableObject.putSuperProperty(Scriptable superObj,
Scriptable thisObj,
Symbol key,
Object value)
Variant of putProperty to handle super[key] = value where key is a symbol
|
static Object |
JavaAdapter.readAdapterObject(Scriptable self,
ObjectInputStream in) |
static void |
ScriptableObject.redefineProperty(Scriptable obj,
String name,
boolean isConst)
If hasProperty(obj, name) would return true, then if the property that was found is
compatible with the new property, this method just returns.
|
static Object |
ArrayLikeAbstractOperations.reduceMethod(Context cx,
ArrayLikeAbstractOperations.ReduceOperation operation,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Implements the methods "reduce" and "reduceRight".
|
static Object |
ArrayLikeAbstractOperations.reduceMethodWithLength(Context cx,
ArrayLikeAbstractOperations.ReduceOperation operation,
Scriptable scope,
Scriptable o,
Object[] args,
long length) |
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
Object[] args)
Perform function call in reference context.
|
static Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
Scriptable scope,
int incrDecrMask) |
static Object |
ScriptRuntime.refSet(Ref ref,
Object value,
Context cx,
Scriptable scope) |
static Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
Object[] args) |
Object |
Context.resumeContinuation(Object continuation,
Scriptable scope,
Object functionResult)
Restarts execution of the JavaScript suspended at the call to
Context.captureContinuation(). |
Object |
NativeFunction.resumeGenerator(Context cx,
Scriptable scope,
int operation,
Object state,
Object value)
Resume execution of a suspended generator.
|
static Object |
Interpreter.resumeGenerator(Context cx,
Scriptable scope,
int operation,
Object savedState,
Object value) |
Object |
Ref.set(Context cx,
Scriptable scope,
Object value) |
void |
ScriptableObject.setAttributes(int index,
Scriptable start,
int attributes)
Deprecated.
Use
ScriptableObject.setAttributes(int index, int attributes). The engine always ignored
the start argument. |
void |
ScriptableObject.setAttributes(String name,
Scriptable start,
int attributes)
Deprecated.
Use
ScriptableObject.setAttributes(String name, int attributes). The engine always
ignored the start argument. |
static void |
ScriptRuntime.setBuiltinProtoAndParent(ScriptableObject object,
Scriptable scope,
TopLevel.Builtins type) |
static Object |
ScriptRuntime.setConst(Scriptable bound,
Object value,
Context cx,
String id) |
void |
Delegator.setDelegee(Scriptable obj)
Set the delegee.
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Context cx,
Scriptable scope) |
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Context cx,
Scriptable scope,
boolean es6GeneratorFunction) |
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Scriptable scope)
Deprecated.
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Scriptable scope,
boolean es6GeneratorFunction)
Deprecated.
|
void |
LambdaAccessorSlot.setGetter(Scriptable scope,
ScriptableObject.LambdaGetterFunction getter) |
void |
BaseFunction.setHomeObject(Scriptable homeObject) |
static Object |
ScriptRuntime.setName(Scriptable bound,
Object value,
Context cx,
Scriptable scope,
String id) |
static Object |
ScriptRuntime.setObjectElem(Object obj,
Object elem,
Object value,
Context cx,
Scriptable scope)
Call obj.
|
static Object |
ScriptRuntime.setObjectElem(Scriptable obj,
Object elem,
Object value,
Context cx) |
static Object |
ScriptRuntime.setObjectIndex(Object obj,
double dblIndex,
Object value,
Context cx,
Scriptable scope)
A cheaper and less general version of the above for well-known argument types.
|
static Object |
ScriptRuntime.setObjectIndex(Scriptable obj,
int index,
Object value,
Context cx) |
static Object |
ScriptRuntime.setObjectProp(Object obj,
String property,
Object value,
Context cx,
Scriptable scope)
Version of setObjectElem when elem is a valid JS identifier name.
|
static Object |
ScriptRuntime.setObjectProp(Scriptable obj,
String property,
Object value,
Context cx) |
static void |
ScriptRuntime.setObjectProtoAndParent(ScriptableObject object,
Scriptable scope) |
void |
ScriptableObject.setParentScope(Scriptable m)
Sets the parent (enclosing) scope of the object.
|
void |
Scriptable.setParentScope(Scriptable parent)
Set the parent scope of the object.
|
void |
NativeWith.setParentScope(Scriptable parent) |
void |
NativeJavaObject.setParentScope(Scriptable m)
Sets the parent (enclosing) scope of the object.
|
void |
Delegator.setParentScope(Scriptable parent) |
void |
ScriptableObject.setPrototype(Scriptable m)
Sets the prototype of the object.
|
void |
Scriptable.setPrototype(Scriptable prototype)
Set the prototype of the object.
|
void |
NativeWith.setPrototype(Scriptable prototype) |
void |
NativeJavaObject.setPrototype(Scriptable m)
Sets the prototype of the object.
|
void |
NativeArray.setPrototype(Scriptable p) |
void |
Delegator.setPrototype(Scriptable prototype) |
void |
LambdaAccessorSlot.setSetter(Scriptable scope,
ScriptableObject.LambdaSetterFunction setter) |
static Object |
ScriptRuntime.setSuperElem(Object superObject,
Object elem,
Object value,
Context cx,
Scriptable scope,
Object thisObject)
Call super.
|
static Object |
ScriptRuntime.setSuperElem(Scriptable superScriptable,
Scriptable thisScriptable,
Object elem,
Object value,
Context cx) |
static Object |
ScriptRuntime.setSuperIndex(Object superObject,
double dblIndex,
Object value,
Context cx,
Scriptable scope,
Object thisObject)
A cheaper and less general version of the above for well-known argument types.
|
static Object |
ScriptRuntime.setSuperIndex(Scriptable superScriptable,
Scriptable thisScriptable,
int index,
Object value,
Context cx) |
static Object |
ScriptRuntime.setSuperProp(Object superObject,
String property,
Object value,
Context cx,
Scriptable scope,
Object thisObject)
Version of setSuperElem when elem is a valid JS identifier name.
|
static Object |
ScriptRuntime.setSuperProp(Scriptable superScriptable,
Scriptable thisScriptable,
String property,
Object value,
Context cx) |
protected Object |
BaseFunction.setupDefaultPrototype(Scriptable scope) |
boolean |
Slot.setValue(Object value,
Scriptable owner,
Scriptable start) |
boolean |
Slot.setValue(Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
boolean |
LambdaSlot.setValue(Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
boolean |
LambdaAccessorSlot.setValue(Object value,
Scriptable scope,
Scriptable start,
boolean isThrow) |
boolean |
BuiltInSlot.setValue(Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
boolean |
AccessorSlot.setValue(Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
void |
BuiltInSlot.setValueFromDescriptor(Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
static Ref |
ScriptRuntime.specialRef(Object obj,
String specialProperty,
Context cx,
Scriptable scope) |
static Constructable |
AbstractEcmaObjectOperations.speciesConstructor(Context cx,
Scriptable s,
Constructable defaultConstructor)
Implement the ECMAScript abstract operation "SpeciesConstructor" defined in section 7.2.33 of
ECMA262.
|
void |
NewLiteralStorage.spread(Context cx,
Scriptable scope,
Object source) |
static Object |
ScriptRuntime.strictSetName(Scriptable bound,
Object value,
Context cx,
Scriptable scope,
String id) |
static Object |
NativeJSON.stringify(Context cx,
Scriptable scope,
Object value,
Object replacer,
Object space) |
static JavaScriptException |
ScriptRuntime.throwCustomError(Context cx,
Scriptable scope,
String constructorName,
String message)
Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from
JavaScript.
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
String message)
Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.
|
protected void |
Slot.throwNoSetterException(Scriptable start,
Object newValue) |
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly) |
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val)
Convert the value to an object.
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated.
Use
ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
static Scriptable |
Context.toObject(Object value,
Scriptable scope)
Convert the value to an JavaScript object value.
|
static Scriptable |
Context.toObject(Object value,
Scriptable scope,
Class<?> staticType)
Deprecated.
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val) |
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated.
Use
ScriptRuntime.toObject(Scriptable, Object) instead. |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj,
Scriptable scope) |
static String |
ScriptRuntime.typeofName(Scriptable scope,
String id)
The typeof operator that correctly handles the undefined case
|
static Object |
ScriptRuntime.updateDotQuery(boolean value,
Scriptable scope) |
Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
Object obj,
Class<?> staticType)
Wrap the object.
|
static NativeJavaArray |
NativeJavaArray.wrap(Scriptable scope,
Object array) |
static Object |
NativeJavaObject.wrap(Scriptable scope,
Object obj,
Class<?> staticType)
Deprecated.
Use
Context.getWrapFactory() together with calling WrapFactory.wrap(Context, Scriptable, Object, Class) |
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
Object javaObject,
Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from
JavaScript.
|
static Scriptable |
ScriptRuntime.wrapException(Throwable t,
Scriptable scope,
Context cx) |
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
Class<?> javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and
use as constructor from JavaScript.
|
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
Object obj)
Wrap an object newly created by a constructor call.
|
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
| Constructor and Description |
|---|
ArrowFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Scriptable boundHomeObject) |
BaseFunction(Scriptable scope,
Scriptable prototype) |
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Object[] boundArgs) |
Delegator(Scriptable obj)
Create a new Delegator that forwards requests to a delegee Scriptable object.
|
EcmaError(Scriptable nativeError,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
Deprecated.
EcmaError error instances should not be constructed explicitly since they are
generated by the engine.
|
ES6Generator(Scriptable scope,
NativeFunction function,
Object savedState) |
ES6Iterator(Scriptable scope,
String tag) |
FunctionObject(String name,
Member methodOrConstructor,
Scriptable scope)
Create a JavaScript function object from a Java method.
|
IdFunctionObject(IdFunctionCall idcall,
Object tag,
int id,
String name,
int arity,
Scriptable scope) |
IdScriptableObject(Scriptable scope,
Scriptable prototype) |
IteratorLikeIterable(Context cx,
Scriptable scope,
Object target) |
KnownBuiltInFunction(Object tag,
Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target)
Create a new function.
|
LambdaConstructor(Scriptable scope,
String name,
int length,
int flags,
SerializableConstructable target)
Create a new function that may be used as a constructor.
|
LambdaConstructor(Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target,
SerializableConstructable targetConstructor) |
LambdaConstructor(Scriptable scope,
String name,
int length,
SerializableCallable target,
SerializableConstructable targetConstructor)
Create a new function that may be used as a constructor.
|
LambdaConstructor(Scriptable scope,
String name,
int length,
SerializableConstructable target)
Create a new function that may be used as a constructor.
|
LambdaFunction(Scriptable scope,
int length,
SerializableCallable target)
Create a new built-in function, with no name, and no default prototype.
|
LambdaFunction(Scriptable scope,
String name,
int length,
Object prototype,
SerializableCallable target)
Create a new function.
|
LambdaFunction(Scriptable scope,
String name,
int length,
SerializableCallable target)
Create a new function.
|
LambdaFunction(Scriptable scope,
String name,
int length,
SerializableCallable target,
boolean defaultPrototype)
Create a new function.
|
NativeArrayIterator(Scriptable scope,
Scriptable arrayLike,
NativeArrayIterator.ARRAY_ITERATOR_TYPE type) |
NativeCollectionIterator(Scriptable scope,
String className,
org.htmlunit.corejs.javascript.NativeCollectionIterator.Type type,
Iterator<Hashtable.Entry> iterator) |
NativeGenerator(Scriptable scope,
NativeFunction function,
Object savedState) |
NativeJavaArray(Scriptable scope,
Object array) |
NativeJavaClass(Scriptable scope,
Class<?> cl) |
NativeJavaClass(Scriptable scope,
Class<?> cl,
boolean isAdapter) |
NativeJavaList(Scriptable scope,
Object list) |
NativeJavaMap(Scriptable scope,
Object map) |
NativeJavaObject(Scriptable scope,
Object javaObject,
Class<?> staticType) |
NativeJavaObject(Scriptable scope,
Object javaObject,
Class<?> staticType,
boolean isAdapter) |
NativeWith(Scriptable parent,
Scriptable prototype) |
ScriptableObject(Scriptable scope,
Scriptable prototype) |
Synchronizer(Scriptable obj)
Create a new synchronized function from an existing one.
|
Synchronizer(Scriptable obj,
Object syncObject)
Create a new synchronized function from an existing one using an explicit object as
synchronization object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleScope
A top-level module scope.
|
class |
Require
Implements the require() function as defined by Common JS modules.
|
| Modifier and Type | Method and Description |
|---|---|
Scriptable |
Require.construct(Context cx,
Scriptable scope,
Object[] args) |
Scriptable |
Require.requireMain(Context cx,
String mainModuleId)
Calling this method establishes a module as being the main module of the program to which
this require() instance belongs.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Require.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
Scriptable |
Require.construct(Context cx,
Scriptable scope,
Object[] args) |
Require |
RequireBuilder.createRequire(Context cx,
Scriptable globalScope)
Creates a new require() function.
|
ModuleScript |
ModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI moduleUri,
URI baseUri,
Scriptable paths)
Returns a module script.
|
void |
Require.install(Scriptable scope)
Binds this instance of require() into the specified scope under the property name "require".
|
| Constructor and Description |
|---|
ModuleScope(Scriptable prototype,
URI uri,
URI base) |
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 |
|---|---|
ModuleScript |
SoftCachingModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI uri,
URI base,
Scriptable paths) |
ModuleScript |
MultiModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI uri,
URI base,
Scriptable paths) |
ModuleScript |
CachingModuleScriptProviderBase.getModuleScript(Context cx,
String moduleId,
URI moduleUri,
URI baseUri,
Scriptable paths) |
ModuleSource |
ModuleSourceProviderBase.loadSource(String moduleId,
Scriptable paths,
Object validator) |
ModuleSource |
ModuleSourceProvider.loadSource(String moduleId,
Scriptable paths,
Object validator)
Returns the script source of the requested module.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DebugFrame.onEnter(Context cx,
Scriptable activation,
Scriptable thisObj,
Object[] args)
Called when execution is ready to start bytecode interpretation for entered a particular
function or script.
|
| Constructor and Description |
|---|
JsonParser(Context cx,
Scriptable scope) |
| Modifier and Type | Method and Description |
|---|---|
static TypeInfoFactory |
TypeInfoFactory.get(Scriptable scope)
Search for TypeInfoFactory in the given scope.
|
static TypeInfoFactory |
TypeInfoFactory.getOrElse(Scriptable scope,
TypeInfoFactory fallback)
Search for TypeInfoFactory in the given scope.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NativeRegExp
This class implements the RegExp native object.
|
class |
NativeRegExpStringIterator |
| Modifier and Type | Method and Description |
|---|---|
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
| Modifier and Type | Method and Description |
|---|---|
Object |
RegExpImpl.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType) |
Object |
NativeRegExp.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
int |
RegExpImpl.find_split(Context cx,
Scriptable scope,
String target,
String separator,
Scriptable reObj,
int[] ip,
int[] matchlen,
boolean[] matched,
String[][] parensp) |
protected boolean |
NativeRegExpStringIterator.isDone(Context cx,
Scriptable scope) |
boolean |
RegExpImpl.isRegExp(Scriptable obj) |
Object |
RegExpImpl.js_split(Context cx,
Scriptable scope,
String target,
Object[] args) |
protected Object |
NativeRegExpStringIterator.nextValue(Context cx,
Scriptable scope) |
static Object |
NativeRegExp.regExpExec(Scriptable regexp,
String string,
Context cx,
Scriptable scope) |
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
Object compiled) |
| Constructor and Description |
|---|
NativeRegExpStringIterator(Scriptable scope,
Scriptable regexp,
String string,
boolean global,
boolean fullUnicode) |
| Constructor and Description |
|---|
ScriptableInputStream(InputStream in,
Scriptable scope)
Create a ScriptableInputStream.
|
ScriptableOutputStream(OutputStream out,
Scriptable scope)
ScriptableOutputStream constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Scriptable |
ScopeProvider.getScope()
Returns the scope object to be used for script evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
static Main |
Main.mainEmbedded(ContextFactory factory,
Scriptable scope,
String title)
Entry point for embedded applications.
|
void |
Dim.StackFrame.onEnter(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Called when the stack frame is entered.
|
void |
Main.setScope(Scriptable scope)
Sets the scope to be used for script evaluation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Environment
Environment, intended to be instantiated at global scope, provides a natural way to access System
properties from JavaScript.
|
class |
Global
This class provides for sharing functions across multiple threads.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SecurityProxy.callProcessFileSecure(Context cx,
Scriptable scope,
String filename) |
protected void |
JavaPolicySecurity.callProcessFileSecure(Context cx,
Scriptable scope,
String filename) |
Object |
JavaPolicySecurity.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args) |
static void |
Global.defineClass(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Load a Java class that defines a JavaScript object using the conventions outlined in
ScriptableObject.defineClass.
|
static Object |
Global.deserialize(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj) |
static Object |
Global.doctest(Context cx,
Scriptable scope,
Scriptable thisObj,
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 scope,
Scriptable thisObj,
Object[] args,
Function funObj) |
Object |
Environment.get(String name,
Scriptable start) |
static ShellConsole |
ShellConsole.getConsole(Scriptable scope,
Charset cs)
Provides a specialized
ShellConsole to handle line editing, history and completion. |
static InputStream |
ShellLine.getStream(Scriptable scope)
Deprecated.
|
boolean |
Environment.has(String name,
Scriptable start) |
static void |
Global.help(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Print a help message.
|
void |
Timers.install(Scriptable scope)
Initialize the "setTimeout" and "clearTimeout" functions on the specified scope.
|
static void |
Global.load(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Load and execute a set of JavaScript source files.
|
static void |
Global.loadClass(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Load and execute a script compiled to a class file.
|
static Object |
Global.print(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Print the string values of its arguments.
|
static void |
Main.processFile(Context cx,
Scriptable scope,
String filename) |
static void |
Main.processFileNoThrow(Context cx,
Scriptable scope,
String filename) |
void |
Environment.put(String name,
Scriptable start,
Object value) |
static void |
Global.quit(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Call embedding-specific quit action passing its argument as int32 exit code.
|
static Object |
Global.readFile(Context cx,
Scriptable scope,
Scriptable thisObj,
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 Object |
Global.readline(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
The readline reads one line from the standard input.
|
static Object |
Global.readUrl(Context cx,
Scriptable scope,
Scriptable thisObj,
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.
|
void |
Timers.runAllTimers(Context cx,
Scriptable scope)
Execute all pending timers and microtasks, blocking the thread if we need to wait for any
timers to time out.
|
static Object |
Global.runCommand(Context cx,
Scriptable scope,
Scriptable thisObj,
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.
|
int |
Global.runDoctest(Context cx,
Scriptable scope,
String session,
String sourceName,
int lineNumber) |
static void |
Global.seal(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
The seal function seals all supplied arguments.
|
static void |
Global.serialize(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj) |
static Object |
Global.spawn(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
The spawn function runs a given function or script in a different thread.
|
static Object |
Global.sync(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
The sync function creates a synchronized function (in the sense of a Java synchronized
method) from an existing function.
|
static Object |
Global.toint32(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Convert the argument to int32 number.
|
static double |
Global.version(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Get and set the language version.
|
static Object |
Global.write(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Print just as in "print," but without the trailing newline.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NativeArrayBuffer
A NativeArrayBuffer is the backing buffer for a typed array.
|
class |
NativeArrayBufferView
This class is the abstract parent for all views of the array.
|
class |
NativeBigInt64Array
An array view that stores 64-bit quantities and implements the JavaScript "Float64Array"
interface.
|
class |
NativeBigIntArrayView |
class |
NativeBigUint64Array
An array view that stores 64-bit quantities and implements the JavaScript "Float64Array"
interface.
|
class |
NativeDataView
This class represents the JavaScript "DataView" interface, which allows direct manipulations of
the bytes in a NativeArrayBuffer.
|
class |
NativeFloat32Array
An array view that stores 32-bit quantities and implements the JavaScript "Float32Array"
interface.
|
class |
NativeFloat64Array
An array view that stores 64-bit quantities and implements the JavaScript "Float64Array"
interface.
|
class |
NativeInt16Array
An array view that stores 16-bit quantities and implements the JavaScript "Int16Array" interface.
|
class |
NativeInt32Array
An array view that stores 32-bit quantities and implements the JavaScript "Int32Array" interface.
|
class |
NativeInt8Array
An array view that stores 8-bit quantities and implements the JavaScript "Int8Array" interface.
|
class |
NativeTypedArrayView<T>
This class is the abstract parent for all of the various typed arrays.
|
class |
NativeUint16Array
An array view that stores 16-bit quantities and implements the JavaScript "Uint16Array"
interface.
|
class |
NativeUint32Array
An array view that stores 32-bit quantities and implements the JavaScript "Uint32Array"
interface.
|
class |
NativeUint8Array
An array view that stores 8-bit quantities and implements the JavaScript "Uint8Array" interface.
|
class |
NativeUint8ClampedArray
An array view that stores 8-bit quantities and implements the JavaScript "Uint8ClampedArray"
interface.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
NativeTypedArrayView.get(int index,
Scriptable start) |
Object |
NativeTypedArrayView.get(String name,
Scriptable start) |
boolean |
NativeTypedArrayView.has(int index,
Scriptable start) |
boolean |
NativeTypedArrayView.has(String name,
Scriptable start) |
static Object |
NativeUint8ClampedArray.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeUint8Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeUint32Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeUint16Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeInt8Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeInt32Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeInt16Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeFloat64Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeFloat32Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeDataView.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeBigUint64Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeBigInt64Array.init(Context cx,
Scriptable scope,
boolean sealed) |
static Object |
NativeArrayBuffer.init(Context cx,
Scriptable scope,
boolean sealed) |
protected static NativeTypedArrayView<?> |
NativeTypedArrayView.js_constructor(Context cx,
Scriptable scope,
Object[] args,
NativeTypedArrayView.TypedArrayConstructable constructable,
int bytesPerElement) |
void |
NativeTypedArrayView.put(int index,
Scriptable start,
Object val) |
void |
NativeTypedArrayView.put(String name,
Scriptable start,
Object val) |
NativeTypedArrayView<?> |
NativeTypedArrayView.RealThis.realThis(Scriptable thisObj) |
| Modifier and Type | Class and Description |
|---|---|
class |
XMLObject
This Interface describes what all XML objects (XML, XMLList) should have in common.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Scriptable |
XMLObject.getExtraMethodSource(Context cx)
Return an additional object to look for methods that runtime should consider during method
search.
|
| Modifier and Type | Method and Description |
|---|---|
protected XMLLib |
XMLLib.bindToScope(Scriptable scope) |
abstract NativeWith |
XMLObject.enterDotQuery(Scriptable scope)
Wrap this object into NativeWith to implement the .() query.
|
abstract NativeWith |
XMLObject.enterWith(Scriptable scope)
Wrap this object into NativeWith to implement the with statement.
|
static XMLLib |
XMLLib.extractFromScope(Scriptable scope) |
static XMLLib |
XMLLib.extractFromScopeOrNull(Scriptable scope) |
abstract Ref |
XMLLib.nameRef(Context cx,
Object namespace,
Object name,
Scriptable scope,
int memberTypeFlags) |
abstract Ref |
XMLLib.nameRef(Context cx,
Object name,
Scriptable scope,
int memberTypeFlags) |
| Constructor and Description |
|---|
XMLObject(Scriptable scope,
Scriptable prototype) |
Copyright © 2025 HtmlUnit. All rights reserved.