Uses of Interface
org.mozilla.javascript.Scriptable
Packages that use Scriptable
Package
Description
Provides the public API for the CommonJS Modules/1.1 implementation.
Provides default implementations for module providers.
-
Uses of Scriptable in org.mozilla.javascript
Subinterfaces of Scriptable in org.mozilla.javascriptModifier and TypeInterfaceDescriptioninterface
This is interface that all functions in JavaScript must implement.Classes in org.mozilla.javascript that implement ScriptableModifier and TypeClassDescription(package private) final class
This class implements the "arguments" object.private static class
class
The class for Arrow Function Definitions EcmaScript 6 Rev 14, March 8, 2013 Draft spec , 13.2class
The base class for Function objects.class
The class for results of the Function.bind operation EcmaScript 5 spec, 15.3.4.5class
This is a helper class for implementing wrappers around Scriptable objects.final class
class
(package private) class
class
class
class
class
Base class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.class
Class ImporterTopLevel(package private) final class
class
This class implements a JavaScript function that may be used as a constructor by delegating to an interface that can be easily implemented as a lambda.class
This class implements a single JavaScript function that has the prototype of the built-in Function class, and which is implemented using a single function that can easily be implemented using a lambda expression.class
This class implements the Array native object.final class
(package private) final class
This class implements the BigInt native object.(package private) final class
This class implements the Boolean native object.final class
This class implements the activation object.class
This class is used by the V8 extension "Error.prepareStackTrace." It is passed to that function, which may then use it to format the stack as it sees fit.class
final class
(package private) final class
This class implements the Date native object.(package private) final class
The class of error objectsclass
This class implements the Function native object.final class
This class implements generator objects.final class
This class implements iterator objects.static class
class
This class reflects Java arrays into the JavaScript environment.class
This class reflects Java classes into the JavaScript environment, mainly for constructors and static members.class
This class reflects a single Java constructor into the JavaScript environment.class
NativeJavaList
is a wrapper for java objects implementingjava.util.List
interface.class
NativeJavaMap
is a wrapper for java objects implementingjava.util.Map
interface.private static final class
class
This class reflects Java methods into the JavaScript environment and handles overloading of methods.class
This class reflects non-Array Java objects into the JavaScript environment.private static final class
class
This class reflects Java packages into the JavaScript environment.class
This class reflects Java packages into the JavaScript environment.final class
This class implements the JSON native object.class
(package private) final class
This class implements the Math native object.(package private) final class
This class implements the Number native object.class
This class implements the Object native object.class
(package private) class
The JavaScript Script object.class
(package private) final class
This class implements the String native object.final class
class
This is an implementation of the standard "Symbol" type that implements all of its weird properties.class
This is an implementation of the ES6 WeakMap class.class
This is an implementation of the ES6 WeakSet class.class
This class implements the object lookup required for thewith
statement.class
This is the default implementation of the Scriptable interface.class
This class provides support for implementing Java-style synchronized methods in Javascript.class
A top-level scope object that provides special means to cache and preserve the initial values of the built-in constructor properties for better ECMAScript compliance.Fields in org.mozilla.javascript declared as ScriptableModifier and TypeFieldDescriptionprivate Scriptable
NativeArrayIterator.arrayLike
private Scriptable
ClassCache.associatedScope
private final Scriptable
ArrowFunction.boundThis
private final Scriptable
BoundFunction.boundThis
private final Scriptable
IteratorLikeIterable.iterator
(package private) Scriptable
ScriptRuntime.IdEnumeration.iterator
protected Scriptable
Delegator.obj
(package private) Scriptable
ScriptRuntime.IdEnumeration.obj
protected Scriptable
NativeJavaObject.parent
The parent scope of this object.protected Scriptable
NativeWith.parent
private Scriptable
ScriptableObject.parentScopeObject
The parent scope of this object.protected Scriptable
NativeJavaObject.prototype
The prototype of this object.protected Scriptable
NativeWith.prototype
private Scriptable
ScriptableObject.prototypeObject
The prototype of this object.(package private) Scriptable
Interpreter.CallFrame.scope
private final Scriptable
IteratorLikeIterable.scope
private Scriptable
NativeIterator.WrappedJavaIterator.scope
(package private) Scriptable
NativeJSON.StringifyState.scope
(package private) Scriptable
Context.scratchScriptable
static final Scriptable
Undefined.SCRIPTABLE_UNDEFINED
An alternate representation of undefined, to be used only when we need to pass it to a method that takes as Scriptable as a parameter.private Scriptable
SpecialRef.target
(package private) final Scriptable
Interpreter.CallFrame.thisObj
(package private) Scriptable
NativePromise.PromiseAllResolver.thisObj
(package private) Scriptable
Context.topCallScope
Fields in org.mozilla.javascript with type parameters of type ScriptableModifier and TypeFieldDescriptionprivate WeakHashMap
<Scriptable, Object> NativeWeakMap.map
private WeakHashMap
<Scriptable, Boolean> NativeWeakSet.map
static final Class
<Scriptable> ScriptRuntime.ScriptableClass
Methods in org.mozilla.javascript with type parameters of type ScriptableModifier and TypeMethodDescription(package private) static <T extends Scriptable>
BaseFunctionScriptableObject.buildClassCtor
(Scriptable scope, Class<T> clazz, boolean sealed, boolean mapInheritance) static <T extends Scriptable>
voidScriptableObject.defineClass
(Scriptable scope, Class<T> clazz) Defines JavaScript objects from a Java class that implements Scriptable.static <T extends Scriptable>
voidScriptableObject.defineClass
(Scriptable scope, Class<T> clazz, boolean sealed) Defines JavaScript objects from a Java class, optionally allowing sealing.static <T extends Scriptable>
StringScriptableObject.defineClass
(Scriptable scope, Class<T> clazz, boolean sealed, boolean mapInheritance) Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance.private static <T extends Scriptable>
Class<T> ScriptableObject.extendsScriptable
(Class<?> c) Methods in org.mozilla.javascript that return ScriptableModifier and TypeMethodDescriptionstatic Scriptable
ScriptRuntime.bind
(Context cx, Scriptable scope, String id) Returns the object in the scope chain that has a given property.private static Scriptable
NativeArray.callConstructorOrCreateArray
(Context cx, Scriptable scope, Scriptable arg, long length, boolean lengthAlways) (package private) static Scriptable
ScriptRuntime.checkDynamicScope
(Scriptable possibleDynamicScope, Scriptable staticTopScope) ReturnpossibleDynamicScope
ifstaticTopScope
is present on its prototype chain and returnstaticTopScope
otherwise.ArrowFunction.construct
(Context cx, Scriptable scope, Object[] args) BaseFunction.construct
(Context cx, Scriptable scope, Object[] args) BoundFunction.construct
(Context cx, Scriptable scope, Object[] extraArgs) Constructable.construct
(Context cx, Scriptable scope, Object[] args) Call the function as a constructor.Delegator.construct
(Context cx, Scriptable scope, Object[] args) Note that if thedelegee
isnull
, this method creates a new instance of the Delegator itself rathert than forwarding the call to thedelegee
.Function.construct
(Context cx, Scriptable scope, Object[] args) Call the function as a constructor.LambdaConstructor.construct
(Context cx, Scriptable scope, Object[] args) LambdaFunction.construct
(Context cx, Scriptable scope, Object[] args) NativeContinuation.construct
(Context cx, Scriptable scope, Object[] args) NativeJavaClass.construct
(Context cx, Scriptable scope, Object[] args) NativeJavaTopPackage.construct
(Context cx, Scriptable scope, Object[] args) NativeScript.construct
(Context cx, Scriptable scope, Object[] args) private static Scriptable
NativePromise.constructor
(Context cx, Scriptable scope, Object[] args) (package private) static Scriptable
NativeJavaClass.constructSpecific
(Context cx, Scriptable scope, Object[] args, MemberBox ctor) static Scriptable
JavaAdapter.createAdapterWrapper
(Scriptable obj, Object adapter) static Scriptable
ScriptRuntime.createArrowFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args, boolean isStrict) static Scriptable
ScriptRuntime.createFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args) Deprecated.static Scriptable
ScriptRuntime.createFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args, boolean isStrict) BaseFunction.createObject
(Context cx, Scriptable scope) Creates new script object.FunctionObject.createObject
(Context cx, Scriptable scope) Return newScriptable
instance using the default constructor for the class of the underlying Java method.IdFunctionObject.createObject
(Context cx, Scriptable scope) protected static Scriptable
ScriptableObject.ensureScriptable
(Object arg) static Scriptable
ScriptRuntime.enterDotQuery
(Object value, Scriptable scope) static Scriptable
ScriptRuntime.enterWith
(Object obj, Context cx, Scriptable scope) static Scriptable
ScriptableObject.getArrayPrototype
(Scriptable scope) (package private) Scriptable
ClassCache.getAssociatedScope()
private static Scriptable
ScriptableObject.getBase
(Scriptable obj, int index) private static Scriptable
ScriptableObject.getBase
(Scriptable obj, String name) private static Scriptable
ScriptableObject.getBase
(Scriptable obj, Symbol key) static Scriptable
TopLevel.getBuiltinPrototype
(Scriptable scope, TopLevel.Builtins type) Static helper method to get a built-in object prototype with the giventype
from the givenscope
.TopLevel.getBuiltinPrototype
(TopLevel.Builtins type) Get the cached built-in object prototype from this scope with the giventype
.protected Scriptable
BaseFunction.getClassPrototype()
static Scriptable
ScriptableObject.getClassPrototype
(Scriptable scope, String className) Get the prototype for the named class.private static Scriptable
NativeObject.getCompatibleObject
(Context cx, Scriptable scope, Object arg) Delegator.getDelegee()
Retrieve the delegee.EcmaError.getErrorObject()
Deprecated.Always returns null.static Scriptable
ScriptableObject.getFunctionPrototype
(Scriptable scope) Get the Function.prototype property.static Scriptable
ScriptableObject.getGeneratorFunctionPrototype
(Scriptable scope) static Scriptable
ScriptableObject.getObjectPrototype
(Scriptable scope) Get the Object.prototype property.Delegator.getParentScope()
NativeJavaObject.getParentScope()
Returns the parent (enclosing) scope of the object.NativeWith.getParentScope()
Scriptable.getParentScope()
Get the parent scope of the object.ScriptableObject.getParentScope()
Returns the parent (enclosing) scope of the object.Delegator.getPrototype()
IdFunctionObject.getPrototype()
NativeJavaArray.getPrototype()
NativeJavaObject.getPrototype()
NativeWith.getPrototype()
Scriptable.getPrototype()
Get the prototype of the object.ScriptableObject.getPrototype()
Returns the prototype of the object.static Scriptable
ScriptRuntime.getTemplateLiteralCallSite
(Context cx, Scriptable scope, Object[] strings, int index) static Scriptable
ScriptRuntime.getTopCallScope
(Context cx) static Scriptable
ScriptableObject.getTopLevelScope
(Scriptable obj) Get the global scope.final Scriptable
Context.initSafeStandardObjects
(ScriptableObject scope) Initialize the standard objects, leaving out those that offer access directly to Java classes.final Scriptable
Context.initStandardObjects
(ScriptableObject scope) Initialize the standard objects.private static Scriptable
NativeArray.js_concat
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Scriptable
NativeJavaTopPackage.js_getClass
(Context cx, Scriptable scope, Object[] args) private static Scriptable
NativeArray.js_reverse
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) See ECMA 15.4.4.4private static Scriptable
NativeArray.js_slice
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
NativeArray.js_sort
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) See ECMA 15.4.4.5static Scriptable
ScriptRuntime.lastStoredScriptable
(Context cx) static Scriptable
ScriptRuntime.leaveDotQuery
(Scriptable scope) static Scriptable
ScriptRuntime.leaveWith
(Scriptable scope) (package private) static Scriptable
ES6Iterator.makeIteratorResult
(Context cx, Scriptable scope, Boolean done) (package private) static Scriptable
ES6Iterator.makeIteratorResult
(Context cx, Scriptable scope, Boolean done, Object value) Context.newArray
(Scriptable scope, int length) Create an array with a specified initial length.Context.newArray
(Scriptable scope, Object[] elements) Create an array with a set of initial elements.static Scriptable
ScriptRuntime.newArrayLiteral
(Object[] objects, int[] skipIndices, Context cx, Scriptable scope) static Scriptable
ScriptRuntime.newBuiltinObject
(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) static Scriptable
ScriptRuntime.newCatchScope
(Throwable t, Scriptable lastCatchScope, String exceptionName, Context cx, Scriptable scope) (package private) static Scriptable
ScriptRuntime.newNativeError
(Context cx, Scriptable scope, TopLevel.NativeErrors type, Object[] args) Context.newObject
(Scriptable scope) Create a new JavaScript object.Context.newObject
(Scriptable scope, String constructorName) Create a new JavaScript object by executing the named constructor.Context.newObject
(Scriptable scope, String constructorName, Object[] args) Creates a new JavaScript object by executing the named constructor.static Scriptable
ScriptRuntime.newObject
(Object fun, Context cx, Scriptable scope, Object[] args) Operator new.static Scriptable
ScriptRuntime.newObject
(Context cx, Scriptable scope, String constructorName, Object[] args) static Scriptable
ScriptRuntime.newObjectLiteral
(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, Scriptable scope) static Scriptable
ScriptRuntime.newObjectLiteral
(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope) Deprecated.private Scriptable
ES6Generator.resumeAbruptLocal
(Context cx, Scriptable scope, int op, Object value) private Scriptable
ES6Generator.resumeDelegee
(Context cx, Scriptable scope, Object value) private Scriptable
ES6Generator.resumeDelegeeReturn
(Context cx, Scriptable scope, Object value) private Scriptable
ES6Generator.resumeDelegeeThrow
(Context cx, Scriptable scope, Object value) private Scriptable
ES6Generator.resumeLocal
(Context cx, Scriptable scope, Object value) static Scriptable
static Scriptable
ScriptRuntime.toIterator
(Context cx, Scriptable scope, Scriptable obj, boolean keyOnly) static Scriptable
Context.toObject
(Object value, Scriptable scope) Convert the value to an JavaScript object value.static Scriptable
Context.toObject
(Object value, Scriptable scope, Class<?> staticType) Deprecated.static Scriptable
ScriptRuntime.toObject
(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.UseScriptRuntime.toObject(Context, Scriptable, Object)
instead.static Scriptable
ScriptRuntime.toObject
(Scriptable scope, Object val) static Scriptable
ScriptRuntime.toObject
(Scriptable scope, Object val, Class<?> staticClass) Deprecated.UseScriptRuntime.toObject(Scriptable, Object)
instead.static Scriptable
ScriptRuntime.toObjectOrNull
(Context cx, Object obj) Deprecated.static Scriptable
ScriptRuntime.toObjectOrNull
(Context cx, Object obj, Scriptable scope) 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) 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.WrapFactory.wrapNewObject
(Context cx, Scriptable scope, Object obj) Wrap an object newly created by a constructor call.RegExpProxy.wrapRegExp
(Context cx, Scriptable scope, Object compiled) static Scriptable
ScriptRuntime.wrapRegExp
(Context cx, Scriptable scope, Object compiled) Methods in org.mozilla.javascript that return types with arguments of type ScriptableMethods in org.mozilla.javascript with parameters of type ScriptableModifier and TypeMethodDescriptionRegExpProxy.action
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType) void
FunctionObject.addAsConstructor
(Scriptable scope, Scriptable prototype) Define this function as a JavaScript constructor.final void
IdFunctionObject.addAsProperty
(Scriptable target) protected void
IdScriptableObject.addIdFunctionProperty
(Scriptable obj, Object tag, int id, String name, int arity) private static Object
NativePromise.all
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static Object
ScriptRuntime.applyOrCall
(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Function.prototype.apply and Function.prototype.callAccessorSlot.FunctionGetter.asGetterFunction
(String name, Scriptable scope) AccessorSlot.Getter.asGetterFunction
(String name, Scriptable scope) AccessorSlot.MemberBoxGetter.asGetterFunction
(String name, Scriptable scope) (package private) Function
MemberBox.asGetterFunction
(String name, Scriptable scope) Function returned by calls to __lookupGetter__AccessorSlot.FunctionSetter.asSetterFunction
(String name, Scriptable scope) AccessorSlot.MemberBoxSetter.asSetterFunction
(String name, Scriptable scope) AccessorSlot.Setter.asSetterFunction
(String name, Scriptable scope) (package private) Function
MemberBox.asSetterFunction
(String name, Scriptable scope) Function returned by calls to __lookupSetter__static Scriptable
ScriptRuntime.bind
(Context cx, Scriptable scope, String id) Returns the object in the scope chain that has a given property.(package private) static <T extends Scriptable>
BaseFunctionScriptableObject.buildClassCtor
(Scriptable scope, Class<T> clazz, boolean sealed, boolean mapInheritance) protected static ScriptableObject
ScriptableObject.buildDataDescriptor
(Scriptable scope, Object value, int attributes) void
TopLevel.cacheBuiltins
(Scriptable scope, boolean sealed) Cache the built-in ECMAScript objects to protect them against modifications by the script.Arguments.ThrowTypeError.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) ArrowFunction.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) BaseFunction.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Should be overridden.BoundFunction.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] extraArgs) Callable.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Perform the call.static Object
Context.call
(ContextFactory factory, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) CallCallable.call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
using the Context instance associated with the current thread.Delegator.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Function.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Call the function.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.IdFunctionObject.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) InterpretedFunction.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Calls the function.LambdaConstructor.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) LambdaFunction.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeContinuation.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJavaClass.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJavaConstructor.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJavaMethod.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJavaTopPackage.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeScript.call
(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
Deprecated.The method is only present for compatibility.ScriptRuntime.NoSuchMethodShim.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Perform the call.abstract Object
SecureCaller.call
(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Synchronizer.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
NativeArray.callConstructorOrCreateArray
(Context cx, Scriptable scope, Scriptable arg, long length, boolean lengthAlways) Context.callFunctionWithContinuations
(Callable function, Scriptable scope, Object[] args) Call function that may pause execution by capturing a continuation.static Object
ScriptRuntime.callIterator
(Object obj, Context cx, Scriptable scope) Given an object, get the "Symbol.iterator" element, throw a TypeError if it is not present, then call the result, (throwing a TypeError if the result is not a function), and return that result, whatever it is.static Object
JavaAdapter.callMethod
(ContextFactory factory, Scriptable thisObj, Function f, Object[] args, long argsToWrap) Utility method which dynamically binds a Context to the current thread, if none already exists.static Object
ScriptableObject.callMethod
(Context cx, Scriptable obj, String methodName, Object[] args) Call a method of an object.static Object
ScriptableObject.callMethod
(Scriptable obj, String methodName, Object[] args) Call a method of an object.static Ref
ScriptRuntime.callRef
(Callable function, Scriptable thisObj, Object[] args, Context cx) Perform function call in reference context.private Object
ES6Generator.callReturnOptionally
(Context cx, Scriptable scope, Object value) (package private) static Object
SecureCaller.callSecurely
(CodeSource codeSource, Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Call the specified callable using a protection domain belonging to the specified code source.static Object
ScriptRuntime.callSpecial
(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String filename, int lineNumber) private void
NativePromise.callThenable
(Context cx, Scriptable scope, Object resolution, Callable thenFunc) PolicySecurityController.callWithDomain
(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) SecurityController.callWithDomain
(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) CallCallable.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.(package private) static Scriptable
ScriptRuntime.checkDynamicScope
(Scriptable possibleDynamicScope, Scriptable staticTopScope) ReturnpossibleDynamicScope
ifstaticTopScope
is present on its prototype chain and returnstaticTopScope
otherwise.final Function
Context.compileFunction
(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) Compile a JavaScript function.(package private) final Function
Context.compileFunction
(Scriptable scope, String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) protected Object
Context.compileImpl
(Scriptable scope, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction, Evaluator compiler, ErrorReporter compilationErrorReporter) final Script
Context.compileReader
(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) Deprecated.private static long
NativeArray.concatSpreadArg
(Context cx, Scriptable result, Scriptable arg, long offset) ArrowFunction.construct
(Context cx, Scriptable scope, Object[] args) BaseFunction.construct
(Context cx, Scriptable scope, Object[] args) BoundFunction.construct
(Context cx, Scriptable scope, Object[] extraArgs) Constructable.construct
(Context cx, Scriptable scope, Object[] args) Call the function as a constructor.Delegator.construct
(Context cx, Scriptable scope, Object[] args) Note that if thedelegee
isnull
, this method creates a new instance of the Delegator itself rathert than forwarding the call to thedelegee
.Function.construct
(Context cx, Scriptable scope, Object[] args) Call the function as a constructor.LambdaConstructor.construct
(Context cx, Scriptable scope, Object[] args) LambdaFunction.construct
(Context cx, Scriptable scope, Object[] args) NativeContinuation.construct
(Context cx, Scriptable scope, Object[] args) NativeJavaClass.construct
(Context cx, Scriptable scope, Object[] args) NativeJavaTopPackage.construct
(Context cx, Scriptable scope, Object[] args) NativeScript.construct
(Context cx, Scriptable scope, Object[] args) static NativeSymbol
NativeSymbol.construct
(Context cx, Scriptable scope, 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, String error, String message, Scriptable scope) Deprecated.UseScriptRuntime.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.private static Scriptable
NativePromise.constructor
(Context cx, Scriptable scope, Object[] args) (package private) static Scriptable
NativeJavaClass.constructSpecific
(Context cx, Scriptable scope, Object[] args, MemberBox ctor) static Object
FunctionObject.convertArg
(Context cx, Scriptable scope, Object arg, int typeTag) static Object
FunctionObject.convertArg
(Context cx, Scriptable scope, Object arg, Class<?> desired) Deprecated.UseFunctionObject.getTypeTag(Class)
andFunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion.static <T> T
LambdaConstructor.convertThisObject
(Scriptable thisObj, Class<T> targetClass) A convenience method to convert JavaScript's "this" object into a target class and throw a TypeError if it does not match.static Scriptable
JavaAdapter.createAdapterWrapper
(Scriptable obj, Object adapter) static Scriptable
ScriptRuntime.createArrowFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args, boolean isStrict) (package private) static InterpretedFunction
InterpretedFunction.createFunction
(Context cx, Scriptable scope, InterpretedFunction parent, int index) Create function embedded in script or another function.(package private) static InterpretedFunction
InterpretedFunction.createFunction
(Context cx, Scriptable scope, InterpreterData idata, Object staticSecurityDomain) Create function compiled from Function(...) constructor.static Scriptable
ScriptRuntime.createFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args) Deprecated.static Scriptable
ScriptRuntime.createFunctionActivation
(NativeFunction funObj, Scriptable scope, Object[] args, boolean isStrict) Evaluator.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) Create a function object.Interpreter.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) private static JavaMembers
JavaMembers.createJavaMembers
(Scriptable associatedScope, Class<?> cl, boolean includeProtected) BaseFunction.createObject
(Context cx, Scriptable scope) Creates new script object.FunctionObject.createObject
(Context cx, Scriptable scope) Return newScriptable
instance using the default constructor for the class of the underlying Java method.IdFunctionObject.createObject
(Context cx, Scriptable scope) (package private) static Ref
SpecialRef.createSpecial
(Context cx, Scriptable scope, Object object, String name) private static void
NativeSymbol.createStandardSymbol
(Context cx, Scriptable scope, ScriptableObject ctor, String name, SymbolKey key) (package private) static String
ScriptRuntime.defaultObjectToSource
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) static String
ScriptRuntime.defaultObjectToString
(Scriptable obj) static <T extends Scriptable>
voidScriptableObject.defineClass
(Scriptable scope, Class<T> clazz) Defines JavaScript objects from a Java class that implements Scriptable.static <T extends Scriptable>
voidScriptableObject.defineClass
(Scriptable scope, Class<T> clazz, boolean sealed) Defines JavaScript objects from a Java class, optionally allowing sealing.static <T extends Scriptable>
StringScriptableObject.defineClass
(Scriptable scope, Class<T> clazz, boolean sealed, boolean mapInheritance) Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance.void
ConstProperties.defineConst
(String name, Scriptable start) Reserves a definition spot for a const.void
ScriptableObject.defineConst
(String name, Scriptable start) static void
ScriptableObject.defineConstProperty
(Scriptable destination, String propertyName) Utility method to add properties to arbitrary Scriptable object.void
LambdaConstructor.defineConstructorMethod
(Scriptable scope, String name, int length, 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, 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, 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.private static void
NativeArray.defineElem
(Context cx, Scriptable target, long index, Object value) static void
ScriptableObject.defineProperty
(Scriptable destination, String propertyName, Object value, int attributes) Utility method to add properties to arbitrary Scriptable object.void
LambdaConstructor.definePrototypeMethod
(Scriptable scope, String name, int length, Callable target) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.void
LambdaConstructor.definePrototypeMethod
(Scriptable scope, String name, int length, Callable target, int attributes, int propertyAttributes) Define a function property on the prototype of the constructor using a LambdaFunction under the covers.static Object
ScriptRuntime.delete
(Object obj, Object id, Context cx, Scriptable scope, boolean isName) The delete operatorprivate static void
NativeArray.deleteElem
(Scriptable target, long index) static boolean
ScriptRuntime.deleteObjectElem
(Scriptable target, Object elem, Context cx) static boolean
ScriptableObject.deleteProperty
(Scriptable obj, int index) Removes the property from an object or its prototype chain.static boolean
ScriptableObject.deleteProperty
(Scriptable obj, String name) Removes the property from an object or its prototype chain.private static Object
JavaAdapter.doCall
(Context cx, Scriptable scope, Scriptable thisObj, Function f, Object[] args, long argsToWrap) private static Object
NativePromise.doCatch
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static long
NativeArray.doConcat
(Context cx, Scriptable scope, Scriptable result, Object arg, long offset) private static Object
NativePromise.doFinally
(Context cx, Scriptable scope, Scriptable thisObj, LambdaConstructor defaultConstructor, Object[] args) private static Object
ScriptRuntime.doScriptableIncrDecr
(Scriptable target, String id, Scriptable protoChainStart, Object value, int incrDecrMask) 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) Deprecated.static Object
ScriptRuntime.doTopCall
(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args, boolean isTopLevelStrict) static Object
ScriptRuntime.elemIncrDecr
(Object obj, Object index, Context cx, Scriptable scope, int incrDecrMask) static void
ScriptRuntime.enterActivationFunction
(Context cx, Scriptable scope) static Scriptable
ScriptRuntime.enterDotQuery
(Object value, Scriptable scope) static Scriptable
ScriptRuntime.enterWith
(Object obj, Context cx, Scriptable scope) static Object
ScriptRuntime.enumInit
(Object value, Context cx, Scriptable scope, int enumType) private boolean
EqualObjectGraphs.equalScriptables
(Scriptable s1, Scriptable s2) static Object
ScriptRuntime.evalSpecial
(Context cx, Scriptable scope, Object thisArg, Object[] args, String filename, int lineNumber) The eval function property of the global object.final Object
Context.evaluateReader
(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) Evaluate a reader as JavaScript source.final Object
Context.evaluateString
(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) Evaluate a JavaScript source string.InterpretedFunction.exec
(Context cx, Scriptable scope) Script.exec
(Context cx, Scriptable scope) Execute the script.BaseFunction.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) ES6Generator.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) ES6Iterator.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) 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 returnedIdScriptableObject.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.ImporterTopLevel.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) JavaAdapter.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeArray.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeBigInt.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeBoolean.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeCall.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeCallSite.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeContinuation.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeDate.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeError.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeGenerator.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeGlobal.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeIterator.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJavaTopPackage.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeJSON.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeMap.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeMath.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeNumber.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeObject.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeScript.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeSet.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeString.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeSymbol.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeWeakMap.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeWeakSet.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeWith.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Context.executeScriptWithContinuations
(Script script, Scriptable scope) Execute script that may pause execution by capturing a continuation.SecurityController.execWithDomain
(Context cx, Scriptable scope, Script script, Object securityDomain) Deprecated.The application should not override this method and instead overrideSecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.final IdFunctionObject
IdScriptableObject.exportAsJSClass
(int maxPrototypeId, Scriptable scope, boolean sealed) (package private) void
NativePromise.PromiseAllResolver.finalResolution
(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) (package private) NativeJavaPackage
NativeJavaPackage.forcePackage
(String name, Scriptable scope) private Object
NativePromise.fulfillPromise
(Context cx, Scriptable scope, Object value) Arguments.get
(int index, Scriptable start) static ClassCache
ClassCache.get
(Scriptable scope) Search for ClassCache object in the given scope.Delegator.get
(int index, Scriptable start) Delegator.get
(String name, Scriptable start) Delegator.get
(Symbol key, Scriptable start) IdScriptableObject.get
(String name, Scriptable start) IdScriptableObject.get
(Symbol key, Scriptable start) ImporterTopLevel.get
(String name, Scriptable start) (package private) Object
JavaMembers.get
(Scriptable scope, String name, Object javaObject, boolean isStatic) NativeArray.get
(int index, Scriptable start) NativeJavaArray.get
(int index, Scriptable start) NativeJavaArray.get
(String id, Scriptable start) NativeJavaArray.get
(Symbol key, Scriptable start) NativeJavaClass.get
(String name, Scriptable start) NativeJavaList.get
(int index, Scriptable start) NativeJavaList.get
(String name, Scriptable start) NativeJavaList.get
(Symbol key, Scriptable start) NativeJavaMap.get
(int index, Scriptable start) NativeJavaMap.get
(String name, Scriptable start) NativeJavaMap.get
(Symbol key, Scriptable start) NativeJavaObject.get
(int index, Scriptable start) NativeJavaObject.get
(String name, Scriptable start) NativeJavaObject.get
(Symbol key, Scriptable start) NativeJavaPackage.get
(int index, Scriptable start) NativeJavaPackage.get
(String id, Scriptable start) NativeString.get
(int index, Scriptable start) NativeWith.get
(int index, Scriptable start) NativeWith.get
(String id, Scriptable start) NativeWith.get
(Symbol key, Scriptable start) Scriptable.get
(int index, Scriptable start) Get a property from the object selected by an integral index.Scriptable.get
(String name, Scriptable start) Get a named property from the object.ScriptableObject.get
(int index, Scriptable start) Returns the value of the indexed property or NOT_FOUND.ScriptableObject.get
(String name, Scriptable start) Returns the value of the named property or NOT_FOUND.ScriptableObject.get
(Symbol key, Scriptable start) Another version of Get that supports Symbol keyed properties.SymbolScriptable.get
(Symbol key, Scriptable start) Return the value of the property with the specified key, or NOT_FOUND.private static Class
<?> JavaAdapter.getAdapterClass
(Scriptable scope, Class<?> superClass, Class<?>[] interfaces, Scriptable obj) static Object[]
ScriptRuntime.getArrayElements
(Scriptable object) static Scriptable
ScriptableObject.getArrayPrototype
(Scriptable scope) final int
ScriptableObject.getAttributes
(int index, Scriptable start) Deprecated.final int
ScriptableObject.getAttributes
(String name, Scriptable start) Deprecated.private static Scriptable
ScriptableObject.getBase
(Scriptable obj, int index) private static Scriptable
ScriptableObject.getBase
(Scriptable obj, String name) private static Scriptable
ScriptableObject.getBase
(Scriptable obj, Symbol key) static Function
TopLevel.getBuiltinCtor
(Context cx, Scriptable scope, TopLevel.Builtins type) Static helper method to get a built-in object constructor with the giventype
from the givenscope
.static Scriptable
TopLevel.getBuiltinPrototype
(Scriptable scope, TopLevel.Builtins type) Static helper method to get a built-in object prototype with the giventype
from the givenscope
.(package private) static Callable
ScriptRuntime.getCallable
(Scriptable thisObj) static Scriptable
ScriptableObject.getClassPrototype
(Scriptable scope, String className) Get the prototype for the named class.private static Scriptable
NativeObject.getCompatibleObject
(Context cx, Scriptable scope, Object arg) static Object
ScriptableObject.getDefaultValue
(Scriptable object, Class<?> typeHint) private static Object
NativeArray.getElem
(Context cx, Scriptable target, long index) final Object[]
Context.getElements
(Scriptable object) Get the elements of a JavaScript array.static Callable
ScriptRuntime.getElemFunctionAndThis
(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 as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.private static Object
NativePromise.getErrorObject
(Context cx, Scriptable scope, RhinoException re) (package private) static Function
ScriptRuntime.getExistingCtor
(Context cx, Scriptable scope, String constructorName) private Object
JavaMembers.getExplicitFunction
(Scriptable scope, String name, Object javaObject, boolean isStatic) (package private) Map
<String, FieldAndMethods> JavaMembers.getFieldAndMethodsObjects
(Scriptable scope, Object javaObject, boolean isStatic) private static Object
NativeCallSite.getFileName
(Scriptable obj) static Function
JavaAdapter.getFunction
(Scriptable obj, String functionName) private static Object
NativeCallSite.getFunctionName
(Scriptable obj) static Scriptable
ScriptableObject.getFunctionPrototype
(Scriptable scope) Get the Function.prototype property.static Scriptable
ScriptableObject.getGeneratorFunctionPrototype
(Scriptable scope) (package private) Function
AccessorSlot.getGetterFunction
(String name, Scriptable scope) (package private) Function
Slot.getGetterFunction
(String name, Scriptable scope) Same for the "getter."ScriptableObject.getGetterOrSetter
(String name, int index, Scriptable scope, boolean isSetter) Get the getter or setter for a given property.private static Object[]
EqualObjectGraphs.getIds
(Scriptable s) (package private) static long
NativeArray.getLengthProperty
(Context cx, Scriptable obj) static ScriptableObject
ScriptRuntime.getLibraryScopeOrNull
(Scriptable scope) private static Object
NativeCallSite.getLineNumber
(Scriptable obj) static Callable
ScriptRuntime.getNameFunctionAndThis
(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.(package private) static Function
TopLevel.getNativeErrorCtor
(Context cx, Scriptable scope, TopLevel.NativeErrors type) Static helper method to get a native error constructor with the giventype
from the givenscope
.private static Object[]
ImporterTopLevel.getNativeJavaPackages
(Scriptable scope) static Object
ScriptRuntime.getObjectElem
(Object obj, Object elem, Context cx, Scriptable scope) Call obj.[[Get]](id)static Object
ScriptRuntime.getObjectElem
(Scriptable obj, Object elem, Context cx) private static ObjToIntMap
JavaAdapter.getObjectFunctionNames
(Scriptable obj) static Object
ScriptRuntime.getObjectIndex
(Object obj, double dblIndex, Context cx, Scriptable scope) A cheaper and less general version of the above for well-known argument types.static Object
ScriptRuntime.getObjectIndex
(Scriptable obj, int index, Context cx) static Object
ScriptRuntime.getObjectProp
(Object obj, String property, Context cx, Scriptable scope) Version of getObjectElem when elem is a valid JS identifier name.static Object
ScriptRuntime.getObjectProp
(Scriptable obj, String property, Context cx) static Object
ScriptRuntime.getObjectPropNoWarn
(Object obj, String property, Context cx, Scriptable scope) static Scriptable
ScriptableObject.getObjectPrototype
(Scriptable scope) Get the Object.prototype property.private Object
ImporterTopLevel.getPackageProperty
(String name, Scriptable start) (package private) Object
NativeJavaPackage.getPkgProperty
(String name, Scriptable start, boolean createPkg) static Object
ScriptableObject.getProperty
(Scriptable obj, int index) Gets an indexed property from an object or any object in its prototype chain.static Object
ScriptableObject.getProperty
(Scriptable obj, String name) Gets a named property from an object or any object in its prototype chain.static Object
ScriptableObject.getProperty
(Scriptable obj, Symbol key) This is a version of getProperty that works with Symbols.(package private) ScriptableObject
AccessorSlot.getPropertyDescriptor
(Context cx, Scriptable scope) (package private) ScriptableObject
LambdaSlot.getPropertyDescriptor
(Context cx, Scriptable scope) (package private) ScriptableObject
Slot.getPropertyDescriptor
(Context cx, Scriptable scope) static Object[]
ScriptableObject.getPropertyIds
(Scriptable obj) Returns an array of all ids from an object and its prototypes.static Callable
ScriptRuntime.getPropFunctionAndThis
(Object obj, String property, Context cx, Scriptable scope) 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.private static Callable
ScriptRuntime.getPropFunctionAndThisHelper
(Object obj, String property, Context cx, Scriptable thisObj) private static Object
NativeArray.getRawElem
(Scriptable target, long index) private static NativeSymbol
NativeSymbol.getSelf
(Context cx, Scriptable scope, Object thisObj) (package private) Function
AccessorSlot.getSetterFunction
(String name, Scriptable scope) (package private) Function
Slot.getSetterFunction
(String name, Scriptable scope) Return a JavaScript function that represents the "setter".private static Object[]
EqualObjectGraphs.getSortedIds
(Scriptable s) static Object
NativeIterator.getStopIterationObject
(Scriptable scope) Get the value of the "StopIteration" object.static Scriptable
ScriptRuntime.getTemplateLiteralCallSite
(Context cx, Scriptable scope, Object[] strings, int index) static Object
ScriptRuntime.getTopLevelProp
(Scriptable scope, String id) static Scriptable
ScriptableObject.getTopLevelScope
(Scriptable obj) Get the global scope.static Object
ScriptableObject.getTopScopeValue
(Scriptable scope, Object key) Get arbitrary application-specific value associated with the top scope of the given scope.static <T> T
ScriptableObject.getTypedProperty
(Scriptable s, int index, Class<T> type) Gets an indexed property from an object or any object in its prototype chain and coerces it to the requested Java type.static <T> T
ScriptableObject.getTypedProperty
(Scriptable s, String name, Class<T> type) Gets a named property from an object or any object in its prototype chain and coerces it to the requested Java type.AccessorSlot.FunctionGetter.getValue
(Scriptable start) AccessorSlot.Getter.getValue
(Scriptable start) AccessorSlot.getValue
(Scriptable start) AccessorSlot.MemberBoxGetter.getValue
(Scriptable start) private static Object
EqualObjectGraphs.getValue
(Scriptable s, Object id) LambdaSlot.getValue
(Scriptable start) LazyLoadSlot.getValue
(Scriptable start) Slot.getValue
(Scriptable start) boolean
Arguments.has
(int index, Scriptable start) boolean
Delegator.has
(int index, Scriptable start) boolean
Delegator.has
(String name, Scriptable start) boolean
Delegator.has
(Symbol key, Scriptable start) boolean
IdScriptableObject.has
(String name, Scriptable start) boolean
IdScriptableObject.has
(Symbol key, Scriptable start) boolean
ImporterTopLevel.has
(String name, Scriptable start) boolean
NativeArray.has
(int index, Scriptable start) boolean
NativeJavaArray.has
(int index, Scriptable start) boolean
NativeJavaArray.has
(String id, Scriptable start) boolean
NativeJavaArray.has
(Symbol key, Scriptable start) boolean
NativeJavaClass.has
(String name, Scriptable start) boolean
NativeJavaList.has
(int index, Scriptable start) boolean
NativeJavaList.has
(String name, Scriptable start) boolean
NativeJavaList.has
(Symbol key, Scriptable start) boolean
NativeJavaMap.has
(int index, Scriptable start) boolean
NativeJavaMap.has
(String name, Scriptable start) boolean
NativeJavaMap.has
(Symbol key, Scriptable start) boolean
NativeJavaObject.has
(int index, Scriptable start) boolean
NativeJavaObject.has
(String name, Scriptable start) boolean
NativeJavaObject.has
(Symbol key, Scriptable start) boolean
NativeJavaPackage.has
(int index, Scriptable start) boolean
NativeJavaPackage.has
(String id, Scriptable start) boolean
NativeString.has
(int index, Scriptable start) boolean
NativeWith.has
(int index, Scriptable start) boolean
NativeWith.has
(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
(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
(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, Object elem, Context cx) static boolean
ScriptableObject.hasProperty
(Scriptable obj, int index) Returns whether an indexed property is defined in an object or any object in its prototype chain.static boolean
ScriptableObject.hasProperty
(Scriptable obj, String name) Returns whether a named property is defined in an object or any object in its prototype chain.static boolean
ScriptableObject.hasProperty
(Scriptable obj, Symbol key) A version of hasProperty for properties with Symbol keys.private static void
ImporterTopLevel.importClass
(Scriptable scope, NativeJavaClass cl) void
ImporterTopLevel.importPackage
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Deprecated.Kept only for compatibility.(package private) static void
BaseFunction.init
(Scriptable scope, boolean sealed) static void
ImporterTopLevel.init
(Context cx, Scriptable scope, boolean sealed) static void
JavaAdapter.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeArray.init
(Scriptable scope, boolean sealed) (package private) static void
NativeBigInt.init
(Scriptable scope, boolean sealed) (package private) static void
NativeBoolean.init
(Scriptable scope, boolean sealed) (package private) static void
NativeCall.init
(Scriptable scope, boolean sealed) (package private) static void
NativeCallSite.init
(Scriptable scope, boolean sealed) static void
NativeContinuation.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeDate.init
(Scriptable scope, boolean sealed) (package private) static void
NativeError.init
(Scriptable scope, boolean sealed) static void
NativeGlobal.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeJavaTopPackage.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeJSON.init
(Scriptable scope, boolean sealed) (package private) static void
NativeMap.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeMath.init
(Scriptable scope, boolean sealed) (package private) static void
NativeNumber.init
(Scriptable scope, boolean sealed) (package private) static void
NativeObject.init
(Scriptable scope, boolean sealed) static void
NativePromise.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeScript.init
(Scriptable scope, boolean sealed) (package private) static void
NativeSet.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeString.init
(Scriptable scope, boolean sealed) static void
NativeSymbol.init
(Context cx, Scriptable scope, boolean sealed) (package private) static void
NativeWeakMap.init
(Scriptable scope, boolean sealed) (package private) static void
NativeWeakSet.init
(Scriptable scope, boolean sealed) (package private) static void
NativeWith.init
(Scriptable scope, boolean sealed) (package private) void
FunctionObject.initAsConstructor
(Scriptable scope, Scriptable prototype) (package private) static Object
BaseFunction.initAsGeneratorFunction
(Scriptable scope, boolean sealed) private static Interpreter.CallFrame
Interpreter.initFrame
(Context cx, Scriptable callerScope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript, Interpreter.CallFrame parentFrame) private static Interpreter.CallFrame
Interpreter.initFrameForApplyOrCall
(Context cx, Interpreter.CallFrame frame, int indexReg, Object[] stack, double[] sDbl, int stackTop, int op, Scriptable calleeScope, IdFunctionObject ifun, InterpretedFunction iApplyCallable) private static Interpreter.CallFrame
Interpreter.initFrameForNoSuchMethod
(Context cx, Interpreter.CallFrame frame, int indexReg, Object[] stack, double[] sDbl, int stackTop, int op, Scriptable funThisObj, Scriptable calleeScope, ScriptRuntime.NoSuchMethodShim noSuchMethodShim, InterpretedFunction ifun) Call __noSuchMethod__.void
IdFunctionObject.initFunction
(String name, Scriptable scope) private static void
Interpreter.initFunction
(Context cx, Scriptable scope, InterpretedFunction parent, int index) static void
ScriptRuntime.initFunction
(Context cx, Scriptable scope, NativeFunction function, int type, boolean fromEvalCode) (package private) void
Interpreter.CallFrame.initializeArgs
(Context cx, Scriptable callerScope, Object[] args, double[] argsDbl, int argShift, int argCount) static void
ScriptRuntime.initScript
(NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, boolean evalScript) final void
NativeFunction.initScriptFunction
(Context cx, Scriptable scope) final void
NativeFunction.initScriptFunction
(Context cx, Scriptable scope, boolean es6GeneratorFunction) (package private) static Object
Interpreter.interpret
(InterpretedFunction ifun, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) InterfaceAdapter.invoke
(ContextFactory cf, Object target, Scriptable topScope, Object thisObject, Method method, Object[] args) (package private) void
NativePromise.Reaction.invoke
(Context cx, Scriptable scope, Object arg) (package private) Object
InterfaceAdapter.invokeImpl
(Context cx, Object target, Scriptable topScope, Object thisObject, Method method, Object[] args) private static boolean
ScriptRuntime.isArrayLike
(Scriptable obj) private static boolean
NativeArray.isConcatSpreadable
(Context cx, Scriptable scope, Object val) 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
NativeJavaMap.NativeJavaMapIterator.isDone
(Context cx, Scriptable scope) protected boolean
NativeJavaObject.JavaIterableIterator.isDone
(Context cx, Scriptable scope) protected boolean
NativeStringIterator.isDone
(Context cx, Scriptable scope) boolean
RegExpProxy.isRegExp
(Scriptable obj) private static Object
NativeArray.iterativeMethod
(Context cx, IdFunctionObject idFunctionObject, Scriptable scope, Scriptable thisObj, Object[] args) Implements the methods "every", "filter", "forEach", "map", and "some".private static String
NativeJSON.ja
(Scriptable value, NativeJSON.StringifyState state) static Object
Context.javaToJS
(Object value, Scriptable scope) Convenient method to convert java value to its closest representation in JavaScript.static Object
Context.javaToJS
(Object value, Scriptable scope, Context cx) Convenient method to convert java value to its closest representation in JavaScript.private static String
NativeJSON.jo
(Scriptable value, NativeJSON.StringifyState state) private static void
NativeError.js_captureStackTrace
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
NativeArray.js_concat
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
ImporterTopLevel.js_construct
(Scriptable scope, Object[] args) private static Object
NativeArray.js_copyWithin
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) static Object
JavaAdapter.js_createAdapter
(Context cx, Scriptable scope, Object[] args) private static Object
NativeGlobal.js_eval
(Context cx, Scriptable scope, Object[] args) This is an indirect call to eval, and thus uses the global environment.private static Object
NativeArray.js_fill
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
NativeSymbol.js_for
(Context cx, Scriptable scope, Object[] args) private Object
NativeMap.js_forEach
(Context cx, Scriptable scope, Object arg1, Object arg2) private Object
NativeSet.js_forEach
(Context cx, Scriptable scope, Object arg1, Object arg2) private static Object
NativeArray.js_from
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Scriptable
NativeJavaTopPackage.js_getClass
(Context cx, Scriptable scope, Object[] args) private static Object
ImporterTopLevel.js_importClass
(Scriptable scope, Object[] args) private static Boolean
NativeArray.js_includes
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
NativeArray.js_indexOf
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
NativeMap.js_iterator
(Scriptable scope, NativeCollectionIterator.Type type) private Object
NativeSet.js_iterator
(Scriptable scope, NativeCollectionIterator.Type type) private static String
NativeArray.js_join
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) See ECMA 15.4.4.3private Object
NativeSymbol.js_keyFor
(Context cx, Scriptable scope, Object[] args) private static Object
NativeArray.js_lastIndexOf
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
NativeArray.js_of
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static String
NativeString.js_pad
(Context cx, Scriptable thisObj, IdFunctionObject f, Object[] args, boolean atStart) private static Object
NativeArray.js_pop
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
NativeArray.js_push
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static CharSequence
NativeString.js_raw
(Context cx, Scriptable scope, Object[] args) String.raw (template, ...substitutions)private static String
NativeString.js_repeat
(Context cx, Scriptable thisObj, IdFunctionObject f, Object[] args) private static Scriptable
NativeArray.js_reverse
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) See ECMA 15.4.4.4private static Object
NativeArray.js_shift
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
NativeArray.js_slice
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
NativeArray.js_sort
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) See ECMA 15.4.4.5private static Object
NativeArray.js_splice
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) RegExpProxy.js_split
(Context _cx, Scriptable _scope, String thisString, Object[] _args) private static String
NativeError.js_toSource
(Context cx, Scriptable scope, Scriptable thisObj) private static Object
NativeCallSite.js_toString
(Scriptable obj) private static Object
NativeError.js_toString
(Scriptable thisObj) private static Object
NativeArray.js_unshift
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
BaseFunction.jsConstructor
(Context cx, Scriptable scope, Object[] args) private static Object
NativeArray.jsConstructor
(Context cx, Scriptable scope, Object[] args) See ECMA 15.4.1,2private static Object
NativeIterator.jsConstructor
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static boolean
ScriptRuntime.jsDelegatesTo
(Scriptable lhs, Scriptable rhs) Delegates tostatic Scriptable
ScriptRuntime.leaveDotQuery
(Scriptable scope) static Scriptable
ScriptRuntime.leaveWith
(Scriptable scope) (package private) static void
NativeMap.loadFromIterable
(Context cx, Scriptable scope, ScriptableObject map, Object arg1) If an "iterable" object was passed to the constructor, there are many many things to do...(package private) static void
NativeSet.loadFromIterable
(Context cx, Scriptable scope, ScriptableObject set, Object arg1) If an "iterable" object was passed to the constructor, there are many many things to do.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.(package private) static JavaMembers
JavaMembers.lookupClass
(Scriptable scope, Class<?> dynamicType, Class<?> staticType, boolean includeProtected) (package private) static NativeCallSite
NativeCallSite.make
(Scriptable scope, Scriptable ctorObj) (package private) static NativeError
NativeError.make
(Context cx, Scriptable scope, IdFunctionObject ctorObj, Object[] args) private static Callable
NativePromise.makeCatchFinally
(Scriptable scope, Object constructor, Callable onFinally) (package private) static Scriptable
ES6Iterator.makeIteratorResult
(Context cx, Scriptable scope, Boolean done) (package private) static Scriptable
ES6Iterator.makeIteratorResult
(Context cx, Scriptable scope, Boolean done, Object value) private static Callable
NativePromise.makeThenFinally
(Scriptable scope, Object constructor, Callable onFinally) final void
IdFunctionObject.markAsConstructor
(Scriptable prototypeProperty) static Object
ScriptRuntime.name
(Context cx, Scriptable scope, String name) Looks up a name in the scope chain and returns its value.static Object
ScriptRuntime.nameIncrDecr
(Scriptable scopeChain, String id, int incrDecrMask) Deprecated.static Object
ScriptRuntime.nameIncrDecr
(Scriptable scopeChain, String id, Context cx, int incrDecrMask) private static Object
ScriptRuntime.nameOrFunction
(Context cx, Scriptable scope, Scriptable parentScope, String name, boolean asFunctionCall) static Ref
ScriptRuntime.nameRef
(Object namespace, Object name, Context cx, Scriptable scope, int memberTypeFlags) static Ref
ScriptRuntime.nameRef
(Object name, Context cx, Scriptable scope, int memberTypeFlags) Context.newArray
(Scriptable scope, int length) Create an array with a specified initial length.Context.newArray
(Scriptable scope, Object[] elements) Create an array with a set of initial elements.static Scriptable
ScriptRuntime.newArrayLiteral
(Object[] objects, int[] skipIndices, Context cx, Scriptable scope) static Scriptable
ScriptRuntime.newBuiltinObject
(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) static Scriptable
ScriptRuntime.newCatchScope
(Throwable t, Scriptable lastCatchScope, String exceptionName, Context cx, Scriptable scope) private IdFunctionObject
IdScriptableObject.newIdFunction
(Object tag, int id, String name, int arity, Scriptable scope) protected abstract Object
VMBridge.newInterfaceProxy
(Object proxyHelper, ContextFactory cf, InterfaceAdapter adapter, Object target, Scriptable topScope) Create proxy object forInterfaceAdapter
.(package private) static Scriptable
ScriptRuntime.newNativeError
(Context cx, Scriptable scope, TopLevel.NativeErrors type, Object[] args) Context.newObject
(Scriptable scope) Create a new JavaScript object.Context.newObject
(Scriptable scope, String constructorName) Create a new JavaScript object by executing the named constructor.Context.newObject
(Scriptable scope, String constructorName, Object[] args) Creates a new JavaScript object by executing the named constructor.static Scriptable
ScriptRuntime.newObject
(Object fun, Context cx, Scriptable scope, Object[] args) Operator new.static Scriptable
ScriptRuntime.newObject
(Context cx, Scriptable scope, String constructorName, Object[] args) static Scriptable
ScriptRuntime.newObjectLiteral
(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, Scriptable scope) static Scriptable
ScriptRuntime.newObjectLiteral
(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope) Deprecated.static Object
ScriptRuntime.newSpecial
(Context cx, Object fun, Object[] args, Scriptable scope, int callType) (package private) static Object
NativeWith.newWithSpecial
(Context cx, Scriptable scope, Object[] args) protected Object
ES6Iterator.next
(Context cx, Scriptable scope) private Object
NativeIterator.next
(Context cx, Scriptable scope) protected abstract Object
ES6Iterator.nextValue
(Context cx, Scriptable scope) protected Object
NativeArrayIterator.nextValue
(Context cx, Scriptable scope) protected Object
NativeCollectionIterator.nextValue
(Context cx, Scriptable scope) protected Object
NativeJavaMap.NativeJavaMapIterator.nextValue
(Context cx, Scriptable scope) protected Object
NativeJavaObject.JavaIterableIterator.nextValue
(Context cx, Scriptable scope) protected Object
NativeStringIterator.nextValue
(Context cx, Scriptable scope) static RuntimeException
ScriptRuntime.notFoundError
(Scriptable object, String property) private static Object
NativeJSON.parse
(Context cx, Scriptable scope, String jtext) static Object
NativeJSON.parse
(Context cx, Scriptable scope, String jtext, Callable reviver) private static Object
NativePromise.performRace
(Context cx, Scriptable scope, IteratorLikeIterable.Itr iterator, Scriptable thisObj, NativePromise.Capability cap) static Object
ScriptRuntime.propIncrDecr
(Object obj, String id, Context cx, Scriptable scope, int incrDecrMask) void
Arguments.put
(int index, Scriptable start, Object value) void
Arguments.put
(String name, Scriptable start, Object value) void
Delegator.put
(int index, Scriptable start, Object value) void
Delegator.put
(String name, Scriptable start, Object value) void
Delegator.put
(Symbol symbol, Scriptable start, Object value) void
IdScriptableObject.put
(String name, Scriptable start, Object value) void
IdScriptableObject.put
(Symbol key, Scriptable start, Object value) (package private) void
JavaMembers.put
(Scriptable scope, String name, Object javaObject, Object value, boolean isStatic) void
NativeArray.put
(int index, Scriptable start, Object value) void
NativeArray.put
(String id, Scriptable start, Object value) void
NativeJavaArray.put
(int index, Scriptable start, Object value) void
NativeJavaArray.put
(String id, Scriptable start, Object value) void
NativeJavaClass.put
(String name, Scriptable start, Object value) void
NativeJavaList.put
(int index, Scriptable start, Object value) void
NativeJavaList.put
(String name, Scriptable start, Object value) void
NativeJavaMap.put
(int index, Scriptable start, Object value) void
NativeJavaMap.put
(String name, Scriptable start, Object value) void
NativeJavaObject.put
(int index, Scriptable start, Object value) void
NativeJavaObject.put
(String name, Scriptable start, Object value) void
NativeJavaObject.put
(Symbol symbol, Scriptable start, Object value) void
NativeJavaPackage.put
(int index, Scriptable start, Object value) void
NativeJavaPackage.put
(String id, Scriptable start, Object value) void
NativeString.put
(int index, Scriptable start, Object value) void
NativeSymbol.put
(int index, Scriptable start, Object value) void
NativeSymbol.put
(String name, Scriptable start, Object value) void
NativeSymbol.put
(Symbol key, Scriptable start, Object value) void
NativeWith.put
(int index, Scriptable start, Object value) void
NativeWith.put
(String id, Scriptable start, Object value) void
NativeWith.put
(Symbol symbol, Scriptable start, Object value) void
Scriptable.put
(int index, Scriptable start, Object value) Sets an indexed property in this object.void
Scriptable.put
(String name, Scriptable start, Object value) Sets a named property in this object.void
ScriptableObject.put
(int index, Scriptable start, Object value) Sets the value of the indexed property, creating it if need be.void
ScriptableObject.put
(String name, Scriptable start, Object value) Sets the value of the named property, creating it if need be.void
ScriptableObject.put
(Symbol key, Scriptable start, Object value) Implementation of put required by SymbolScriptable objects.void
SymbolScriptable.put
(Symbol key, Scriptable start, Object value) Add a new property to to the object.void
ConstProperties.putConst
(String name, Scriptable start, Object value) Sets a named const property in this object.void
ScriptableObject.putConst
(String name, Scriptable start, Object value) Sets the value of the named const property, creating it if need be.private boolean
ScriptableObject.putConstImpl
(String name, int index, Scriptable start, Object value, int constFlag) static void
ScriptableObject.putConstProperty
(Scriptable obj, String name, Object value) Puts a named property in an object or in an object in its prototype chain.private boolean
ScriptableObject.putImpl
(Object key, int index, Scriptable start, Object value) static void
ScriptableObject.putProperty
(Scriptable obj, int index, Object value) Puts an indexed property in an object or in an object in its prototype chain.static void
ScriptableObject.putProperty
(Scriptable obj, String name, Object value) Puts a named property in an object or in an object in its prototype chain.static void
ScriptableObject.putProperty
(Scriptable obj, Symbol key, Object value) This is a version of putProperty for Symbol keys.private static Object
NativePromise.race
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static Object
JavaAdapter.readAdapterObject
(Scriptable self, ObjectInputStream in) private static BaseFunction
BaseFunction.realFunction
(Scriptable thisObj, IdFunctionObject f) private ScriptableObject
ImporterTopLevel.realScope
(Scriptable scope, Scriptable thisObj, IdFunctionObject f) private static NativeMap
NativeMap.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeScript
NativeScript.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeSet
NativeSet.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeString
NativeString.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeWeakMap
NativeWeakMap.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeWeakSet
NativeWeakSet.realThis
(Scriptable thisObj, IdFunctionObject f) static void
ScriptableObject.redefineProperty
(Scriptable obj, String name, boolean isConst) If hasProperty(obj, name) would return true, then if the property that was found is compatible with the new property, this method just returns.private static Object
NativeArray.reduceMethod
(Context cx, int id, Scriptable scope, Scriptable thisObj, Object[] args) Implements the methods "reduce" and "reduceRight".RefCallable.refCall
(Context cx, Scriptable thisObj, Object[] args) Perform function call in reference context.static Object
ScriptRuntime.refIncrDecr
(Ref ref, Context cx, Scriptable scope, int incrDecrMask) private void
JavaMembers.reflect
(Scriptable scope, boolean includeProtected, boolean includePrivate) static Object
ScriptRuntime.refSet
(Ref ref, Object value, Context cx, Scriptable scope) private static Object
NativePromise.reject
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
NativePromise.ResolvingFunctions.reject
(Context cx, Scriptable scope, NativePromise promise, Object reason) private Object
NativePromise.rejectPromise
(Context cx, Scriptable scope, Object reason) (package private) Object
NativePromise.PromiseAllResolver.resolve
(Context topCx, Scriptable topScope) (package private) Object
NativePromise.PromiseElementResolver.resolve
(Context cx, Scriptable scope, Object result, NativePromise.PromiseAllResolver resolver) private static Object
NativePromise.resolve
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private Object
NativePromise.ResolvingFunctions.resolve
(Context cx, Scriptable scope, NativePromise promise, Object resolution) private static Object
NativePromise.resolveInternal
(Context cx, Scriptable scope, Object constructor, Object arg) static Object
Interpreter.restartContinuation
(NativeContinuation c, Context cx, Scriptable scope, Object[] args) private Object
NativeGenerator.resume
(Context cx, Scriptable scope, int operation, Object value) private Scriptable
ES6Generator.resumeAbruptLocal
(Context cx, Scriptable scope, int op, Object value) Context.resumeContinuation
(Object continuation, Scriptable scope, Object functionResult) Restarts execution of the JavaScript suspended at the call toContext.captureContinuation()
.private Scriptable
ES6Generator.resumeDelegee
(Context cx, Scriptable scope, Object value) private Scriptable
ES6Generator.resumeDelegeeReturn
(Context cx, Scriptable scope, Object value) private Scriptable
ES6Generator.resumeDelegeeThrow
(Context cx, Scriptable scope, Object value) InterpretedFunction.resumeGenerator
(Context cx, Scriptable scope, int operation, Object state, Object value) static Object
Interpreter.resumeGenerator
(Context cx, Scriptable scope, int operation, Object savedState, Object value) NativeFunction.resumeGenerator
(Context cx, Scriptable scope, int operation, Object state, Object value) Resume execution of a suspended generator.private Scriptable
ES6Generator.resumeLocal
(Context cx, Scriptable scope, Object value) (package private) final void
IdScriptableObject.PrototypeValues.set
(int id, Scriptable start, Object value) Ref.set
(Context cx, Scriptable scope, Object value) SpecialRef.set
(Context cx, Scriptable scope, Object value) void
ScriptableObject.setAttributes
(int index, Scriptable start, int attributes) Deprecated.final void
ScriptableObject.setAttributes
(String name, Scriptable start, int attributes) Deprecated.static void
ScriptRuntime.setBuiltinProtoAndParent
(ScriptableObject object, Scriptable scope, TopLevel.Builtins type) static Object
ScriptRuntime.setConst
(Scriptable bound, Object value, Context cx, String id) void
Delegator.setDelegee
(Scriptable obj) Set the delegee.private static void
NativeArray.setElem
(Context cx, Scriptable target, long index, Object value) static void
ScriptRuntime.setFunctionProtoAndParent
(BaseFunction fn, Scriptable scope) static void
ScriptRuntime.setFunctionProtoAndParent
(BaseFunction fn, Scriptable scope, boolean es6GeneratorFunction) private static Object
NativeArray.setLengthProperty
(Context cx, Scriptable target, long length) static Object
ScriptRuntime.setName
(Scriptable bound, Object value, Context cx, Scriptable scope, String id) static Object
ScriptRuntime.setObjectElem
(Object obj, Object elem, Object value, Context cx, Scriptable scope) Call obj.[[Put]](id, value)static Object
ScriptRuntime.setObjectElem
(Scriptable obj, Object elem, Object value, Context cx) static Object
ScriptRuntime.setObjectIndex
(Object obj, double dblIndex, Object value, Context cx, Scriptable scope) A cheaper and less general version of the above for well-known argument types.static Object
ScriptRuntime.setObjectIndex
(Scriptable obj, int index, Object value, Context cx) static Object
ScriptRuntime.setObjectProp
(Object obj, String property, Object value, Context cx, Scriptable scope) Version of setObjectElem when elem is a valid JS identifier name.static Object
ScriptRuntime.setObjectProp
(Scriptable obj, String property, Object value, Context cx) static void
ScriptRuntime.setObjectProtoAndParent
(ScriptableObject object, Scriptable scope) void
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
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.private static void
NativeArray.setRawElem
(Context cx, Scriptable target, long index, Object value) boolean
AccessorSlot.FunctionSetter.setValue
(Object value, Scriptable owner, Scriptable start) boolean
AccessorSlot.MemberBoxSetter.setValue
(Object value, Scriptable owner, Scriptable start) boolean
AccessorSlot.Setter.setValue
(Object value, Scriptable owner, Scriptable start) boolean
AccessorSlot.setValue
(Object value, Scriptable owner, Scriptable start) boolean
LambdaSlot.setValue
(Object value, Scriptable owner, Scriptable start) boolean
Slot.setValue
(Object value, Scriptable owner, Scriptable start) 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.private static void
ScriptRuntime.storeScriptable
(Context cx, Scriptable value) private static Object
NativeJSON.str
(Object key, Scriptable holder, NativeJSON.StringifyState state) static Object
ScriptRuntime.strictSetName
(Scriptable bound, Object value, Context cx, Scriptable scope, String id) static Object
private static String
NativeString.tagify
(Context cx, Scriptable thisObj, IdFunctionObject f, String tag, String attribute, Object[] args) private Object
NativePromise.then
(Context cx, Scriptable scope, LambdaConstructor defaultConstructor, Object[] args) static JavaScriptException
ScriptRuntime.throwCustomError
(Context cx, Scriptable scope, String constructorName, String message) Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from JavaScript.static JavaScriptException
ScriptRuntime.throwError
(Context cx, Scriptable scope, String message) Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.protected void
Slot.throwNoSetterException
(Scriptable start, Object newValue) static Scriptable
ScriptRuntime.toIterator
(Context cx, Scriptable scope, Scriptable obj, boolean keyOnly) static Scriptable
Context.toObject
(Object value, Scriptable scope) Convert the value to an JavaScript object value.static Scriptable
Context.toObject
(Object value, Scriptable scope, Class<?> staticType) Deprecated.static Scriptable
ScriptRuntime.toObject
(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.UseScriptRuntime.toObject(Context, Scriptable, Object)
instead.static Scriptable
ScriptRuntime.toObject
(Scriptable scope, Object val) static Scriptable
ScriptRuntime.toObject
(Scriptable scope, Object val, Class<?> staticClass) Deprecated.UseScriptRuntime.toObject(Scriptable, Object)
instead.static Scriptable
ScriptRuntime.toObjectOrNull
(Context cx, Object obj, Scriptable scope) private static Object
ScriptRuntime.topScopeName
(Context cx, Scriptable scope, String name) private static String
NativeArray.toStringHelper
(Context cx, Scriptable scope, Scriptable thisObj, boolean toSource, boolean toLocale) static String
ScriptRuntime.typeofName
(Scriptable scope, String id) The typeof operator that correctly handles the undefined case(package private) static String
ScriptRuntime.uneval
(Context cx, Scriptable scope, Object value) static Object
ScriptRuntime.updateDotQuery
(boolean value, Scriptable scope) private static Object
NativeJSON.walk
(Context cx, Scriptable scope, Callable reviver, Scriptable holder, Object name) static NativeJavaArray
NativeJavaArray.wrap
(Scriptable scope, Object array) static Object
NativeJavaObject.wrap
(Scriptable scope, Object obj, Class<?> staticType) Deprecated.UseContext.getWrapFactory()
together with callingWrapFactory.wrap(Context, Scriptable, Object, Class)
WrapFactory.wrap
(Context cx, Scriptable scope, Object obj, Class<?> staticType) Wrap the object.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) 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.WrapFactory.wrapNewObject
(Context cx, Scriptable scope, Object obj) Wrap an object newly created by a constructor call.RegExpProxy.wrapRegExp
(Context cx, Scriptable scope, Object compiled) static Scriptable
ScriptRuntime.wrapRegExp
(Context cx, Scriptable scope, Object compiled) Constructors in org.mozilla.javascript with parameters of type ScriptableModifierConstructorDescriptionArrowFunction
(Context cx, Scriptable scope, Callable targetFunction, Scriptable boundThis) BaseFunction
(Scriptable scope, Scriptable prototype) BoundFunction
(Context cx, Scriptable scope, Callable targetFunction, Scriptable boundThis, Object[] boundArgs) (package private)
CallFrame
(Context cx, Scriptable thisObj, InterpretedFunction fnOrScript, Interpreter.CallFrame parentFrame) (package private)
Capability
(Context topCx, Scriptable topScope, Object pc) Delegator
(Scriptable obj) Create a new Delegator that forwards requests to a delegee Scriptable object.EcmaError
(Scriptable nativeError, String sourceName, int lineNumber, int columnNumber, String lineSource) Deprecated.EcmaError error instances should not be constructed explicitly since they are generated by the engine.ES6Generator
(Scriptable scope, NativeFunction function, Object savedState) protected
ES6Iterator
(Scriptable scope, String tag) (package private)
FieldAndMethods
(Scriptable scope, MemberBox[] methods, Field field) FunctionObject
(String name, Member methodOrConstructor, Scriptable scope) Create a JavaScript function object from a Java method.IdFunctionObject
(IdFunctionCall idcall, Object tag, int id, String name, int arity, Scriptable scope) IdFunctionObjectES6
(IdFunctionCall idcall, Object tag, int id, String name, int arity, Scriptable scope) IdScriptableObject
(Scriptable scope, Scriptable prototype) IteratorLikeIterable
(Context cx, Scriptable scope, Object target) (package private)
JavaIterableIterator
(Scriptable scope, Iterable iterable) (package private)
JavaMembers
(Scriptable scope, Class<?> cl) (package private)
JavaMembers
(Scriptable scope, Class<?> cl, boolean includeProtected) (package private)
JavaMembers_jdk11
(Scriptable scope, Class<?> cl, boolean includeProtected) LambdaConstructor
(Scriptable scope, String name, int length, int flags, Constructable target) Create a new function and control whether it may be invoked using new, as a function, or both.LambdaConstructor
(Scriptable scope, String name, int length, Constructable target) Create a new function that may be used as a constructor.LambdaFunction
(Scriptable scope, int length, Callable target) Create a new built-in function, with no name, and no default prototype.LambdaFunction
(Scriptable scope, String name, int length, Callable target) Create a new function.NativeArrayIterator
(Scriptable scope, Scriptable arrayLike, NativeArrayIterator.ARRAY_ITERATOR_TYPE type) (package private)
NativeCall
(NativeFunction function, Scriptable scope, Object[] args, boolean isArrow, boolean isStrict) NativeCollectionIterator
(Scriptable scope, String className, NativeCollectionIterator.Type type, Iterator<Hashtable.Entry> iterator) NativeGenerator
(Scriptable scope, NativeFunction function, Object savedState) NativeJavaArray
(Scriptable scope, Object array) NativeJavaClass
(Scriptable scope, Class<?> cl) NativeJavaClass
(Scriptable scope, Class<?> cl, boolean isAdapter) NativeJavaList
(Scriptable scope, Object list) NativeJavaMap
(Scriptable scope, Object map) (package private)
NativeJavaMapIterator
(Scriptable scope, Map<Object, Object> map) NativeJavaObject
(Scriptable scope, Object javaObject, Class<?> staticType) NativeJavaObject
(Scriptable scope, Object javaObject, Class<?> staticType, boolean isAdapter) (package private)
NativeStringIterator
(Scriptable scope, Object stringLike) protected
NativeWith
(Scriptable parent, Scriptable prototype) (package private)
PromiseAllResolver
(IteratorLikeIterable.Itr iter, Scriptable thisObj, NativePromise.Capability cap) (package private)
ResolvingFunctions
(Scriptable topScope, NativePromise promise) ScriptableObject
(Scriptable scope, Scriptable prototype) private
SpecialRef
(Scriptable target, int type, String name) (package private)
StringifyState
(Context cx, Scriptable scope, String indent, String gap, Callable replacer, Object[] propertyList) Synchronizer
(Scriptable obj) Create a new synchronized function from an existing one.Synchronizer
(Scriptable obj, Object syncObject) Create a new synchronized function from an existing one using an explicit object as synchronization object.(package private)
WrappedJavaIterator
(Iterator<?> iterator, Scriptable scope) -
Uses of Scriptable in org.mozilla.javascript.commonjs.module
Classes in org.mozilla.javascript.commonjs.module that implement ScriptableModifier and TypeClassDescriptionclass
A top-level module scope.class
Implements the require() function as defined by Common JS modules.Fields in org.mozilla.javascript.commonjs.module declared as ScriptableModifier and TypeFieldDescriptionprivate Scriptable
Require.mainExports
private final Scriptable
Require.nativeScope
private final Scriptable
Require.paths
Fields in org.mozilla.javascript.commonjs.module with type parameters of type ScriptableModifier and TypeFieldDescriptionprivate final Map
<String, Scriptable> Require.exportedModuleInterfaces
private static final ThreadLocal
<Map<String, Scriptable>> Require.loadingModuleInterfaces
Methods in org.mozilla.javascript.commonjs.module that return ScriptableModifier and TypeMethodDescriptionRequire.construct
(Context cx, Scriptable scope, Object[] args) private Scriptable
Require.executeModuleScript
(Context cx, String id, Scriptable exports, ModuleScript moduleScript, boolean isMain) private Scriptable
Require.getExportedModuleInterface
(Context cx, String id, URI uri, URI base, boolean isMain) 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.Methods in org.mozilla.javascript.commonjs.module with parameters of type ScriptableModifier and TypeMethodDescriptionRequire.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Require.construct
(Context cx, Scriptable scope, Object[] args) RequireBuilder.createRequire
(Context cx, Scriptable globalScope) Creates a new require() function.private Scriptable
Require.executeModuleScript
(Context cx, String id, Scriptable exports, ModuleScript moduleScript, boolean isMain) private static void
Require.executeOptionalScript
(Script script, Context cx, Scriptable executionScope) ModuleScriptProvider.getModuleScript
(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths) Returns a module script.void
Require.install
(Scriptable scope) Binds this instance of require() into the specified scope under the property name "require".Constructors in org.mozilla.javascript.commonjs.module with parameters of type ScriptableModifierConstructorDescriptionModuleScope
(Scriptable prototype, URI uri, URI base) Require
(Context cx, Scriptable nativeScope, ModuleScriptProvider moduleScriptProvider, Script preExec, Script postExec, boolean sandboxed) Creates a new instance of the require() function. -
Uses of Scriptable in org.mozilla.javascript.commonjs.module.provider
Methods in org.mozilla.javascript.commonjs.module.provider with parameters of type ScriptableModifier and TypeMethodDescriptionCachingModuleScriptProviderBase.getModuleScript
(Context cx, String moduleId, URI moduleUri, URI baseUri, Scriptable paths) MultiModuleScriptProvider.getModuleScript
(Context cx, String moduleId, URI uri, URI base, Scriptable paths) SoftCachingModuleScriptProvider.getModuleScript
(Context cx, String moduleId, URI uri, URI base, Scriptable paths) private ModuleSource
ModuleSourceProviderBase.loadFromPathArray
(String moduleId, Scriptable paths, Object validator) ModuleSourceProvider.loadSource
(String moduleId, Scriptable paths, Object validator) Returns the script source of the requested module.ModuleSourceProviderBase.loadSource
(String moduleId, Scriptable paths, Object validator) -
Uses of Scriptable in org.mozilla.javascript.debug
Methods in org.mozilla.javascript.debug with parameters of type ScriptableModifier and TypeMethodDescriptionvoid
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. -
Uses of Scriptable in org.mozilla.javascript.engine
Classes in org.mozilla.javascript.engine that implement ScriptableModifier and TypeClassDescriptionclass
This class makes the Bindings object into a Scriptable.Methods in org.mozilla.javascript.engine that return ScriptableModifier and TypeMethodDescriptionprivate Scriptable
RhinoScriptEngine.initScope
(Context cx, ScriptContext sc) Methods in org.mozilla.javascript.engine with parameters of type ScriptableModifier and TypeMethodDescriptionBindingsObject.get
(String name, Scriptable start) private static Builtins
Builtins.getSelf
(Scriptable scope) boolean
BindingsObject.has
(String name, Scriptable start) private static boolean
RhinoScriptEngine.methodsMissing
(Scriptable scope, Class<?> clasz) static void
Builtins.print
(Context cx, Scriptable thisObj, Object[] args, Function f) void
BindingsObject.put
(String name, Scriptable start, Object value) -
Uses of Scriptable in org.mozilla.javascript.jdk18
Methods in org.mozilla.javascript.jdk18 with parameters of type ScriptableModifier and TypeMethodDescriptionprotected Object
VMBridge_jdk18.newInterfaceProxy
(Object proxyHelper, ContextFactory cf, InterfaceAdapter adapter, Object target, Scriptable topScope) -
Uses of Scriptable in org.mozilla.javascript.json
Fields in org.mozilla.javascript.json declared as ScriptableConstructors in org.mozilla.javascript.json with parameters of type Scriptable -
Uses of Scriptable in org.mozilla.javascript.optimizer
Fields in org.mozilla.javascript.optimizer declared as ScriptableMethods in org.mozilla.javascript.optimizer that return ScriptableModifier and TypeMethodDescriptionstatic Scriptable
OptRuntime.createNativeGenerator
(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack) static Scriptable
OptRuntime.newArrayLiteral
(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope) Methods in org.mozilla.javascript.optimizer with parameters of type ScriptableModifier and TypeMethodDescriptionstatic Function
OptRuntime.bindThis
(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) static Object
OptRuntime.call0
(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) Implement ....() call shrinking optimizer code.static Object
OptRuntime.call1
(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope) Implement ....(arg) call shrinking optimizer code.static Object
OptRuntime.call2
(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope) Implement ....(arg0, arg1) call shrinking optimizer code.static Object
OptRuntime.callN
(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope) Implement ....(arg0, arg1, ...) call shrinking optimizer code.static Object
OptRuntime.callName
(Object[] args, String name, Context cx, Scriptable scope) Implement name(args) call shrinking optimizer code.static Object
OptRuntime.callName0
(String name, Context cx, Scriptable scope) Implement name() call shrinking optimizer code.static Object
OptRuntime.callProp0
(Object value, String property, Context cx, Scriptable scope) Implement x.property() call shrinking optimizer code.static Object
OptRuntime.callSpecial
(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber) Codegen.createFunctionObject
(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) static Scriptable
OptRuntime.createNativeGenerator
(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack) static Object
OptRuntime.elemIncrDecr
(Object obj, double index, Context cx, Scriptable scope, int incrDecrMask) static void
OptRuntime.initFunction
(NativeFunction fn, int functionType, Scriptable scope, Context cx) static Scriptable
OptRuntime.newArrayLiteral
(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope) static Object
OptRuntime.newObjectSpecial
(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType) Constructors in org.mozilla.javascript.optimizer with parameters of type ScriptableModifierConstructorDescription(package private)
GeneratorState
(Scriptable thisObj, int maxLocals, int maxStack) -
Uses of Scriptable in org.mozilla.javascript.regexp
Classes in org.mozilla.javascript.regexp that implement ScriptableModifier and TypeClassDescriptionclass
This class implements the RegExp native object.(package private) class
Legacy implementation of RegExp was callable, this class exists to preserve this functionality(package private) class
This class implements the RegExp constructor native object.Fields in org.mozilla.javascript.regexp declared as ScriptableMethods in org.mozilla.javascript.regexp that return ScriptableModifier and TypeMethodDescription(package private) Scriptable
NativeRegExp.compile
(Context cx, Scriptable scope, Object[] args) NativeRegExpCallable.construct
(Context cx, Scriptable scope, Object[] args) NativeRegExpCtor.construct
(Context cx, Scriptable scope, Object[] args) RegExpImpl.wrapRegExp
(Context cx, Scriptable scope, Object compiled) Methods in org.mozilla.javascript.regexp with parameters of type ScriptableModifier and TypeMethodDescriptionRegExpImpl.action
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType) NativeRegExpCallable.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeRegExpCtor.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) Scriptable
NativeRegExp.compile
(Context cx, Scriptable scope, Object[] args) NativeRegExpCallable.construct
(Context cx, Scriptable scope, Object[] args) NativeRegExpCtor.construct
(Context cx, Scriptable scope, Object[] args) private static NativeRegExp
RegExpImpl.createRegExp
(Context cx, Scriptable scope, Object[] args, int optarg, boolean forceFlat) NativeRegExp.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) Object
NativeRegExp.execSub
(Context cx, Scriptable scopeObj, Object[] args, int matchType) (package private) Object
NativeRegExp.executeRegExp
(Context cx, Scriptable scope, RegExpImpl res, String str, int[] indexp, int matchType) private static int
RegExpImpl.find_split
(Context cx, Scriptable scope, String target, String separator, int version, RegExpProxy reProxy, Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) int
RegExpImpl.find_split
(Context cx, Scriptable scope, String target, String separator, Scriptable reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) static void
NativeRegExp.init
(Context cx, Scriptable scope, boolean sealed) boolean
RegExpImpl.isRegExp
(Scriptable obj) RegExpImpl.js_split
(Context cx, Scriptable scope, String target, Object[] args) private static void
RegExpImpl.match_glob
(GlobData mdata, Context cx, Scriptable scope, int count, RegExpImpl reImpl) private static Object
RegExpImpl.matchOrReplace
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, RegExpImpl reImpl, GlobData data, NativeRegExp re) Analog of C match_or_replace.private static NativeRegExp
NativeRegExp.realThis
(Scriptable thisObj, IdFunctionObject f) private static void
RegExpImpl.replace_glob
(GlobData rdata, Context cx, Scriptable scope, RegExpImpl reImpl, int leftIndex, int leftlen) (package private) static NativeRegExp
NativeRegExpInstantiator.withLanguageVersionScopeCompiled
(int languageVersion, Scriptable scope, RECompiled compiled) RegExpImpl.wrapRegExp
(Context cx, Scriptable scope, Object compiled) Constructors in org.mozilla.javascript.regexp with parameters of type ScriptableModifierConstructorDescription(package private)
NativeRegExp
(Scriptable scope, RECompiled regexpCompiled) (package private)
NativeRegExpCallable
(Scriptable scope, RECompiled compiled) -
Uses of Scriptable in org.mozilla.javascript.serialize
Fields in org.mozilla.javascript.serialize declared as ScriptableModifier and TypeFieldDescriptionprivate Scriptable
ScriptableInputStream.scope
private Scriptable
ScriptableOutputStream.scope
Methods in org.mozilla.javascript.serialize with parameters of type ScriptableModifier and TypeMethodDescription(package private) static Object
ScriptableOutputStream.lookupQualifiedName
(Scriptable scope, String qualifiedName) Constructors in org.mozilla.javascript.serialize with parameters of type ScriptableModifierConstructorDescriptionScriptableInputStream
(InputStream in, Scriptable scope) Create a ScriptableInputStream.ScriptableOutputStream
(OutputStream out, Scriptable scope) ScriptableOutputStream constructor. -
Uses of Scriptable in org.mozilla.javascript.tools.debugger
Fields in org.mozilla.javascript.tools.debugger declared as ScriptableModifier and TypeFieldDescriptionprivate Scriptable
Dim.StackFrame.scope
The scope.private Scriptable
Main.IProxy.scope
The scope object to expose whenMain.IProxy.type
=Main.IProxy.SCOPE_PROVIDER
.private Scriptable
Dim.StackFrame.thisObj
The 'this' object.Methods in org.mozilla.javascript.tools.debugger that return ScriptableModifier and TypeMethodDescriptionMain.IProxy.getScope()
Returns the scope for script evaluations.ScopeProvider.getScope()
Returns the scope object to be used for script evaluation.Methods in org.mozilla.javascript.tools.debugger with parameters of type ScriptableModifier and TypeMethodDescriptionstatic Main
Main.mainEmbedded
(ContextFactory factory, Scriptable scope, String title) Entry point for embedded applications.static ScopeProvider
Main.IProxy.newScopeProvider
(Scriptable scope) Creates a new IProxy that acts as aScopeProvider
.void
Dim.StackFrame.onEnter
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Called when the stack frame is entered.void
Main.setScope
(Scriptable scope) Sets the scope to be used for script evaluation. -
Uses of Scriptable in org.mozilla.javascript.tools.shell
Classes in org.mozilla.javascript.tools.shell that implement ScriptableModifier and TypeClassDescriptionclass
Environment, intended to be instantiated at global scope, provides a natural way to access System properties from JavaScript.class
This class provides for sharing functions across multiple threads.Fields in org.mozilla.javascript.tools.shell declared as ScriptableModifier and TypeFieldDescriptionprivate Scriptable
FlexibleCompletor.global
private Scriptable
Runner.scope
Methods in org.mozilla.javascript.tools.shell that return ScriptableModifier and TypeMethodDescription(package private) static Scriptable
(package private) static Scriptable
Main.getShellScope()
Methods in org.mozilla.javascript.tools.shell with parameters of type ScriptableModifier and TypeMethodDescriptionprotected void
JavaPolicySecurity.callProcessFileSecure
(Context cx, Scriptable scope, String filename) protected abstract void
SecurityProxy.callProcessFileSecure
(Context cx, Scriptable scope, String filename) JavaPolicySecurity.callWithDomain
(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args) static void
Global.defineClass
(Context cx, 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 thisObj, Object[] args, Function funObj) static Object
Global.doctest
(Context cx, 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).private boolean
Timers.executeNext
(Context cx, Scriptable scope) Put up to one task on the context's "microtask queue." If the next task is not ready to run for some time, then block the calling thread until the time is up.static void
Global.gc
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Environment.get
(String name, Scriptable start) static ShellConsole
ShellConsole.getConsole
(Scriptable scope, Charset cs) Provides a specializedShellConsole
to handle line editing, history and completion.private static ShellConsole.JLineShellConsoleV1
ShellConsole.getJLineShellConsoleV1
(ClassLoader classLoader, Class<?> readerClass, Scriptable scope, Charset cs) private static ShellConsole.JLineShellConsoleV2
ShellConsole.getJLineShellConsoleV2
(ClassLoader classLoader, Class<?> readerClass, Scriptable scope, Charset cs) static InputStream
ShellLine.getStream
(Scriptable scope) Deprecated.boolean
Environment.has
(String name, Scriptable start) static void
Global.help
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print a help message.void
Timers.install
(Scriptable scope) Initialize the "setTimeout" and "clearTimeout" functions on the specified scope.static void
Global.load
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Load and execute a set of JavaScript source files.static void
Global.loadClass
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Load and execute a script compiled to a class file.static Object
Global.print
(Context cx, 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) (package private) static void
Main.processFileSecure
(Context cx, Scriptable scope, String path, Object securityDomain) void
Environment.put
(String name, Scriptable start, Object value) static void
Global.quit
(Context cx, 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 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 thisObj, Object[] args, Function funObj) The readline reads one line from the standard input.static Object
Global.readUrl
(Context cx, 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 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 thisObj, Object[] args, Function funObj) The seal function seals all supplied arguments.static void
Global.serialize
(Context cx, Scriptable thisObj, Object[] args, Function funObj) static Object
Global.spawn
(Context cx, 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 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 thisObj, Object[] args, Function funObj) Convert the argument to int32 number.static double
Global.version
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Get and set the language version.static Object
Global.write
(Context cx, Scriptable thisObj, Object[] args, Function funObj) Print just as in "print," but without the trailing newline.Constructors in org.mozilla.javascript.tools.shell with parameters of type ScriptableModifierConstructorDescription(package private)
FlexibleCompletor
(Class<?> completorClass, Scriptable global) (package private)
Runner
(Scriptable scope, Function func, Object[] args) (package private)
Runner
(Scriptable scope, Script script) -
Uses of Scriptable in org.mozilla.javascript.typedarrays
Classes in org.mozilla.javascript.typedarrays that implement ScriptableModifier and TypeClassDescriptionclass
A NativeArrayBuffer is the backing buffer for a typed array.class
This class is the abstract parent for all views of the array.class
This class represents the JavaScript "DataView" interface, which allows direct manipulations of the bytes in a NativeArrayBuffer.class
An array view that stores 32-bit quantities and implements the JavaScript "loat32Array" interface.class
An array view that stores 64-bit quantities and implements the JavaScript "Float64Array" interface.class
An array view that stores 16-bit quantities and implements the JavaScript "Int16Array" interface.class
An array view that stores 32-bit quantities and implements the JavaScript "Int32Array" interface.class
An array view that stores 8-bit quantities and implements the JavaScript "Int8Array" interface.class
This class is the abstract parent for all of the various typed arrays.class
An array view that stores 16-bit quantities and implements the JavaScript "Uint16Array" interface.class
An array view that stores 32-bit quantities and implements the JavaScript "Uint32Array" interface.class
An array view that stores 8-bit quantities and implements the JavaScript "Uint8Array" interface.class
An array view that stores 8-bit quantities and implements the JavaScript "Uint8ClampedArray" interface.Methods in org.mozilla.javascript.typedarrays with parameters of type ScriptableModifier and TypeMethodDescriptionNativeArrayBuffer.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeDataView.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeTypedArrayView.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) NativeTypedArrayView.get
(int index, Scriptable start) boolean
NativeTypedArrayView.has
(int index, Scriptable start) static void
NativeArrayBuffer.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeDataView.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeFloat32Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeFloat64Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeInt16Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeInt32Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeInt8Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeUint16Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeUint32Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeUint8Array.init
(Context cx, Scriptable scope, boolean sealed) static void
NativeUint8ClampedArray.init
(Context cx, Scriptable scope, boolean sealed) private NativeTypedArrayView
<T> NativeTypedArrayView.js_constructor
(Context cx, Scriptable scope, Object[] args) private Object
NativeTypedArrayView.js_subarray
(Context cx, Scriptable scope, int s, int e) private NativeArrayBuffer
NativeTypedArrayView.makeArrayBuffer
(Context cx, Scriptable scope, int length) void
NativeTypedArrayView.put
(int index, Scriptable start, Object val) private static NativeArrayBuffer
NativeArrayBuffer.realThis
(Scriptable thisObj, IdFunctionObject f) private static NativeDataView
NativeDataView.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeFloat32Array
NativeFloat32Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeFloat64Array
NativeFloat64Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeInt16Array
NativeInt16Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeInt32Array
NativeInt32Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeInt8Array
NativeInt8Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected abstract NativeTypedArrayView
<T> NativeTypedArrayView.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeUint16Array
NativeUint16Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeUint32Array
NativeUint32Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeUint8Array
NativeUint8Array.realThis
(Scriptable thisObj, IdFunctionObject f) protected NativeUint8ClampedArray
NativeUint8ClampedArray.realThis
(Scriptable thisObj, IdFunctionObject f) -
Uses of Scriptable in org.mozilla.javascript.xml
Classes in org.mozilla.javascript.xml that implement ScriptableModifier and TypeClassDescriptionclass
This Interface describes what all XML objects (XML, XMLList) should have in common.Methods in org.mozilla.javascript.xml that return ScriptableModifier and TypeMethodDescriptionabstract Scriptable
XMLObject.getExtraMethodSource
(Context cx) Return an additional object to look for methods that runtime should consider during method search.Methods in org.mozilla.javascript.xml with parameters of type ScriptableModifier and TypeMethodDescriptionprotected final XMLLib
XMLLib.bindToScope
(Scriptable scope) abstract NativeWith
XMLObject.enterDotQuery
(Scriptable scope) Wrap this object into NativeWith to implement the .() query.abstract NativeWith
XMLObject.enterWith
(Scriptable scope) Wrap this object into NativeWith to implement the with statement.static XMLLib
XMLLib.extractFromScope
(Scriptable scope) static XMLLib
XMLLib.extractFromScopeOrNull
(Scriptable scope) abstract Ref
XMLLib.nameRef
(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags) abstract Ref
XMLLib.nameRef
(Context cx, Object name, Scriptable scope, int memberTypeFlags) Constructors in org.mozilla.javascript.xml with parameters of type Scriptable -
Uses of Scriptable in org.mozilla.javascript.xmlimpl
Classes in org.mozilla.javascript.xmlimpl that implement ScriptableModifier and TypeClassDescription(package private) class
Class Namespace(package private) final class
Class QName(package private) class
(package private) class
(package private) class
(package private) class
This abstract class describes what all XML objects (XML, XMLList) should have in common.(package private) final class
Fields in org.mozilla.javascript.xmlimpl declared as ScriptableMethods in org.mozilla.javascript.xmlimpl that return ScriptableModifier and TypeMethodDescriptionXMLList.construct
(Context cx, Scriptable scope, Object[] args) XML.getExtraMethodSource
(Context cx) XMLList.getExtraMethodSource
(Context cx) See ECMA 357, 11_2_2_1, Semantics, 3_e.final Scriptable
XMLObjectImpl.getParentScope()
final Scriptable
XMLObjectImpl.getPrototype()
(package private) Scriptable
XMLLibImpl.globalScope()
Deprecated.Methods in org.mozilla.javascript.xmlimpl with parameters of type ScriptableModifier and TypeMethodDescriptionprivate Object
XMLList.applyOrCall
(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) XMLList.call
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) XMLList.construct
(Context cx, Scriptable scope, Object[] args) (package private) static Namespace
Namespace.create
(Scriptable scope, Namespace prototype, XmlNode.Namespace namespace) (package private) static QName
QName.create
(XMLLibImpl lib, Scriptable scope, QName prototype, XmlNode.QName delegate) XMLObjectImpl.enterDotQuery
(Scriptable scope) XMLObjectImpl.enterWith
(Scriptable scope) Namespace.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) QName.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) XMLCtor.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) XMLObjectImpl.execIdCall
(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) XML.get
(int index, Scriptable start) XMLList.get
(int index, Scriptable start) XMLObjectImpl.get
(String name, Scriptable start) boolean
XML.has
(int index, Scriptable start) boolean
XMLList.has
(int index, Scriptable start) boolean
XMLObjectImpl.has
(String name, Scriptable start) boolean
XMLCtor.hasInstance
(Scriptable instance) hasInstance for XML objects works differently than other objects; see ECMA357 13.4.3.10.final boolean
XMLObjectImpl.hasInstance
(Scriptable scriptable) static void
XMLLibImpl.init
(Context cx, Scriptable scope, boolean sealed) (package private) final void
XMLObjectImpl.initialize
(XMLLibImpl lib, Scriptable scope, XMLObject prototype) XMLLibImpl.nameRef
(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags) XMLLibImpl.nameRef
(Context cx, Object name, Scriptable scope, int memberTypeFlags) void
XML.put
(int index, Scriptable start, Object value) void
XMLList.put
(int index, Scriptable start, Object value) void
XMLObjectImpl.put
(String name, Scriptable start, Object value) private void
XMLCtor.readSettings
(Scriptable source) private Namespace
Namespace.realThis
(Scriptable thisObj, IdFunctionObject f) private QName
QName.realThis
(Scriptable thisObj, IdFunctionObject f) final void
XMLObjectImpl.setParentScope
(Scriptable parent) final void
XMLObjectImpl.setPrototype
(Scriptable prototype) private void
XMLCtor.writeSetting
(Scriptable target) private Ref
XMLLibImpl.xmlPrimaryReference
(Context cx, XMLName xmlName, Scriptable scope) Constructors in org.mozilla.javascript.xmlimpl with parameters of type ScriptableModifierConstructorDescription(package private)
XML
(XMLLibImpl lib, Scriptable scope, XMLObject prototype, XmlNode node) private
XMLLibImpl
(Scriptable globalScope) (package private)
XMLList
(XMLLibImpl lib, Scriptable scope, XMLObject prototype) protected
XMLObjectImpl
(XMLLibImpl lib, Scriptable scope, XMLObject prototype) (package private)
XMLWithScope
(XMLLibImpl lib, Scriptable parent, XMLObject prototype)
ScriptRuntime.createFunctionActivation(NativeFunction, Scriptable, Object[], boolean)
instead