java.lang.Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.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,
java.lang.Object tag,
int id,
java.lang.String name,
int arity) |
|
static void |
ScriptRuntimeES6.addSymbolSpecies(Context cx,
Scriptable scope,
IdScriptableObject constructor) |
Registers the symbol [Symbol.species] on the given constructor function.
|
static java.lang.Object |
ScriptRuntime.applyOrCall(boolean isApply,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Function.prototype.apply and Function.prototype.call
|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
java.lang.String id) |
Returns the object in the scope chain that has a given property.
|
protected static ScriptableObject |
ScriptableObject.buildDataDescriptor(Scriptable scope,
java.lang.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.
|
java.lang.Object |
ArrowFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
BaseFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Should be overridden.
|
java.lang.Object |
BoundFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] extraArgs) |
|
java.lang.Object |
Callable.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Perform the call.
|
static java.lang.Object |
Context.call(ContextFactory factory,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
Delegator.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
Function.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Call the function.
|
java.lang.Object |
FunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Performs conversions on argument types if needed and invokes the underlying Java method or
constructor.
|
java.lang.Object |
IdFunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
LambdaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
LambdaFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeContinuation.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeJavaClass.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeJavaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeJavaMethod.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeJavaTopPackage.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
abstract java.lang.Object |
PolicySecurityController.SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
static java.lang.Object |
ScriptRuntime.call(Context cx,
java.lang.Object fun,
java.lang.Object thisArg,
java.lang.Object[] args,
Scriptable scope) |
Deprecated.
|
abstract java.lang.Object |
SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
Synchronizer.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
Context.callFunctionWithContinuations(Callable function,
Scriptable scope,
java.lang.Object[] args) |
Call function that may pause execution by capturing a continuation.
|
static java.lang.Object |
ScriptRuntime.callIterator(java.lang.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 java.lang.Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
java.lang.Object[] args,
long argsToWrap) |
Utility method which dynamically binds a Context to the current thread, if none already
exists.
|
static java.lang.Object |
ScriptableObject.callMethod(Context cx,
Scriptable obj,
java.lang.String methodName,
java.lang.Object[] args) |
Call a method of an object.
|
static java.lang.Object |
ScriptableObject.callMethod(Scriptable obj,
java.lang.String methodName,
java.lang.Object[] args) |
Call a method of an object.
|
static Ref |
ScriptRuntime.callRef(Callable function,
Scriptable thisObj,
java.lang.Object[] args,
Context cx) |
Perform function call in reference context.
|
static java.lang.Object |
ScriptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
java.lang.String filename,
int lineNumber) |
|
java.lang.Object |
PolicySecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
SecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
Function |
Context.compileFunction(Scriptable scope,
java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain) |
Compile a JavaScript function.
|
protected java.lang.Object |
Context.compileImpl(Scriptable scope,
java.lang.String sourceString,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain,
boolean returnFunction,
Evaluator compiler,
ErrorReporter compilationErrorReporter) |
|
Script |
Context.compileReader(Scriptable scope,
java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain) |
Deprecated.
|
Scriptable |
ArrowFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] extraArgs) |
|
Scriptable |
Constructable.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Call the function as a constructor.
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
java.lang.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 |
Function.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Call the function as a constructor.
|
Scriptable |
LambdaConstructor.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
LambdaFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
static NativeSymbol |
NativeSymbol.construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
Use this when we need to create symbols internally because of the convoluted way we have to
construct them.
|
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope) |
Deprecated.
|
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource) |
Deprecated.
|
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
int typeTag) |
|
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
java.lang.Class<?> desired) |
Deprecated.
|
static <T> T |
LambdaConstructor.convertThisObject(Scriptable thisObj,
java.lang.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,
java.lang.Object adapter) |
|
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict,
boolean argsHasRest) |
|
static Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict) |
Deprecated.
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict,
boolean argsHasRest) |
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
java.lang.Object[] args) |
Deprecated.
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict) |
Deprecated.
|
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
Create a function object.
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain) |
|
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope) |
Creates new script object.
|
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope) |
Return new Scriptable instance using the default constructor for the class of the
underlying Java method.
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope) |
|
static <T extends Scriptable> void |
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz) |
Defines JavaScript objects from a Java class that implements Scriptable.
|
static <T extends Scriptable> void |
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz,
boolean sealed) |
Defines JavaScript objects from a Java class, optionally allowing sealing.
|
static <T extends Scriptable> java.lang.String |
ScriptableObject.defineClass(Scriptable scope,
java.lang.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 |
ConstProperties.defineConst(java.lang.String name,
Scriptable start) |
Reserves a definition spot for a const.
|
void |
ScriptableObject.defineConst(java.lang.String name,
Scriptable start) |
|
static void |
ScriptableObject.defineConstProperty(Scriptable destination,
java.lang.String propertyName) |
Utility method to add properties to arbitrary Scriptable object.
|
void |
LambdaConstructor.defineConstructorMethod(Scriptable scope,
java.lang.String name,
int length,
Callable 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,
java.lang.String name,
int length,
Callable 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,
java.lang.String name,
int length,
Callable target,
int attributes) |
Define a function property directly on the constructor that is implemented under the covers
by a LambdaFunction.
|
protected void |
ScriptableObject.defineProperty(Scriptable scope,
java.lang.String name,
int length,
Callable target,
int attributes,
int propertyAttributes) |
Utility method to add lambda properties to arbitrary Scriptable object.
|
static void |
ScriptableObject.defineProperty(Scriptable destination,
java.lang.String propertyName,
java.lang.Object value,
int attributes) |
Utility method to add properties to arbitrary Scriptable object.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
java.lang.String name,
int length,
Callable target) |
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
void |
LambdaConstructor.definePrototypeMethod(Scriptable scope,
java.lang.String name,
int length,
Callable target,
int attributes,
int propertyAttributes) |
Define a function property on the prototype of the constructor using a LambdaFunction under
the covers.
|
static java.lang.Object |
ScriptRuntime.delete(java.lang.Object obj,
java.lang.Object id,
Context cx,
Scriptable scope,
boolean isName) |
The delete operator
|
static boolean |
ScriptRuntime.deleteObjectElem(Scriptable target,
java.lang.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,
java.lang.String name) |
Removes the property from an object or its prototype chain.
|
protected java.lang.Object |
ContextFactory.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Execute top call to script or function.
|
static java.lang.Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
boolean isTopLevelStrict) |
|
static java.lang.Object |
ScriptRuntime.elemIncrDecr(java.lang.Object obj,
java.lang.Object index,
Context cx,
Scriptable scope,
int incrDecrMask) |
|
static void |
ScriptRuntime.enterActivationFunction(Context cx,
Scriptable scope) |
|
static Scriptable |
ScriptRuntime.enterDotQuery(java.lang.Object value,
Scriptable scope) |
|
static Scriptable |
ScriptRuntime.enterWith(java.lang.Object obj,
Context cx,
Scriptable scope) |
|
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
Scriptable scope,
int enumType) |
|
static java.lang.Object |
ScriptRuntime.evalSpecial(Context cx,
Scriptable scope,
java.lang.Object thisArg,
java.lang.Object[] args,
java.lang.String filename,
int lineNumber) |
The eval function property of the global object.
|
java.lang.Object |
Context.evaluateReader(Scriptable scope,
java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain) |
Evaluate a reader as JavaScript source.
|
java.lang.Object |
Context.evaluateString(Scriptable scope,
java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain) |
Evaluate a JavaScript source string.
|
java.lang.Object |
Script.exec(Context cx,
Scriptable scope) |
Execute the script.
|
java.lang.Object |
BaseFunction.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
ES6Generator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
ES6Iterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
IdFunctionCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should
be returned
|
java.lang.Object |
IdScriptableObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable
should be returned.
|
java.lang.Object |
ImporterTopLevel.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
JavaAdapter.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeArray.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeCallSite.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeConsole.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeContinuation.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeGenerator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeGlobal.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeIterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeJavaTopPackage.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeMap.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeSet.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeSymbol.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeWeakMap.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeWeakSet.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
NativeWith.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
|
java.lang.Object |
Context.executeScriptWithContinuations(Script script,
Scriptable scope) |
Execute script that may pause execution by capturing a continuation.
|
java.lang.Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
java.lang.Object securityDomain) |
Deprecated.
|
IdFunctionObject |
IdScriptableObject.exportAsJSClass(int maxPrototypeId,
Scriptable scope,
boolean sealed) |
|
int |
RegExpProxy.find_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.String separator,
Scriptable re,
int[] ip,
int[] matchlen,
boolean[] matched,
java.lang.String[][] parensp) |
|
static java.lang.String |
NativeConsole.format(Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
static ClassCache |
ClassCache.get(Scriptable scope) |
Search for ClassCache object in the given scope.
|
java.lang.Object |
Delegator.get(int index,
Scriptable start) |
|
java.lang.Object |
Delegator.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
Delegator.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
IdScriptableObject.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
IdScriptableObject.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
ImporterTopLevel.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
NativeArray.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeArray.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
NativeJavaArray.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeJavaArray.get(java.lang.String id,
Scriptable start) |
|
java.lang.Object |
NativeJavaArray.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
NativeJavaClass.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
NativeJavaList.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeJavaList.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
NativeJavaList.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
NativeJavaMap.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeJavaMap.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
NativeJavaMap.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
NativeJavaObject.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeJavaObject.get(java.lang.String name,
Scriptable start) |
|
java.lang.Object |
NativeJavaObject.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
NativeJavaPackage.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeJavaPackage.get(java.lang.String id,
Scriptable start) |
|
java.lang.Object |
NativeWith.get(int index,
Scriptable start) |
|
java.lang.Object |
NativeWith.get(java.lang.String id,
Scriptable start) |
|
java.lang.Object |
NativeWith.get(Symbol key,
Scriptable start) |
|
java.lang.Object |
Scriptable.get(int index,
Scriptable start) |
Get a property from the object selected by an integral index.
|
java.lang.Object |
Scriptable.get(java.lang.String name,
Scriptable start) |
Get a named property from the object.
|
java.lang.Object |
ScriptableObject.get(int index,
Scriptable start) |
Returns the value of the indexed property or NOT_FOUND.
|
java.lang.Object |
ScriptableObject.get(java.lang.String name,
Scriptable start) |
Returns the value of the named property or NOT_FOUND.
|
java.lang.Object |
ScriptableObject.get(Symbol key,
Scriptable start) |
Another version of Get that supports Symbol keyed properties.
|
java.lang.Object |
SymbolScriptable.get(Symbol key,
Scriptable start) |
Return the value of the property with the specified key, or NOT_FOUND.
|
static java.lang.Object[] |
ScriptRuntime.getArrayElements(Scriptable object) |
|
static Scriptable |
ScriptableObject.getArrayPrototype(Scriptable scope) |
|
int |
ScriptableObject.getAttributes(int index,
Scriptable start) |
Deprecated.
|
int |
ScriptableObject.getAttributes(java.lang.String name,
Scriptable start) |
Deprecated.
|
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,
java.lang.String className) |
Get the prototype for the named class.
|
static java.lang.Object |
ScriptableObject.getDefaultValue(Scriptable object,
java.lang.Class<?> typeHint) |
|
java.lang.Object[] |
Context.getElements(Scriptable object) |
Get the elements of a JavaScript array.
|
static Callable |
ScriptRuntime.getElemFunctionAndThis(java.lang.Object obj,
java.lang.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 as ScriptRuntime.lastStoredScriptable() for
consumption as thisObj.
|
static Function |
JavaAdapter.getFunction(Scriptable obj,
java.lang.String functionName) |
|
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope) |
Get the Function.prototype property.
|
static Scriptable |
ScriptableObject.getGeneratorFunctionPrototype(Scriptable scope) |
|
java.lang.Object |
ScriptableObject.getGetterOrSetter(java.lang.String name,
int index,
Scriptable scope,
boolean isSetter) |
Get the getter or setter for a given property.
|
static ScriptableObject |
ScriptRuntime.getLibraryScopeOrNull(Scriptable scope) |
|
static Callable |
ScriptRuntime.getNameFunctionAndThis(java.lang.String name,
Context cx,
Scriptable scope) |
Prepare for calling name(...): return function corresponding to name and make current top
scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
static java.lang.Object |
ScriptRuntime.getObjectElem(java.lang.Object obj,
java.lang.Object elem,
Context cx,
Scriptable scope) |
Call obj.[[Get]](id)
|
static java.lang.Object |
ScriptRuntime.getObjectElem(Scriptable obj,
java.lang.Object elem,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.getObjectIndex(java.lang.Object obj,
double dblIndex,
Context cx,
Scriptable scope) |
A cheaper and less general version of the above for well-known argument types.
|
static java.lang.Object |
ScriptRuntime.getObjectIndex(Scriptable obj,
int index,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.getObjectProp(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope) |
Version of getObjectElem when elem is a valid JS identifier name.
|
static java.lang.Object |
ScriptRuntime.getObjectProp(Scriptable obj,
java.lang.String property,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.getObjectPropNoWarn(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope) |
|
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope) |
Get the Object.prototype property.
|
static java.lang.Object |
ScriptableObject.getProperty(Scriptable obj,
int index) |
Gets an indexed property from an object or any object in its prototype chain.
|
static java.lang.Object |
ScriptableObject.getProperty(Scriptable obj,
java.lang.String name) |
Gets a named property from an object or any object in its prototype chain.
|
static java.lang.Object |
ScriptableObject.getProperty(Scriptable obj,
Symbol key) |
This is a version of getProperty that works with Symbols.
|
static java.lang.Object[] |
ScriptableObject.getPropertyIds(Scriptable obj) |
Returns an array of all ids from an object and its prototypes.
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope) |
Prepare for calling obj.property(...): return function corresponding to obj.property and make
obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for
consumption as thisObj.
|
static java.lang.Object |
NativeIterator.getStopIterationObject(Scriptable scope) |
Get the value of the "StopIteration" object.
|
static Scriptable |
ScriptRuntime.getTemplateLiteralCallSite(Context cx,
Scriptable scope,
java.lang.Object[] strings,
int index) |
|
static java.lang.Object |
ScriptRuntime.getTopLevelProp(Scriptable scope,
java.lang.String id) |
|
static Scriptable |
ScriptableObject.getTopLevelScope(Scriptable obj) |
Get the global scope.
|
static java.lang.Object |
ScriptableObject.getTopScopeValue(Scriptable scope,
java.lang.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,
java.lang.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,
java.lang.String name,
java.lang.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.
|
java.lang.Object |
AccessorSlot.getValue(Scriptable start) |
|
java.lang.Object |
LambdaSlot.getValue(Scriptable start) |
|
java.lang.Object |
LazyLoadSlot.getValue(Scriptable start) |
|
java.lang.Object |
Slot.getValue(Scriptable start) |
|
boolean |
Delegator.has(int index,
Scriptable start) |
|
boolean |
Delegator.has(java.lang.String name,
Scriptable start) |
|
boolean |
Delegator.has(Symbol key,
Scriptable start) |
|
boolean |
IdScriptableObject.has(java.lang.String name,
Scriptable start) |
|
boolean |
IdScriptableObject.has(Symbol key,
Scriptable start) |
|
boolean |
ImporterTopLevel.has(java.lang.String name,
Scriptable start) |
|
boolean |
NativeArray.has(int index,
Scriptable start) |
|
boolean |
NativeArray.has(Symbol key,
Scriptable start) |
|
boolean |
NativeJavaArray.has(int index,
Scriptable start) |
|
boolean |
NativeJavaArray.has(java.lang.String id,
Scriptable start) |
|
boolean |
NativeJavaArray.has(Symbol key,
Scriptable start) |
|
boolean |
NativeJavaClass.has(java.lang.String name,
Scriptable start) |
|
boolean |
NativeJavaList.has(int index,
Scriptable start) |
|
boolean |
NativeJavaList.has(java.lang.String name,
Scriptable start) |
|
boolean |
NativeJavaList.has(Symbol key,
Scriptable start) |
|
boolean |
NativeJavaMap.has(int index,
Scriptable start) |
|
boolean |
NativeJavaMap.has(java.lang.String name,
Scriptable start) |
|
boolean |
NativeJavaMap.has(Symbol key,
Scriptable start) |
|
boolean |
NativeJavaObject.has(int index,
Scriptable start) |
|
boolean |
NativeJavaObject.has(java.lang.String name,
Scriptable start) |
|
boolean |
NativeJavaObject.has(Symbol key,
Scriptable start) |
|
boolean |
NativeJavaPackage.has(int index,
Scriptable start) |
|
boolean |
NativeJavaPackage.has(java.lang.String id,
Scriptable start) |
|
boolean |
NativeWith.has(int index,
Scriptable start) |
|
boolean |
NativeWith.has(java.lang.String id,
Scriptable start) |
|
boolean |
NativeWith.has(Symbol key,
Scriptable start) |
|
boolean |
Scriptable.has(int index,
Scriptable start) |
Indicates whether or not an indexed property is defined in an object.
|
boolean |
Scriptable.has(java.lang.String name,
Scriptable start) |
Indicates whether or not a named property is defined in an object.
|
boolean |
ScriptableObject.has(int index,
Scriptable start) |
Returns true if the property index is defined.
|
boolean |
ScriptableObject.has(java.lang.String name,
Scriptable start) |
Returns true if the named property is defined.
|
boolean |
ScriptableObject.has(Symbol key,
Scriptable start) |
A version of "has" that supports symbols.
|
boolean |
SymbolScriptable.has(Symbol key,
Scriptable start) |
Return true if the specified property exists.
|
boolean |
ArrowFunction.hasInstance(Scriptable instance) |
|
boolean |
BaseFunction.hasInstance(Scriptable instance) |
Implements the instanceof operator for JavaScript Function objects.
|
boolean |
BoundFunction.hasInstance(Scriptable instance) |
|
boolean |
Delegator.hasInstance(Scriptable instance) |
|
boolean |
NativeIterator.StopIteration.hasInstance(Scriptable instance) |
|
boolean |
NativeJavaArray.hasInstance(Scriptable value) |
|
boolean |
NativeJavaClass.hasInstance(Scriptable value) |
Determines if prototype is a wrapped Java object and performs a Java "instanceof".
|
boolean |
NativeJavaObject.hasInstance(Scriptable value) |
|
boolean |
NativeWith.hasInstance(Scriptable value) |
|
boolean |
Scriptable.hasInstance(Scriptable instance) |
The instanceof operator.
|
boolean |
ScriptableObject.hasInstance(Scriptable instance) |
Implements the instanceof operator.
|
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
java.lang.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,
java.lang.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,
java.lang.Object[] args,
Function funObj) |
Deprecated.
|
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
NativeConsole.init(Scriptable scope,
boolean sealed,
NativeConsole.ConsolePrinter printer) |
|
static void |
NativeContinuation.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
NativeGlobal.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
NativeJavaTopPackage.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
NativePromise.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
NativeSymbol.init(Context cx,
Scriptable scope,
boolean sealed) |
|
void |
IdFunctionObject.initFunction(java.lang.String name,
Scriptable scope) |
|
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode) |
|
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) |
|
java.lang.Object |
InterfaceAdapter.invoke(ContextFactory cf,
java.lang.Object target,
Scriptable topScope,
java.lang.Object thisObject,
java.lang.reflect.Method method,
java.lang.Object[] args) |
|
protected abstract boolean |
ES6Iterator.isDone(Context cx,
Scriptable scope) |
|
protected boolean |
NativeArrayIterator.isDone(Context cx,
Scriptable scope) |
|
protected boolean |
NativeCollectionIterator.isDone(Context cx,
Scriptable scope) |
|
protected boolean |
NativeStringIterator.isDone(Context cx,
Scriptable scope) |
|
boolean |
RegExpProxy.isRegExp(Scriptable obj) |
|
static java.lang.Object |
Context.javaToJS(java.lang.Object value,
Scriptable scope) |
Convenient method to convert java value to its closest representation in JavaScript.
|
static java.lang.Object |
Context.javaToJS(java.lang.Object value,
Scriptable scope,
Context cx) |
Convenient method to convert java value to its closest representation in JavaScript.
|
java.lang.Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
java.lang.String thisString,
java.lang.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 boolean |
ScriptRuntime.loadFromIterable(Context cx,
Scriptable scope,
java.lang.Object arg1,
java.util.function.BiConsumer<java.lang.Object,java.lang.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 java.lang.Object |
ScriptRuntime.name(Context cx,
Scriptable scope,
java.lang.String name) |
Looks up a name in the scope chain and returns its value.
|
static java.lang.Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
java.lang.String id,
int incrDecrMask) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
java.lang.String id,
Context cx,
int incrDecrMask) |
|
static Ref |
ScriptRuntime.nameRef(java.lang.Object namespace,
java.lang.Object name,
Context cx,
Scriptable scope,
int memberTypeFlags) |
|
static Ref |
ScriptRuntime.nameRef(java.lang.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,
java.lang.Object[] elements) |
Create an array with a set of initial elements.
|
static Scriptable |
ScriptRuntime.newArrayLiteral(java.lang.Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope) |
|
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
java.lang.Object[] args) |
|
static Scriptable |
ScriptRuntime.newCatchScope(java.lang.Throwable t,
Scriptable lastCatchScope,
java.lang.String exceptionName,
Context cx,
Scriptable scope) |
|
protected abstract java.lang.Object |
VMBridge.newInterfaceProxy(java.lang.Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
java.lang.Object target,
Scriptable topScope) |
|
Scriptable |
Context.newObject(Scriptable scope) |
Create a new JavaScript object.
|
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName) |
Create a new JavaScript object by executing the named constructor.
|
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args) |
Creates a new JavaScript object by executing the named constructor.
|
static Scriptable |
ScriptRuntime.newObject(java.lang.Object fun,
Context cx,
Scriptable scope,
java.lang.Object[] args) |
Operator new.
|
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args) |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope) |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
Context cx,
Scriptable scope) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.newSpecial(Context cx,
java.lang.Object fun,
java.lang.Object[] args,
Scriptable scope,
int callType) |
|
protected java.lang.Object |
ES6Iterator.next(Context cx,
Scriptable scope) |
|
protected abstract java.lang.Object |
ES6Iterator.nextValue(Context cx,
Scriptable scope) |
|
protected java.lang.Object |
NativeArrayIterator.nextValue(Context cx,
Scriptable scope) |
|
protected java.lang.Object |
NativeCollectionIterator.nextValue(Context cx,
Scriptable scope) |
|
protected java.lang.Object |
NativeStringIterator.nextValue(Context cx,
Scriptable scope) |
|
static java.lang.RuntimeException |
ScriptRuntime.notFoundError(Scriptable object,
java.lang.String property) |
|
static java.lang.Object[] |
ScriptRuntime.padAndRestArguments(Context cx,
Scriptable scope,
java.lang.Object[] args,
int argCount) |
Helper function for builtin objects that use the varargs form.
|
static java.lang.Object |
NativeJSON.parse(Context cx,
Scriptable scope,
java.lang.String jtext,
Callable reviver) |
|
void |
NativeConsole.ConsolePrinter.print(Context cx,
Scriptable scope,
NativeConsole.Level level,
java.lang.Object[] args,
ScriptStackElement[] stack) |
|
static java.lang.Object |
ScriptRuntime.propIncrDecr(java.lang.Object obj,
java.lang.String id,
Context cx,
Scriptable scope,
int incrDecrMask) |
|
void |
Delegator.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
Delegator.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
Delegator.put(Symbol symbol,
Scriptable start,
java.lang.Object value) |
|
void |
IdScriptableObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
IdScriptableObject.put(Symbol key,
Scriptable start,
java.lang.Object value) |
|
void |
NativeArray.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeArray.put(java.lang.String id,
Scriptable start,
java.lang.Object value) |
|
void |
NativeArray.put(Symbol key,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaArray.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaArray.put(java.lang.String id,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaClass.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaList.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaList.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaMap.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaMap.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaObject.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaObject.put(Symbol symbol,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaPackage.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeJavaPackage.put(java.lang.String id,
Scriptable start,
java.lang.Object value) |
|
void |
NativeSymbol.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeSymbol.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
|
void |
NativeSymbol.put(Symbol key,
Scriptable start,
java.lang.Object value) |
|
void |
NativeWith.put(int index,
Scriptable start,
java.lang.Object value) |
|
void |
NativeWith.put(java.lang.String id,
Scriptable start,
java.lang.Object value) |
|
void |
NativeWith.put(Symbol symbol,
Scriptable start,
java.lang.Object value) |
|
void |
Scriptable.put(int index,
Scriptable start,
java.lang.Object value) |
Sets an indexed property in this object.
|
void |
Scriptable.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
Sets a named property in this object.
|
void |
ScriptableObject.put(int index,
Scriptable start,
java.lang.Object value) |
Sets the value of the indexed property, creating it if need be.
|
void |
ScriptableObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value) |
Sets the value of the named property, creating it if need be.
|
void |
ScriptableObject.put(Symbol key,
Scriptable start,
java.lang.Object value) |
Implementation of put required by SymbolScriptable objects.
|
void |
SymbolScriptable.put(Symbol key,
Scriptable start,
java.lang.Object value) |
Add a new property to to the object.
|
void |
ConstProperties.putConst(java.lang.String name,
Scriptable start,
java.lang.Object value) |
Sets a named const property in this object.
|
void |
ScriptableObject.putConst(java.lang.String name,
Scriptable start,
java.lang.Object value) |
Sets the value of the named const property, creating it if need be.
|
static void |
ScriptableObject.putConstProperty(Scriptable obj,
java.lang.String name,
java.lang.Object value) |
Puts a named property in an object or in an object in its prototype chain.
|
static void |
ScriptableObject.putProperty(Scriptable obj,
int index,
java.lang.Object value) |
Puts an indexed property in an object or in an object in its prototype chain.
|
static void |
ScriptableObject.putProperty(Scriptable obj,
java.lang.String name,
java.lang.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,
java.lang.Object value) |
This is a version of putProperty for Symbol keys.
|
static java.lang.Object |
JavaAdapter.readAdapterObject(Scriptable self,
java.io.ObjectInputStream in) |
|
static void |
ScriptableObject.redefineProperty(Scriptable obj,
java.lang.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.
|
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
java.lang.Object[] args) |
Perform function call in reference context.
|
static java.lang.Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
Scriptable scope,
int incrDecrMask) |
|
static java.lang.Object |
ScriptRuntime.refSet(Ref ref,
java.lang.Object value,
Context cx,
Scriptable scope) |
|
static java.lang.Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
java.lang.Object |
Context.resumeContinuation(java.lang.Object continuation,
Scriptable scope,
java.lang.Object functionResult) |
|
static java.lang.Object |
Interpreter.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object savedState,
java.lang.Object value) |
|
java.lang.Object |
NativeFunction.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object state,
java.lang.Object value) |
Resume execution of a suspended generator.
|
java.lang.Object |
Ref.set(Context cx,
Scriptable scope,
java.lang.Object value) |
|
void |
ScriptableObject.setAttributes(int index,
Scriptable start,
int attributes) |
Deprecated.
|
void |
ScriptableObject.setAttributes(java.lang.String name,
Scriptable start,
int attributes) |
Deprecated.
|
static void |
ScriptRuntime.setBuiltinProtoAndParent(ScriptableObject object,
Scriptable scope,
TopLevel.Builtins type) |
|
static java.lang.Object |
ScriptRuntime.setConst(Scriptable bound,
java.lang.Object value,
Context cx,
java.lang.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.
|
static java.lang.Object |
ScriptRuntime.setName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id) |
|
static java.lang.Object |
ScriptRuntime.setObjectElem(java.lang.Object obj,
java.lang.Object elem,
java.lang.Object value,
Context cx,
Scriptable scope) |
Call obj.[[Put]](id, value)
|
static java.lang.Object |
ScriptRuntime.setObjectElem(Scriptable obj,
java.lang.Object elem,
java.lang.Object value,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.setObjectIndex(java.lang.Object obj,
double dblIndex,
java.lang.Object value,
Context cx,
Scriptable scope) |
A cheaper and less general version of the above for well-known argument types.
|
static java.lang.Object |
ScriptRuntime.setObjectIndex(Scriptable obj,
int index,
java.lang.Object value,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.setObjectProp(java.lang.Object obj,
java.lang.String property,
java.lang.Object value,
Context cx,
Scriptable scope) |
Version of setObjectElem when elem is a valid JS identifier name.
|
static java.lang.Object |
ScriptRuntime.setObjectProp(Scriptable obj,
java.lang.String property,
java.lang.Object value,
Context cx) |
|
static void |
ScriptRuntime.setObjectProtoAndParent(ScriptableObject object,
Scriptable scope) |
|
void |
Delegator.setParentScope(Scriptable parent) |
|
void |
NativeJavaObject.setParentScope(Scriptable m) |
Sets the parent (enclosing) scope of the object.
|
void |
NativeWith.setParentScope(Scriptable parent) |
|
void |
Scriptable.setParentScope(Scriptable parent) |
Set the parent scope of the object.
|
void |
ScriptableObject.setParentScope(Scriptable m) |
Sets the parent (enclosing) scope of the object.
|
void |
Delegator.setPrototype(Scriptable prototype) |
|
void |
NativeArray.setPrototype(Scriptable p) |
|
void |
NativeJavaObject.setPrototype(Scriptable m) |
Sets the prototype of the object.
|
void |
NativeWith.setPrototype(Scriptable prototype) |
|
void |
Scriptable.setPrototype(Scriptable prototype) |
Set the prototype of the object.
|
void |
ScriptableObject.setPrototype(Scriptable m) |
Sets the prototype of the object.
|
boolean |
AccessorSlot.setValue(java.lang.Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
|
boolean |
LambdaSlot.setValue(java.lang.Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
|
boolean |
Slot.setValue(java.lang.Object value,
Scriptable owner,
Scriptable start) |
|
boolean |
Slot.setValue(java.lang.Object value,
Scriptable owner,
Scriptable start,
boolean isThrow) |
|
static Ref |
ScriptRuntime.specialRef(java.lang.Object obj,
java.lang.String specialProperty,
Context cx,
Scriptable scope) |
|
static java.lang.Object |
ScriptRuntime.strictSetName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id) |
|
static java.lang.Object |
NativeJSON.stringify(Context cx,
Scriptable scope,
java.lang.Object value,
java.lang.Object replacer,
java.lang.Object space) |
|
static JavaScriptException |
ScriptRuntime.throwCustomError(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.String message) |
Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from
JavaScript.
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
java.lang.String message) |
Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.
|
protected void |
Slot.throwNoSetterException(Scriptable start,
java.lang.Object newValue) |
|
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly) |
|
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope) |
Convert the value to an JavaScript object value.
|
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope,
java.lang.Class<?> staticType) |
Deprecated.
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val) |
Convert the value to an object.
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass) |
Deprecated.
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val) |
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass) |
Deprecated.
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj,
Scriptable scope) |
|
static java.lang.String |
ScriptRuntime.typeofName(Scriptable scope,
java.lang.String id) |
The typeof operator that correctly handles the undefined case
|
static java.lang.Object |
ScriptRuntime.updateDotQuery(boolean value,
Scriptable scope) |
|
static NativeJavaArray |
NativeJavaArray.wrap(Scriptable scope,
java.lang.Object array) |
|
static java.lang.Object |
NativeJavaObject.wrap(Scriptable scope,
java.lang.Object obj,
java.lang.Class<?> staticType) |
Deprecated.
|
java.lang.Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
java.lang.Object obj,
java.lang.Class<?> staticType) |
Wrap the object.
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
java.lang.Object javaObject,
java.lang.Class<?> staticType) |
Wrap Java object as Scriptable instance to allow full access to its methods and fields from
JavaScript.
|
static Scriptable |
ScriptRuntime.wrapException(java.lang.Throwable t,
Scriptable scope,
Context cx) |
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
java.lang.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,
java.lang.Object obj) |
Wrap an object newly created by a constructor call.
|
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled) |
|
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled) |
|