| Modifier and Type | Method and Description |
|---|---|
Context |
ContextFactory.enter()
Deprecated.
use
ContextFactory.enterContext() instead |
static Context |
Context.enter()
Same as calling
ContextFactory.enterContext() on the global ContextFactory instance. |
static Context |
Context.enter(Context cx)
Deprecated.
use
ContextFactory.enterContext(Context) instead as this method relies on
usage of a static singleton "global" ContextFactory. |
Context |
ContextFactory.enterContext()
Get a context associated with the current thread, creating one if need be.
|
Context |
ContextFactory.enterContext(Context cx)
Get a Context associated with the current thread, using the given Context if need be.
|
static Context |
Context.getCurrentContext()
Get the current Context.
|
protected Context |
ContextFactory.makeContext()
Create new
Context instance to be associated with the current thread. |
| Modifier and Type | Method and Description |
|---|---|
Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType) |
static Object |
ScriptRuntime.add(Object lval,
Object rval,
Context cx) |
static void |
ScriptRuntime.addInstructionCount(Context cx,
int instructionsToAdd) |
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. |
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.
|
ScriptableObject |
LambdaAccessorSlot.buildPropertyDescriptor(Context cx)
The method exists avoid changing the getPropertyDescriptor signature and at the same time to
make it explicit that we don't use Scriptable scope parameter of getPropertyDescriptor, since
it can be problematic when called from inside ThreadSafeSlotMapContainer::compute lambda
which can lead to deadlocks.
|
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 |
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) |
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 |
ScriptableObject.callMethod(Context cx,
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 NativeContinuation |
Interpreter.captureContinuation(Context cx) |
static RegExpProxy |
ScriptRuntime.checkRegExpProxy(Context cx) |
static Object |
ArrayLikeAbstractOperations.coercibleIterativeMethod(Context cx,
ArrayLikeAbstractOperations.IterativeOperation operation,
Scriptable scope,
Scriptable o,
Object[] args,
long length) |
Object |
RegExpProxy.compileRegExp(Context cx,
String source,
String flags) |
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.
|
void |
ContextFactory.Listener.contextCreated(Context cx)
Notify about newly created
Context object. |
void |
ContextListener.contextEntered(Context cx)
Deprecated.
Rhino runtime never calls the method.
|
void |
ContextListener.contextExited(Context cx)
Deprecated.
Rhino runtime never calls the method.
|
void |
ContextFactory.Listener.contextReleased(Context cx)
Notify that the specified
Context instance is no longer associated with the
current thread. |
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 NewLiteralStorage |
NewLiteralStorage.create(Context cx,
int length,
boolean createKeys) |
static NewLiteralStorage |
NewLiteralStorage.create(Context cx,
Object[] ids) |
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.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)
|
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.
|
void |
ScriptableObject.defineOwnProperties(Context cx,
ScriptableObject props)
Defines one or more properties on this object.
|
boolean |
ScriptableObject.defineOwnProperty(Context cx,
Object id,
ScriptableObject desc)
Defines a property on an object.
|
protected boolean |
ScriptableObject.defineOwnProperty(Context cx,
Object id,
ScriptableObject desc,
boolean checkValid)
Defines a property on an object.
|
protected boolean |
NativeArray.defineOwnProperty(Context cx,
Object id,
ScriptableObject desc,
boolean checkValid) |
protected boolean |
IdScriptableObject.defineOwnProperty(Context cx,
Object key,
ScriptableObject desc,
boolean checkValid) |
void |
ScriptableObject.defineProperty(Context cx,
String name,
ScriptableObject.LambdaGetterFunction getter,
int attributes) |
void |
ScriptableObject.defineProperty(Context cx,
String name,
ScriptableObject.LambdaGetterFunction getter,
ScriptableObject.LambdaSetterFunction setter,
int attributes)
Define a property on this object that is implemented using lambda functions accepting
Scriptable `this` object as first parameter.
|
void |
ScriptableObject.defineProperty(Context cx,
Symbol key,
ScriptableObject.LambdaGetterFunction getter,
ScriptableObject.LambdaSetterFunction setter,
int attributes) |
void |
LambdaConstructor.definePrototypeProperty(Context cx,
String name,
ScriptableObject.LambdaGetterFunction getter,
int attributes)
Define a property on the prototype using a function.
|
void |
LambdaConstructor.definePrototypeProperty(Context cx,
String name,
ScriptableObject.LambdaGetterFunction getter,
ScriptableObject.LambdaSetterFunction setter,
int attributes)
Define a property on the prototype using functions for getter and setter.
|
void |
LambdaConstructor.definePrototypeProperty(Context cx,
String name,
ScriptableObject descriptor) |
void |
LambdaConstructor.definePrototypeProperty(Context cx,
Symbol key,
ScriptableObject.LambdaGetterFunction getter,
int attributes) |
void |
LambdaConstructor.definePrototypeProperty(Context cx,
Symbol key,
ScriptableObject.LambdaGetterFunction getter,
ScriptableObject.LambdaSetterFunction setter,
int attributes) |
void |
LambdaConstructor.definePrototypeProperty(Context cx,
Symbol key,
ScriptableObject descriptor) |
boolean |
Ref.delete(Context cx) |
static Object |
ScriptRuntime.delete(Object obj,
Object id,
Context cx)
Deprecated.
|
static Object |
ScriptRuntime.delete(Object obj,
Object id,
Context cx,
boolean isName)
Deprecated.
|
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 void |
ScriptRuntime.discardLastStoredScriptable(Context cx)
Deprecated.
|
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,
int incrDecrMask)
Deprecated.
|
static Object |
ScriptRuntime.elemIncrDecr(Object obj,
Object index,
Context cx,
Scriptable scope,
int incrDecrMask) |
static Context |
Context.enter(Context cx)
Deprecated.
use
ContextFactory.enterContext(Context) instead as this method relies on
usage of a static singleton "global" ContextFactory. |
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(Object obj,
Context cx,
Scriptable scope) |
static Object |
ScriptRuntime.enumId(Object enumObj,
Context cx) |
static Object |
ScriptRuntime.enumInit(Object value,
Context cx,
boolean enumValues)
Deprecated.
|
static Object |
ScriptRuntime.enumInit(Object value,
Context cx,
int enumType)
Deprecated.
|
static Object |
ScriptRuntime.enumInit(Object value,
Context cx,
Scriptable scope,
int enumType) |
static Boolean |
ScriptRuntime.enumNext(Object enumObj,
Context cx) |
static Object |
ScriptRuntime.enumValue(Object enumObj,
Context cx) |
static String |
ScriptRuntime.escapeAttributeValue(Object value,
Context cx)
Escapes the reserved characters in a value of an attribute
|
static String |
ScriptRuntime.escapeTextValue(Object value,
Context cx)
Escapes the reserved characters in a value of a text node
|
static Object |
ScriptRuntime.evalSpecial(Context cx,
Scriptable scope,
Object thisArg,
Object[] args,
String filename,
int lineNumber)
The eval function property of the global object.
|
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 |
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). |
static void |
ScriptRuntime.exitActivationFunction(Context cx) |
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) |
abstract Object |
Ref.get(Context cx) |
static Scriptable |
ScriptRuntime.getApplyOrCallThis(Context cx,
Scriptable scope,
Object arg0,
int l,
Callable target) |
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 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) |
static Callable |
ScriptRuntime.getElemFunctionAndThis(Object obj,
Object elem,
Context cx)
Deprecated.
|
static Callable |
ScriptRuntime.getElemFunctionAndThis(Object obj,
Object elem,
Context cx,
Scriptable scope)
|
static Callable |
ScriptRuntime.getElemFunctionAndThisOptional(Object obj,
Object elem,
Context cx,
Scriptable scope)
|
static Function |
ScriptRuntime.getExistingCtor(Context cx,
Scriptable scope,
String constructorName) |
static ScriptableObject |
ScriptRuntime.getGlobal(Context cx) |
long |
ArrayLikeAbstractOperations.LengthAccessor.getLength(Context cx,
Scriptable o) |
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)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
static Object |
ScriptRuntime.getObjectPropNoWarn(Object obj,
String property,
Context cx,
Scriptable scope) |
protected ScriptableObject |
ScriptableObject.getOwnPropertyDescriptor(Context cx,
Object id) |
protected ScriptableObject |
NativeArray.getOwnPropertyDescriptor(Context cx,
Object id) |
protected ScriptableObject |
IdScriptableObject.getOwnPropertyDescriptor(Context cx,
Object id) |
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 Callable |
ScriptRuntime.getPropFunctionAndThis(Object obj,
String property,
Context cx)
Deprecated.
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(Object obj,
String property,
Context cx,
Scriptable scope)
Deprecated.
|
static Callable |
ScriptRuntime.getPropFunctionAndThisOptional(Object obj,
String property,
Context cx,
Scriptable scope)
Deprecated.
|
static RegExpProxy |
ScriptRuntime.getRegExpProxy(Context cx) |
static Comparator<Object> |
ArrayLikeAbstractOperations.getSortComparator(Context cx,
Scriptable scope,
Object[] args) |
static ArrayLikeAbstractOperations.ElementComparator |
ArrayLikeAbstractOperations.getSortComparatorFromArguments(Context cx,
Scriptable scope,
Object[] args) |
String |
Interpreter.getSourcePositionFromStack(Context cx,
int[] linep) |
String |
Evaluator.getSourcePositionFromStack(Context cx,
int[] linep)
Get the source position information by examining the stack.
|
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.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 Scriptable |
ScriptRuntime.getTemplateLiteralCallSite(Context cx,
Scriptable scope,
Object[] strings,
int index) |
static Scriptable |
ScriptRuntime.getTopCallScope(Context cx) |
static ScriptRuntime.LookupResult |
ScriptRuntime.getValueAndThis(Object value,
Context cx)
Prepare for calling <expression>(...): return function corresponding to
<expression> and make parent scope of the function available in the result.
|
static ScriptRuntime.LookupResult |
ScriptRuntime.getValueAndThisOptional(Object value,
Context cx) |
static Callable |
ScriptRuntime.getValueFunctionAndThis(Object value,
Context cx)
Deprecated.
Use
ScriptRuntime.getValueAndThis(Object, Context) instead |
static Callable |
ScriptRuntime.getValueFunctionAndThisOptional(Object value,
Context cx)
Deprecated.
|
boolean |
Ref.has(Context cx) |
protected boolean |
ContextFactory.hasFeature(Context cx,
int featureIndex)
Implementation of
hasFeature(int featureIndex). |
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
Object elem,
Context cx) |
static boolean |
ScriptRuntime.hasTopCall(Context cx) |
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
Object[] args,
Function funObj)
Deprecated.
Kept only for compatibility.
|
static boolean |
ScriptRuntime.in(Object a,
Object b,
Context cx)
The in operator.
|
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) |
void |
CompilerEnvirons.initFromContext(Context cx) |
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode) |
Object |
Initializable.initialize(Context cx,
Scriptable scope,
boolean sealed)
Initialize the class in question, returning the new constructor.
|
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,
boolean isShorthand) |
void |
ImporterTopLevel.initStandardObjects(Context cx,
boolean sealed) |
static ScriptableObject |
ScriptRuntime.initStandardObjects(Context cx,
ScriptableObject scope,
boolean sealed) |
static boolean |
ScriptRuntime.instanceOf(Object a,
Object b,
Context cx)
The instanceof operator.
|
static boolean |
AbstractEcmaObjectOperations.isConstructor(Context cx,
Object argument)
IsConstructor ( argument )
7.2.4 IsConstructor
(argument)
|
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) |
static boolean |
ScriptRuntime.isIteratorDone(Context cx,
Object result)
Given an iterator result, return true if and only if there is a "done" property that's true.
|
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,
Context cx)
Convenient method to convert java value to its closest representation in JavaScript.
|
Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
String thisString,
Object[] _args) |
static Scriptable |
ScriptRuntime.lastStoredScriptable(Context cx)
Deprecated.
|
static long |
ScriptRuntime.lastUint32Result(Context cx) |
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.
|
static Ref |
ScriptRuntime.memberRef(Object obj,
Object elem,
Context cx,
int memberTypeFlags) |
static Ref |
ScriptRuntime.memberRef(Object obj,
Object namespace,
Object elem,
Context cx,
int memberTypeFlags) |
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 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) |
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.
|
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) |
protected void |
ContextFactory.observeInstructionCount(Context cx,
int instructionCount)
Implementation of
observeInstructionCount(int instructionCount). |
protected void |
ContextFactory.onContextCreated(Context cx) |
protected void |
ContextFactory.onContextReleased(Context cx) |
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,
int incrDecrMask)
Deprecated.
|
static Object |
ScriptRuntime.propIncrDecr(Object obj,
String id,
Context cx,
Scriptable scope,
int incrDecrMask) |
protected Slot |
ScriptableObject.querySlot(Context cx,
Object id) |
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.refDel(Ref ref,
Context cx) |
static Object |
ScriptRuntime.refGet(Ref ref,
Context cx) |
static Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
int incrDecrMask)
Deprecated.
|
static Object |
ScriptRuntime.refIncrDecr(Ref ref,
Context cx,
Scriptable scope,
int incrDecrMask) |
static Object |
ScriptRuntime.refSet(Ref ref,
Object value,
Context cx)
Deprecated.
|
static Object |
ScriptRuntime.refSet(Ref ref,
Object value,
Context cx,
Scriptable scope) |
static Object |
ScriptRuntimeES6.requireObjectCoercible(Context cx,
Object val,
IdFunctionObject idFuncObj) |
static Object |
ScriptRuntimeES6.requireObjectCoercible(Context cx,
Object val,
Object tag,
String functionName) |
static Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
Object[] args) |
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) |
T |
ContextAction.run(Context cx)
Execute action using the supplied Context instance.
|
static Object |
ScriptRuntime.searchDefaultNamespace(Context cx) |
abstract Object |
Ref.set(Context cx,
Object value)
Deprecated.
Use
Ref.set(Context, Scriptable, Object) instead |
Object |
Ref.set(Context cx,
Scriptable scope,
Object value) |
static Object |
ScriptRuntime.setConst(Scriptable bound,
Object value,
Context cx,
String id) |
static Object |
ScriptRuntime.setDefaultNamespace(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 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)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
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.setRegExpProxy(Context cx,
RegExpProxy proxy) |
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) |
static Ref |
ScriptRuntime.specialRef(Object obj,
String specialProperty,
Context cx)
Deprecated.
|
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 void |
ScriptRuntime.storeUint32Result(Context cx,
long value) |
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.
|
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 |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj)
Deprecated.
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj,
Scriptable scope) |
static BaseFunction |
ScriptRuntime.typeErrorThrower(Context cx)
Returns representation of the [[ThrowTypeError]] object.
|
Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
Object obj,
Class<?> staticType)
Wrap the object.
|
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) |
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Object[] boundArgs) |
ImporterTopLevel(Context cx) |
ImporterTopLevel(Context cx,
boolean sealed) |
IteratorLikeIterable(Context cx,
Scriptable scope,
Object target) |
| 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.
|
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.
|
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
DebugFrame |
Debugger.getFrame(Context cx,
DebuggableScript fnOrScript)
Called when execution entered a particular function or script.
|
void |
Debugger.handleCompilationDone(Context cx,
DebuggableScript fnOrScript,
String source)
Called when compilation of a particular function or script into internal bytecode is done.
|
void |
DebugFrame.onDebuggerStatement(Context cx)
Called when the function or script executes a 'debugger' statement.
|
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.
|
void |
DebugFrame.onExceptionThrown(Context cx,
Throwable ex)
Called when thrown exception is handled by the function or script.
|
void |
DebugFrame.onExit(Context cx,
boolean byThrow,
Object resultOrException)
Called when the function or script for this frame is about to return.
|
void |
DebugFrame.onLineChange(Context cx,
int lineNumber)
Called when executed code reaches new line in the source.
|
| Constructor and Description |
|---|
JsonParser(Context cx,
Scriptable scope) |
| Modifier and Type | Method and Description |
|---|---|
Object |
RegExpImpl.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType) |
static RegExpEngineAccess.CompiledRegExp |
RegExpEngineAccess.compile(Context cx,
String regExp,
String regExpArgs) |
Object |
RegExpImpl.compileRegExp(Context cx,
String source,
String flags) |
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) |
Object |
RegExpImpl.js_split(Context cx,
Scriptable scope,
String target,
Object[] args) |
static boolean |
RegExpEngineAccess.matches(Context cx,
String input,
RegExpEngineAccess.CompiledRegExp compiledRegExp) |
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
Main.contextCreated(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextEntered(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextExited(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
void |
Main.contextReleased(Context cx)
Deprecated.
The method is only present for compatibility and should not be called.
|
static Dim.ContextData |
Dim.ContextData.get(Context cx)
Returns the ContextData for the given Context.
|
void |
Dim.StackFrame.onDebuggerStatement(Context cx)
Called when a 'debugger' statement is executed.
|
void |
Dim.StackFrame.onEnter(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Called when the stack frame is entered.
|
void |
Dim.StackFrame.onExceptionThrown(Context cx,
Throwable exception)
Called when an exception has been thrown.
|
void |
Dim.StackFrame.onExit(Context cx,
boolean byThrow,
Object resultOrException)
Called when the stack frame has been left.
|
void |
Dim.StackFrame.onLineChange(Context cx,
int lineno)
Called when the current position has changed.
|
| 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) |
String[] |
Global.getPrompts(Context cx) |
protected boolean |
ShellContextFactory.hasFeature(Context cx,
int featureIndex) |
static void |
Global.help(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
Function funObj)
Print a help message.
|
void |
Global.init(Context cx) |
Require |
Global.installRequire(Context cx,
List<String> modulePath,
boolean sandboxed) |
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.
|
protected void |
ShellContextFactory.onContextCreated(Context cx) |
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) |
static void |
Main.processSource(Context cx,
String filename)
Evaluate JavaScript source.
|
void |
QuitAction.quit(Context cx,
int exitCode) |
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.
|
| Constructor and Description |
|---|
Global(Context cx) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
NativeTypedArrayView.defineOwnProperty(Context cx,
Object id,
ScriptableObject desc,
boolean checkValid) |
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) |
| Modifier and Type | Method and Description |
|---|---|
Object |
XMLObject.addValues(Context cx,
boolean thisIsLeft,
Object value)
Custom
+ operator. |
abstract boolean |
XMLObject.delete(Context cx,
Object id)
Implementation of ECMAScript [[Delete]].
|
abstract Object |
XMLObject.get(Context cx,
Object id)
Implementation of ECMAScript [[Get]].
|
abstract Scriptable |
XMLObject.getExtraMethodSource(Context cx)
Return an additional object to look for methods that runtime should consider during method
search.
|
abstract Object |
XMLObject.getFunctionProperty(Context cx,
int id) |
abstract Object |
XMLObject.getFunctionProperty(Context cx,
String name) |
abstract boolean |
XMLObject.has(Context cx,
Object id)
Implementation of ECMAScript [[Has]].
|
abstract boolean |
XMLLib.isXMLName(Context cx,
Object name) |
abstract Ref |
XMLObject.memberRef(Context cx,
Object elem,
int memberTypeFlags)
Generic reference to implement x.
|
abstract Ref |
XMLObject.memberRef(Context cx,
Object namespace,
Object elem,
int memberTypeFlags)
Generic reference to implement x::ns, x.
|
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) |
abstract void |
XMLObject.put(Context cx,
Object id,
Object value)
Implementation of ECMAScript [[Put]].
|
abstract Object |
XMLLib.toDefaultXmlNamespace(Context cx,
Object uriValue)
Construct namespace for default xml statement.
|
Copyright © 2025 HtmlUnit. All rights reserved.