java.lang.Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
int actionType) |
|
static java.lang.Object |
ScriptRuntime.add(java.lang.Object val1,
java.lang.Object val2,
Context cx) |
|
static void |
ScriptRuntime.addInstructionCount(Context cx,
int instructionsToAdd) |
|
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.
|
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.
|
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) |
|
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 |
ScriptableObject.callMethod(Context cx,
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) |
|
static NativeContinuation |
Interpreter.captureContinuation(Context cx) |
|
static RegExpProxy |
ScriptRuntime.checkRegExpProxy(Context cx) |
|
java.lang.Object |
RegExpProxy.compileRegExp(Context cx,
java.lang.String source,
java.lang.String flags) |
|
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.
|
void |
ContextFactory.Listener.contextCreated(Context cx) |
Notify about newly created Context object.
|
void |
ContextListener.contextEntered(Context cx) |
Deprecated.
|
void |
ContextListener.contextExited(Context cx) |
Deprecated.
|
void |
ContextFactory.Listener.contextReleased(Context cx) |
Notify that the specified Context instance is no longer associated with the
current thread.
|
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 Scriptable |
ScriptRuntime.createArrowFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict,
boolean argsHasRest) |
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Context cx,
Scriptable scope,
java.lang.Object[] args,
boolean isStrict,
boolean argsHasRest) |
|
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) |
|
void |
ScriptableObject.defineOwnProperties(Context cx,
ScriptableObject props) |
Defines one or more properties on this object.
|
protected void |
IdScriptableObject.defineOwnProperty(Context cx,
java.lang.Object key,
ScriptableObject desc,
boolean checkValid) |
|
protected void |
NativeArray.defineOwnProperty(Context cx,
java.lang.Object id,
ScriptableObject desc,
boolean checkValid) |
|
void |
ScriptableObject.defineOwnProperty(Context cx,
java.lang.Object id,
ScriptableObject desc) |
Defines a property on an object.
|
protected void |
ScriptableObject.defineOwnProperty(Context cx,
java.lang.Object id,
ScriptableObject desc,
boolean checkValid) |
Defines a property on an object.
|
boolean |
Ref.delete(Context cx) |
|
static java.lang.Object |
ScriptRuntime.delete(java.lang.Object obj,
java.lang.Object id,
Context cx) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.delete(java.lang.Object obj,
java.lang.Object id,
Context cx,
boolean isName) |
Deprecated.
|
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) |
|
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,
int incrDecrMask) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.elemIncrDecr(java.lang.Object obj,
java.lang.Object index,
Context cx,
Scriptable scope,
int incrDecrMask) |
|
static Context |
Context.enter(Context cx) |
Deprecated.
|
static void |
ScriptRuntime.enterActivationFunction(Context cx,
Scriptable scope) |
|
Context |
ContextFactory.enterContext(Context cx) |
Get a Context associated with the current thread, using the given Context if need be.
|
static Scriptable |
ScriptRuntime.enterWith(java.lang.Object obj,
Context cx,
Scriptable scope) |
|
static java.lang.Object |
ScriptRuntime.enumId(java.lang.Object enumObj,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
boolean enumValues) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
int enumType) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.enumInit(java.lang.Object value,
Context cx,
Scriptable scope,
int enumType) |
|
static java.lang.Boolean |
ScriptRuntime.enumNext(java.lang.Object enumObj,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.enumValue(java.lang.Object enumObj,
Context cx) |
|
static java.lang.String |
ScriptRuntime.escapeAttributeValue(java.lang.Object value,
Context cx) |
Escapes the reserved characters in a value of an attribute
|
static java.lang.String |
ScriptRuntime.escapeTextValue(java.lang.Object value,
Context cx) |
Escapes the reserved characters in a value of a text node
|
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 |
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 |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
java.lang.Object securityDomain) |
Deprecated.
|
static void |
ScriptRuntime.exitActivationFunction(Context cx) |
|
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) |
|
abstract java.lang.Object |
Ref.get(Context cx) |
|
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 Callable |
ScriptRuntime.getElemFunctionAndThis(java.lang.Object obj,
java.lang.Object elem,
Context cx) |
Deprecated.
|
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 ScriptableObject |
ScriptRuntime.getGlobal(Context cx) |
|
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) |
Deprecated.
|
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) |
Deprecated.
|
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) |
Deprecated.
|
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) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.getObjectPropNoWarn(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope) |
|
protected ScriptableObject |
IdScriptableObject.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
|
protected ScriptableObject |
NativeArray.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
|
protected ScriptableObject |
ScriptableObject.getOwnPropertyDescriptor(Context cx,
java.lang.Object id) |
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(java.lang.Object obj,
java.lang.String property,
Context cx) |
Deprecated.
|
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 RegExpProxy |
ScriptRuntime.getRegExpProxy(Context cx) |
|
java.lang.String |
Evaluator.getSourcePositionFromStack(Context cx,
int[] linep) |
Get the source position information by examining the stack.
|
java.lang.String |
Interpreter.getSourcePositionFromStack(Context cx,
int[] linep) |
|
static Scriptable |
ScriptRuntime.getTemplateLiteralCallSite(Context cx,
Scriptable scope,
java.lang.Object[] strings,
int index) |
|
static Scriptable |
ScriptRuntime.getTopCallScope(Context cx) |
|
static Callable |
ScriptRuntime.getValueFunctionAndThis(java.lang.Object value,
Context cx) |
Prepare for calling <expression>(...): return function corresponding to
<expression> and make parent scope of the function available as
ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
|
boolean |
Ref.has(Context cx) |
|
protected boolean |
ContextFactory.hasFeature(Context cx,
int featureIndex) |
|
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
java.lang.Object elem,
Context cx) |
|
static boolean |
ScriptRuntime.hasTopCall(Context cx) |
|
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj) |
Deprecated.
|
static boolean |
ScriptRuntime.in(java.lang.Object a,
java.lang.Object b,
Context cx) |
The in operator.
|
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed) |
|
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed) |
|
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 |
CompilerEnvirons.initFromContext(Context cx) |
|
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode) |
|
static ScriptableObject |
ScriptRuntime.initSafeStandardObjects(Context cx,
ScriptableObject scope,
boolean sealed) |
|
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) |
|
void |
ImporterTopLevel.initStandardObjects(Context cx,
boolean sealed) |
|
static ScriptableObject |
ScriptRuntime.initStandardObjects(Context cx,
ScriptableObject scope,
boolean sealed) |
|
static boolean |
ScriptRuntime.instanceOf(java.lang.Object a,
java.lang.Object b,
Context cx) |
The instanceof operator.
|
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) |
|
static boolean |
ScriptRuntime.isIteratorDone(Context cx,
java.lang.Object result) |
Given an iterator result, return true if and only if there is a "done" property that's true.
|
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 Scriptable |
ScriptRuntime.lastStoredScriptable(Context cx) |
|
static long |
ScriptRuntime.lastUint32Result(Context cx) |
|
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.
|
static Ref |
ScriptRuntime.memberRef(java.lang.Object obj,
java.lang.Object namespace,
java.lang.Object elem,
Context cx,
int memberTypeFlags) |
|
static Ref |
ScriptRuntime.memberRef(java.lang.Object obj,
java.lang.Object elem,
Context cx,
int memberTypeFlags) |
|
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,
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) |
|
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) |
|
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) |
|
protected void |
ContextFactory.observeInstructionCount(Context cx,
int instructionCount) |
|
protected void |
ContextFactory.onContextCreated(Context cx) |
|
protected void |
ContextFactory.onContextReleased(Context cx) |
|
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,
int incrDecrMask) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.propIncrDecr(java.lang.Object obj,
java.lang.String id,
Context cx,
Scriptable scope,
int incrDecrMask) |
|
protected Slot |
ScriptableObject.querySlot(Context cx,
java.lang.Object id) |
|
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
java.lang.Object[] args) |
Perform function call in reference context.
|
static java.lang.Object |
ScriptRuntime.refDel(Ref ref,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.refGet(Ref ref,
Context cx) |
|
static java.lang.Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
int incrDecrMask) |
Deprecated.
|
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) |
Deprecated.
|
static java.lang.Object |
ScriptRuntime.refSet(Ref ref,
java.lang.Object value,
Context cx,
Scriptable scope) |
|
static java.lang.Object |
ScriptRuntimeES6.requireObjectCoercible(Context cx,
java.lang.Object val,
IdFunctionObject idFuncObj) |
|
static java.lang.Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
java.lang.Object[] args) |
|
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.
|
T |
ContextAction.run(Context cx) |
Execute action using the supplied Context instance.
|
static java.lang.Object |
ScriptRuntime.searchDefaultNamespace(Context cx) |
|
abstract java.lang.Object |
Ref.set(Context cx,
java.lang.Object value) |
Deprecated.
|
java.lang.Object |
Ref.set(Context cx,
Scriptable scope,
java.lang.Object value) |
|
static java.lang.Object |
ScriptRuntime.setConst(Scriptable bound,
java.lang.Object value,
Context cx,
java.lang.String id) |
|
protected abstract void |
VMBridge.setContext(java.lang.Object contextHelper,
Context cx) |
Associate Context instance with the current thread or remove the current association
if cx is null.
|
static java.lang.Object |
ScriptRuntime.setDefaultNamespace(java.lang.Object namespace,
Context cx) |
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Context cx,
Scriptable scope) |
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Context cx,
Scriptable scope,
boolean es6GeneratorFunction) |
|
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) |
Deprecated.
|
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) |
Deprecated.
|
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) |
Deprecated.
|
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.setRegExpProxy(Context cx,
RegExpProxy proxy) |
|
static Ref |
ScriptRuntime.specialRef(java.lang.Object obj,
java.lang.String specialProperty,
Context cx) |
Deprecated.
|
static Ref |
ScriptRuntime.specialRef(java.lang.Object obj,
java.lang.String specialProperty,
Context cx,
Scriptable scope) |
|
static void |
ScriptRuntime.storeUint32Result(Context cx,
long value) |
|
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.
|
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly) |
|
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.toObjectOrNull(Context cx,
java.lang.Object obj) |
Deprecated.
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj,
Scriptable scope) |
|
static BaseFunction |
ScriptRuntime.typeErrorThrower(Context cx) |
Returns representation of the [[ThrowTypeError]] object.
|
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) |
|