|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Scriptable | |
|---|---|
| org.mozilla.javascript | |
| org.mozilla.javascript.commonjs.module | Provides the public API for the CommonJS Modules/1.1 implementation. |
| org.mozilla.javascript.commonjs.module.provider | Provides default implementations for module providers. |
| org.mozilla.javascript.debug | |
| org.mozilla.javascript.jdk13 | |
| org.mozilla.javascript.jdk15 | |
| org.mozilla.javascript.json | |
| org.mozilla.javascript.optimizer | |
| org.mozilla.javascript.regexp | |
| org.mozilla.javascript.serialize | |
| org.mozilla.javascript.xml | |
| Uses of Scriptable in org.mozilla.javascript |
|---|
| Subinterfaces of Scriptable in org.mozilla.javascript | |
|---|---|
interface |
Function
This is interface that all functions in JavaScript must implement. |
| Classes in org.mozilla.javascript that implement Scriptable | |
|---|---|
class |
BaseFunction
The base class for Function objects See ECMA 15.3. |
class |
BoundFunction
The class for results of the Function.bind operation EcmaScript 5 spec, 15.3.4.5 |
class |
Delegator
This is a helper class for implementing wrappers around Scriptable objects. |
class |
FunctionObject
|
class |
IdFunctionObject
|
class |
IdScriptableObject
Base class for native object implementation that uses IdFunctionObject to export its methods to script via |
class |
ImporterTopLevel
Class ImporterTopLevel This class defines a ScriptableObject that can be instantiated as a top-level ("global") object to provide functionality similar to Java's "import" statement. |
class |
NativeArray
This class implements the Array native object. |
class |
NativeCall
This class implements the activation object. |
class |
NativeContinuation
|
class |
NativeFunction
This class implements the Function native object. |
class |
NativeGenerator
This class implements generator objects. |
class |
NativeIterator
This class implements iterator objects. |
class |
NativeJavaArray
This class reflects Java arrays into the JavaScript environment. |
class |
NativeJavaClass
This class reflects Java classes into the JavaScript environment, mainly for constructors and static members. |
class |
NativeJavaConstructor
This class reflects a single Java constructor into the JavaScript environment. |
class |
NativeJavaMethod
This class reflects Java methods into the JavaScript environment and handles overloading of methods. |
class |
NativeJavaObject
This class reflects non-Array Java objects into the JavaScript environment. |
class |
NativeJavaPackage
This class reflects Java packages into the JavaScript environment. |
class |
NativeJavaTopPackage
This class reflects Java packages into the JavaScript environment. |
class |
NativeJSON
This class implements the JSON native object. |
class |
NativeObject
This class implements the Object native object. |
class |
NativeWith
This class implements the object lookup required for the with statement. |
class |
ScriptableObject
This is the default implementation of the Scriptable interface. |
class |
Synchronizer
This class provides support for implementing Java-style synchronized methods in Javascript. |
class |
TopLevel
A top-level scope object that provides special means to cache and preserve the initial values of the built-in constructor properties for better ECMAScript compliance. |
| Fields in org.mozilla.javascript declared as Scriptable | |
|---|---|
protected Scriptable |
Delegator.obj
|
protected Scriptable |
NativeJavaObject.parent
The parent scope of this object. |
protected Scriptable |
NativeWith.parent
|
protected Scriptable |
NativeJavaObject.prototype
The prototype of this object. |
protected Scriptable |
NativeWith.prototype
|
| Fields in org.mozilla.javascript with type parameters of type Scriptable | |
|---|---|
static Class<Scriptable> |
ScriptRuntime.ScriptableClass
|
| Methods in org.mozilla.javascript with type parameters of type Scriptable | ||
|---|---|---|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance. |
|
| Methods in org.mozilla.javascript that return Scriptable | |
|---|---|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
String id)
Returns the object in the scope chain that has a given property. |
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
Object[] args)
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
Object[] extraArgs)
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
Object[] args)
Note that if the delegee is null,
this method creates a new instance of the Delegator itself
rathert than forwarding the call to the
delegee. |
Scriptable |
Function.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor. |
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
Object[] args)
|
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
Object[] args)
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
Object[] args)
|
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
Object adapter)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args)
|
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object. |
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new Scriptable instance using the default
constructor for the class of the underlying Java method. |
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope)
|
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)
|
static Scriptable |
TopLevel.getBuiltinPrototype(Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object prototype with the given type from the given scope. |
Scriptable |
TopLevel.getBuiltinPrototype(TopLevel.Builtins type)
Get the cached built-in object prototype from this scope with the given type. |
protected Scriptable |
BaseFunction.getClassPrototype()
|
static Scriptable |
ScriptableObject.getClassPrototype(Scriptable scope,
String className)
Get the prototype for the named class. |
Scriptable |
Delegator.getDelegee()
Retrieve the delegee. |
Scriptable |
EcmaError.getErrorObject()
Deprecated. Always returns null. |
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope)
Get the Function.prototype property. |
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope)
Get the Object.prototype property. |
Scriptable |
Delegator.getParentScope()
|
Scriptable |
NativeJavaObject.getParentScope()
Returns the parent (enclosing) scope of the object. |
Scriptable |
NativeWith.getParentScope()
|
Scriptable |
Scriptable.getParentScope()
Get the parent scope of the object. |
Scriptable |
ScriptableObject.getParentScope()
Returns the parent (enclosing) scope of the object. |
Scriptable |
Delegator.getPrototype()
|
Scriptable |
IdFunctionObject.getPrototype()
|
Scriptable |
NativeJavaArray.getPrototype()
|
Scriptable |
NativeJavaObject.getPrototype()
|
Scriptable |
NativeWith.getPrototype()
|
Scriptable |
Scriptable.getPrototype()
Get the prototype of the object. |
Scriptable |
ScriptableObject.getPrototype()
Returns the prototype of the object. |
static Scriptable |
ScriptRuntime.getTopCallScope(Context cx)
|
static Scriptable |
ScriptableObject.getTopLevelScope(Scriptable obj)
Get the global scope. |
Scriptable |
Context.initStandardObjects(ScriptableObject scope)
Initialize the standard objects. |
static Scriptable |
ScriptRuntime.lastStoredScriptable(Context cx)
|
static Scriptable |
ScriptRuntime.leaveDotQuery(Scriptable scope)
|
static Scriptable |
ScriptRuntime.leaveWith(Scriptable scope)
|
Scriptable |
Context.newArray(Scriptable scope,
int length)
Create an array with a specified initial length. |
Scriptable |
Context.newArray(Scriptable scope,
Object[] elements)
Create an array with a set of initial elements. |
static Scriptable |
ScriptRuntime.newArrayLiteral(Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope)
|
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
Object[] args)
|
static Scriptable |
ScriptRuntime.newCatchScope(Throwable t,
Scriptable lastCatchScope,
String exceptionName,
Context cx,
Scriptable scope)
|
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
String constructorName,
Object[] args)
|
static Scriptable |
ScriptRuntime.newObject(Object fun,
Context cx,
Scriptable scope,
Object[] args)
Operator new. |
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object. |
Scriptable |
Context.newObject(Scriptable scope,
String constructorName)
Create a new JavaScript object by executing the named constructor. |
Scriptable |
Context.newObject(Scriptable scope,
String constructorName,
Object[] args)
Creates a new JavaScript object by executing the named constructor. |
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated. This method only present for compatibility. |
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope)
|
static Scriptable |
JavaAdapter.runScript(Script script)
|
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly)
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val)
Convert the value to an object. |
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
static Scriptable |
Context.toObject(Object value,
Scriptable scope)
Convert the value to an JavaScript object value. |
static Scriptable |
Context.toObject(Object value,
Scriptable scope,
Class<?> staticType)
Deprecated. |
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val)
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Scriptable, Object) instead. |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj)
Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj,
Scriptable scope)
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
Object javaObject,
Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. |
static Scriptable |
ScriptRuntime.wrapException(Throwable t,
Scriptable scope,
Context cx)
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
Class javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. |
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
Object obj)
Wrap an object newly created by a constructor call. |
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
Object compiled)
|
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
Object compiled)
|
| Methods in org.mozilla.javascript with parameters of type Scriptable | ||
|---|---|---|
Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType)
|
|
void |
FunctionObject.addAsConstructor(Scriptable scope,
Scriptable prototype)
Define this function as a JavaScript constructor. |
|
void |
IdFunctionObject.addAsProperty(Scriptable target)
|
|
protected void |
IdScriptableObject.addIdFunctionProperty(Scriptable obj,
Object tag,
int id,
String name,
int arity)
|
|
static Object |
ScriptRuntime.applyOrCall(boolean isApply,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34] |
|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
String id)
Returns the object in the scope chain that has a given property. |
|
protected static ScriptableObject |
ScriptableObject.buildDataDescriptor(Scriptable scope,
Object value,
int attributes)
|
|
abstract Object |
PolicySecurityController.SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
abstract Object |
SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
static Object |
Context.call(ContextFactory factory,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
using the Context instance associated with the current thread. |
|
static Object |
ScriptRuntime.call(Context cx,
Object fun,
Object thisArg,
Object[] args,
Scriptable scope)
Deprecated. The method is only present for compatibility. |
|
Object |
BaseFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Should be overridden. |
|
Object |
BoundFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] extraArgs)
|
|
Object |
Callable.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Perform the call. |
|
Object |
Delegator.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
Function.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call the function. |
|
Object |
FunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Performs conversions on argument types if needed and invokes the underlying Java method or constructor. |
|
Object |
IdFunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeContinuation.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJavaClass.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJavaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJavaMethod.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJavaTopPackage.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
Synchronizer.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
Context.callFunctionWithContinuations(Callable function,
Scriptable scope,
Object[] args)
Call function that may pause execution by capturing a continuation. |
|
static Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
Object[] args,
long argsToWrap)
Utility method which dynamically binds a Context to the current thread, if none already exists. |
|
static Object |
ScriptableObject.callMethod(Context cx,
Scriptable obj,
String methodName,
Object[] args)
Call a method of an object. |
|
static Object |
ScriptableObject.callMethod(Scriptable obj,
String methodName,
Object[] args)
Call a method of an object. |
|
static Ref |
ScriptRuntime.callRef(Callable function,
Scriptable thisObj,
Object[] args,
Context cx)
Perform function call in reference context. |
|
static Object |
ScriptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
String filename,
int lineNumber)
|
|
Object |
PolicySecurityController.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
SecurityController.callWithDomain(Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
Object[] args)
Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
of callable under restricted security domain where an action is
allowed only if it is allowed according to the Java stack on the
moment of the execWithDomain call and securityDomain. |
|
Function |
Context.compileFunction(Scriptable scope,
String source,
String sourceName,
int lineno,
Object securityDomain)
Compile a JavaScript function. |
|
Script |
Context.compileReader(Scriptable scope,
Reader in,
String sourceName,
int lineno,
Object securityDomain)
Deprecated. |
|
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
Object[] args)
|
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
Object[] extraArgs)
|
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
Object[] args)
Note that if the delegee is null,
this method creates a new instance of the Delegator itself
rathert than forwarding the call to the
delegee. |
|
Scriptable |
Function.construct(Context cx,
Scriptable scope,
Object[] args)
Call the function as a constructor. |
|
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
Object[] args)
|
|
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
Object[] args)
|
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
Object[] args)
|
|
static EcmaError |
NativeGlobal.constructError(Context cx,
String error,
String message,
Scriptable scope)
Deprecated. Use ScriptRuntime.constructError(String,String)
instead. |
|
static EcmaError |
NativeGlobal.constructError(Context cx,
String error,
String message,
Scriptable scope,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
Deprecated. Use ScriptRuntime.constructError(String,String,String,int,String,int)
instead. |
|
static Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
Object arg,
Class<?> desired)
Deprecated. Use FunctionObject.getTypeTag(Class)
and FunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion. |
|
static Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
Object arg,
int typeTag)
|
|
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
Object adapter)
|
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
Object[] args)
|
|
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
Object bytecode,
Object staticSecurityDomain)
Create a function object. |
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
Object bytecode,
Object staticSecurityDomain)
|
|
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object. |
|
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new Scriptable instance using the default
constructor for the class of the underlying Java method. |
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope)
|
|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance. |
|
void |
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. |
|
static void |
ScriptableObject.defineProperty(Scriptable destination,
String propertyName,
Object value,
int attributes)
Utility method to add properties to arbitrary Scriptable object. |
|
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. |
|
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)
|
|
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.evalSpecial(Context cx,
Scriptable scope,
Object thisArg,
Object[] args,
String filename,
int lineNumber)
The eval function property of the global object. |
|
Object |
Context.evaluateReader(Scriptable scope,
Reader in,
String sourceName,
int lineno,
Object securityDomain)
Evaluate a reader as JavaScript source. |
|
Object |
Context.evaluateString(Scriptable scope,
String source,
String sourceName,
int lineno,
Object securityDomain)
Evaluate a JavaScript source string. |
|
Object |
Script.exec(Context cx,
Scriptable scope)
Execute the script. |
|
Object |
BaseFunction.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
IdFunctionCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned |
|
Object |
IdScriptableObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned. |
|
Object |
ImporterTopLevel.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
JavaAdapter.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeArray.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeContinuation.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeGlobal.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeIterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJavaTopPackage.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeJSON.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeWith.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
NativeGenerator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
|
Object |
Context.executeScriptWithContinuations(Script script,
Scriptable scope)
Execute script that may pause execution by capturing a continuation. |
|
Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
Object securityDomain)
Deprecated. The application should not override this method and instead override SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args). |
|
IdFunctionObject |
IdScriptableObject.exportAsJSClass(int maxPrototypeId,
Scriptable scope,
boolean sealed)
|
|
int |
RegExpProxy.find_split(Context cx,
Scriptable scope,
String target,
String separator,
Scriptable re,
int[] ip,
int[] matchlen,
boolean[] matched,
String[][] parensp)
|
|
Object |
Delegator.get(int index,
Scriptable start)
|
|
Object |
NativeArray.get(int index,
Scriptable start)
|
|
Object |
NativeJavaArray.get(int index,
Scriptable start)
|
|
Object |
NativeJavaObject.get(int index,
Scriptable start)
|
|
Object |
NativeJavaPackage.get(int index,
Scriptable start)
|
|
Object |
NativeWith.get(int index,
Scriptable start)
|
|
Object |
Scriptable.get(int index,
Scriptable start)
Get a property from the object selected by an integral index. |
|
Object |
ScriptableObject.get(int index,
Scriptable start)
Returns the value of the indexed property or NOT_FOUND. |
|
static ClassCache |
ClassCache.get(Scriptable scope)
Search for ClassCache object in the given scope. |
|
Object |
Delegator.get(String name,
Scriptable start)
|
|
Object |
IdScriptableObject.get(String name,
Scriptable start)
|
|
Object |
ImporterTopLevel.get(String name,
Scriptable start)
|
|
Object |
NativeJavaArray.get(String id,
Scriptable start)
|
|
Object |
NativeJavaClass.get(String name,
Scriptable start)
|
|
Object |
NativeJavaObject.get(String name,
Scriptable start)
|
|
Object |
NativeJavaPackage.get(String id,
Scriptable start)
|
|
Object |
NativeWith.get(String id,
Scriptable start)
|
|
Object |
Scriptable.get(String name,
Scriptable start)
Get a named property from the object. |
|
Object |
ScriptableObject.get(String name,
Scriptable start)
Returns the value of the named property or NOT_FOUND. |
|
static Object[] |
ScriptRuntime.getArrayElements(Scriptable object)
|
|
static Scriptable |
ScriptableObject.getArrayPrototype(Scriptable scope)
|
|
int |
ScriptableObject.getAttributes(int index,
Scriptable start)
Deprecated. Use ScriptableObject.getAttributes(int index). The engine always
ignored the start argument. |
|
int |
ScriptableObject.getAttributes(String name,
Scriptable start)
Deprecated. Use ScriptableObject.getAttributes(String name). The engine always
ignored the start argument. |
|
static Function |
TopLevel.getBuiltinCtor(Context cx,
Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object constructor with the given type from the given scope. |
|
static Scriptable |
TopLevel.getBuiltinPrototype(Scriptable scope,
TopLevel.Builtins type)
Static helper method to get a built-in object prototype with the given type from the given scope. |
|
static Scriptable |
ScriptableObject.getClassPrototype(Scriptable scope,
String className)
Get the prototype for the named class. |
|
static Object |
ScriptableObject.getDefaultValue(Scriptable object,
Class<?> typeHint)
|
|
Object[] |
Context.getElements(Scriptable object)
Get the elements of a JavaScript array. |
|
static Function |
JavaAdapter.getFunction(Scriptable obj,
String functionName)
|
|
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope)
Get the Function.prototype property. |
|
Iterator<?> |
VMBridge.getJavaIterator(Context cx,
Scriptable scope,
Object obj)
If "obj" is a java.util.Iterator or a java.lang.Iterable, return a wrapping as a JavaScript Iterator. |
|
static ScriptableObject |
ScriptRuntime.getLibraryScopeOrNull(Scriptable scope)
|
|
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. |
|
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)
|
|
static Object |
ScriptRuntime.getObjectIndex(Scriptable obj,
int index,
Context cx)
|
|
static Object |
ScriptRuntime.getObjectProp(Object obj,
String property,
Context cx,
Scriptable scope)
|
|
static Object |
ScriptRuntime.getObjectProp(Scriptable obj,
String property,
Context cx)
|
|
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope)
Get the Object.prototype property. |
|
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.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. |
|
static Object |
NativeIterator.getStopIterationObject(Scriptable scope)
Get the value of the "StopIteration" object. |
|
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
|
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
|
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. |
|
boolean |
Delegator.has(int index,
Scriptable start)
|
|
boolean |
NativeArray.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaArray.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaObject.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaPackage.has(int index,
Scriptable start)
|
|
boolean |
NativeWith.has(int index,
Scriptable start)
|
|
boolean |
Scriptable.has(int index,
Scriptable start)
Indicates whether or not an indexed property is defined in an object. |
|
boolean |
ScriptableObject.has(int index,
Scriptable start)
Returns true if the property index is defined. |
|
boolean |
Delegator.has(String name,
Scriptable start)
|
|
boolean |
IdScriptableObject.has(String name,
Scriptable start)
|
|
boolean |
ImporterTopLevel.has(String name,
Scriptable start)
|
|
boolean |
NativeJavaArray.has(String id,
Scriptable start)
|
|
boolean |
NativeJavaClass.has(String name,
Scriptable start)
|
|
boolean |
NativeJavaObject.has(String name,
Scriptable start)
|
|
boolean |
NativeJavaPackage.has(String id,
Scriptable start)
|
|
boolean |
NativeWith.has(String id,
Scriptable start)
|
|
boolean |
Scriptable.has(String name,
Scriptable start)
Indicates whether or not a named property is defined in an object. |
|
boolean |
ScriptableObject.has(String name,
Scriptable start)
Returns true if the named property is defined. |
|
boolean |
BaseFunction.hasInstance(Scriptable instance)
Implements the instanceof operator for JavaScript Function objects. |
|
boolean |
BoundFunction.hasInstance(Scriptable instance)
|
|
boolean |
Delegator.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. |
|
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
Object[] args,
Function funObj)
Deprecated. Kept only for compatibility. |
|
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
NativeContinuation.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
NativeGlobal.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
NativeJavaTopPackage.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode)
|
|
void |
IdFunctionObject.initFunction(String name,
Scriptable scope)
|
|
static void |
ScriptRuntime.initScript(NativeFunction funObj,
Scriptable thisObj,
Context cx,
Scriptable scope,
boolean evalScript)
|
|
void |
NativeFunction.initScriptFunction(Context cx,
Scriptable scope)
|
|
Object |
InterfaceAdapter.invoke(ContextFactory cf,
Object target,
Scriptable topScope,
Object thisObject,
Method method,
Object[] args)
|
|
boolean |
RegExpProxy.isRegExp(Scriptable obj)
|
|
static Object |
Context.javaToJS(Object value,
Scriptable scope)
Convenient method to convert java value to its closest representation in JavaScript. |
|
Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
String thisString,
Object[] _args)
|
|
static boolean |
ScriptRuntime.jsDelegatesTo(Scriptable lhs,
Scriptable rhs)
Delegates to |
|
static Scriptable |
ScriptRuntime.leaveDotQuery(Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.leaveWith(Scriptable scope)
|
|
void |
IdFunctionObject.markAsConstructor(Scriptable prototypeProperty)
|
|
static Object |
ScriptRuntime.name(Context cx,
Scriptable scope,
String name)
Looks up a name in the scope chain and returns its value. |
|
static Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
String id,
Context cx,
int incrDecrMask)
|
|
static Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
String id,
int incrDecrMask)
Deprecated. The method is only present for compatibility. |
|
static Ref |
ScriptRuntime.nameRef(Object name,
Context cx,
Scriptable scope,
int memberTypeFlags)
|
|
static Ref |
ScriptRuntime.nameRef(Object namespace,
Object name,
Context cx,
Scriptable scope,
int memberTypeFlags)
|
|
Scriptable |
Context.newArray(Scriptable scope,
int length)
Create an array with a specified initial length. |
|
Scriptable |
Context.newArray(Scriptable scope,
Object[] elements)
Create an array with a set of initial elements. |
|
static Scriptable |
ScriptRuntime.newArrayLiteral(Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
Object[] args)
|
|
static Scriptable |
ScriptRuntime.newCatchScope(Throwable t,
Scriptable lastCatchScope,
String exceptionName,
Context cx,
Scriptable scope)
|
|
protected Object |
VMBridge.newInterfaceProxy(Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
Object target,
Scriptable topScope)
Create proxy object for InterfaceAdapter. |
|
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
String constructorName,
Object[] args)
|
|
static Scriptable |
ScriptRuntime.newObject(Object fun,
Context cx,
Scriptable scope,
Object[] args)
Operator new. |
|
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object. |
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName)
Create a new JavaScript object by executing the named constructor. |
|
Scriptable |
Context.newObject(Scriptable scope,
String constructorName,
Object[] args)
Creates a new JavaScript object by executing the named constructor. |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated. This method only present for compatibility. |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(Object[] propertyIds,
Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope)
|
|
static Object |
ScriptRuntime.newSpecial(Context cx,
Object fun,
Object[] args,
Scriptable scope,
int callType)
|
|
static RuntimeException |
ScriptRuntime.notFoundError(Scriptable object,
String property)
|
|
static Object |
NativeJSON.parse(Context cx,
Scriptable scope,
String jtext,
Callable reviver)
|
|
void |
Delegator.put(int index,
Scriptable start,
Object value)
|
|
void |
NativeArray.put(int index,
Scriptable start,
Object value)
|
|
void |
NativeJavaArray.put(int index,
Scriptable start,
Object value)
|
|
void |
NativeJavaObject.put(int index,
Scriptable start,
Object value)
|
|
void |
NativeJavaPackage.put(int index,
Scriptable start,
Object value)
|
|
void |
NativeWith.put(int index,
Scriptable start,
Object value)
|
|
void |
Scriptable.put(int index,
Scriptable start,
Object value)
Sets an indexed 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 |
Delegator.put(String name,
Scriptable start,
Object value)
|
|
void |
IdScriptableObject.put(String name,
Scriptable start,
Object value)
|
|
void |
NativeArray.put(String id,
Scriptable start,
Object value)
|
|
void |
NativeJavaArray.put(String id,
Scriptable start,
Object value)
|
|
void |
NativeJavaClass.put(String name,
Scriptable start,
Object value)
|
|
void |
NativeJavaObject.put(String name,
Scriptable start,
Object value)
|
|
void |
NativeJavaPackage.put(String id,
Scriptable start,
Object value)
|
|
void |
NativeWith.put(String id,
Scriptable start,
Object value)
|
|
void |
Scriptable.put(String name,
Scriptable start,
Object value)
Sets a named property in this object. |
|
void |
ScriptableObject.put(String name,
Scriptable start,
Object value)
Sets the value of the named property, creating it if need be. |
|
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. |
|
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. |
|
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 Object |
JavaAdapter.readAdapterObject(Scriptable self,
ObjectInputStream in)
|
|
static void |
ScriptableObject.redefineProperty(Scriptable obj,
String name,
boolean isConst)
If hasProperty(obj, name) would return true, then if the property that was found is compatible with the new property, this method just returns. |
|
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
Object[] args)
Perform function call in reference context. |
|
static Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
Object[] args)
|
|
Object |
Context.resumeContinuation(Object continuation,
Scriptable scope,
Object functionResult)
Restarts execution of the JavaScript suspended at the call to Context.captureContinuation(). |
|
static Object |
Interpreter.resumeGenerator(Context cx,
Scriptable scope,
int operation,
Object savedState,
Object value)
|
|
Object |
NativeFunction.resumeGenerator(Context cx,
Scriptable scope,
int operation,
Object state,
Object value)
Resume execution of a suspended generator. |
|
void |
ScriptableObject.setAttributes(int index,
Scriptable start,
int attributes)
Deprecated. Use ScriptableObject.setAttributes(int index, int attributes).
The engine always ignored the start argument. |
|
void |
ScriptableObject.setAttributes(String name,
Scriptable start,
int attributes)
Deprecated. Use ScriptableObject.setAttributes(String name, int attributes).
The engine always ignored the start argument. |
|
static void |
ScriptRuntime.setBuiltinProtoAndParent(ScriptableObject object,
Scriptable scope,
TopLevel.Builtins type)
|
|
static Object |
ScriptRuntime.setConst(Scriptable bound,
Object value,
Context cx,
String id)
|
|
void |
Delegator.setDelegee(Scriptable obj)
Set the delegee. |
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Scriptable scope)
|
|
static Object |
ScriptRuntime.setName(Scriptable bound,
Object value,
Context cx,
Scriptable scope,
String id)
|
|
static Object |
ScriptRuntime.setObjectElem(Scriptable obj,
Object elem,
Object value,
Context cx)
|
|
static Object |
ScriptRuntime.setObjectIndex(Scriptable obj,
int index,
Object value,
Context cx)
|
|
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. |
|
static Object |
ScriptRuntime.strictSetName(Scriptable bound,
Object value,
Context cx,
Scriptable scope,
String id)
|
|
static Object |
NativeJSON.stringify(Context cx,
Scriptable scope,
Object value,
Object replacer,
Object space)
|
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
String message)
Equivalent to executing "new Error(message)" from JavaScript. |
|
static Scriptable |
ScriptRuntime.toIterator(Context cx,
Scriptable scope,
Scriptable obj,
boolean keyOnly)
|
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val)
Convert the value to an object. |
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
|
static Scriptable |
Context.toObject(Object value,
Scriptable scope)
Convert the value to an JavaScript object value. |
|
static Scriptable |
Context.toObject(Object value,
Scriptable scope,
Class<?> staticType)
Deprecated. |
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val)
|
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
Object val,
Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Scriptable, Object) instead. |
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
Object obj,
Scriptable scope)
|
|
static String |
ScriptRuntime.typeofName(Scriptable scope,
String id)
The typeof operator that correctly handles the undefined case |
|
static Object |
ScriptRuntime.updateDotQuery(boolean value,
Scriptable scope)
|
|
Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
Object obj,
Class<?> staticType)
Wrap the object. |
|
static NativeJavaArray |
NativeJavaArray.wrap(Scriptable scope,
Object array)
|
|
static Object |
NativeJavaObject.wrap(Scriptable scope,
Object obj,
Class<?> staticType)
Deprecated. Use Context.getWrapFactory() together with calling WrapFactory.wrap(Context, Scriptable, Object, Class) |
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
Object javaObject,
Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. |
|
static Scriptable |
ScriptRuntime.wrapException(Throwable t,
Scriptable scope,
Context cx)
|
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
Class javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. |
|
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
Object obj)
Wrap an object newly created by a constructor call. |
|
Scriptable |
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 Scriptable | |
|---|---|
BaseFunction(Scriptable scope,
Scriptable prototype)
|
|
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
Object[] boundArgs)
|
|
Delegator(Scriptable obj)
Create a new Delegator that forwards requests to a delegee Scriptable object. |
|
EcmaError(Scriptable nativeError,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
Deprecated. EcmaError error instances should not be constructed explicitly since they are generated by the engine. |
|
FunctionObject(String name,
Member methodOrConstructor,
Scriptable scope)
Create a JavaScript function object from a Java method. |
|
IdFunctionObject(IdFunctionCall idcall,
Object tag,
int id,
String name,
int arity,
Scriptable scope)
|
|
IdScriptableObject(Scriptable scope,
Scriptable prototype)
|
|
NativeGenerator(Scriptable scope,
NativeFunction function,
Object savedState)
|
|
NativeJavaArray(Scriptable scope,
Object array)
|
|
NativeJavaClass(Scriptable scope,
Class<?> cl)
|
|
NativeJavaClass(Scriptable scope,
Class<?> cl,
boolean isAdapter)
|
|
NativeJavaObject(Scriptable scope,
Object javaObject,
Class<?> staticType)
|
|
NativeJavaObject(Scriptable scope,
Object javaObject,
Class<?> staticType,
boolean isAdapter)
|
|
NativeWith(Scriptable parent,
Scriptable prototype)
|
|
ScriptableObject(Scriptable scope,
Scriptable prototype)
|
|
Synchronizer(Scriptable obj)
Create a new synchronized function from an existing one. |
|
Synchronizer(Scriptable obj,
Object syncObject)
Create a new synchronized function from an existing one using an explicit object as synchronization object. |
|
| Uses of Scriptable in org.mozilla.javascript.commonjs.module |
|---|
| Classes in org.mozilla.javascript.commonjs.module that implement Scriptable | |
|---|---|
class |
ModuleScope
A top-level module scope. |
class |
Require
Implements the require() function as defined by Common JS modules. |
| Methods in org.mozilla.javascript.commonjs.module that return Scriptable | |
|---|---|
Scriptable |
Require.construct(Context cx,
Scriptable scope,
Object[] args)
|
Scriptable |
Require.requireMain(Context cx,
String mainModuleId)
Calling this method establishes a module as being the main module of the program to which this require() instance belongs. |
| Methods in org.mozilla.javascript.commonjs.module with parameters of type Scriptable | |
|---|---|
Object |
Require.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
Scriptable |
Require.construct(Context cx,
Scriptable scope,
Object[] args)
|
Require |
RequireBuilder.createRequire(Context cx,
Scriptable globalScope)
Creates a new require() function. |
ModuleScript |
ModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI moduleUri,
URI baseUri,
Scriptable paths)
Returns a module script. |
void |
Require.install(Scriptable scope)
Binds this instance of require() into the specified scope under the property name "require". |
| Constructors in org.mozilla.javascript.commonjs.module with parameters of type Scriptable | |
|---|---|
ModuleScope(Scriptable prototype,
URI uri,
URI base)
|
|
Require(Context cx,
Scriptable nativeScope,
ModuleScriptProvider moduleScriptProvider,
Script preExec,
Script postExec,
boolean sandboxed)
Creates a new instance of the require() function. |
|
| Uses of Scriptable in org.mozilla.javascript.commonjs.module.provider |
|---|
| Methods in org.mozilla.javascript.commonjs.module.provider with parameters of type Scriptable | |
|---|---|
ModuleScript |
CachingModuleScriptProviderBase.getModuleScript(Context cx,
String moduleId,
URI moduleUri,
URI baseUri,
Scriptable paths)
|
ModuleScript |
MultiModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI uri,
URI base,
Scriptable paths)
|
ModuleScript |
SoftCachingModuleScriptProvider.getModuleScript(Context cx,
String moduleId,
URI uri,
URI base,
Scriptable paths)
|
ModuleSource |
ModuleSourceProvider.loadSource(String moduleId,
Scriptable paths,
Object validator)
Returns the script source of the requested module. |
ModuleSource |
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 Scriptable | |
|---|---|
void |
DebugFrame.onEnter(Context cx,
Scriptable activation,
Scriptable thisObj,
Object[] args)
Called when execution is ready to start bytecode interpretation for entered a particular function or script. |
| Uses of Scriptable in org.mozilla.javascript.jdk13 |
|---|
| Methods in org.mozilla.javascript.jdk13 with parameters of type Scriptable | |
|---|---|
protected Object |
VMBridge_jdk13.newInterfaceProxy(Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
Object target,
Scriptable topScope)
|
| Uses of Scriptable in org.mozilla.javascript.jdk15 |
|---|
| Methods in org.mozilla.javascript.jdk15 with parameters of type Scriptable | |
|---|---|
Iterator<?> |
VMBridge_jdk15.getJavaIterator(Context cx,
Scriptable scope,
Object obj)
If "obj" is a java.util.Iterator or a java.lang.Iterable, return a wrapping as a JavaScript Iterator. |
| Uses of Scriptable in org.mozilla.javascript.json |
|---|
| Constructors in org.mozilla.javascript.json with parameters of type Scriptable | |
|---|---|
JsonParser(Context cx,
Scriptable scope)
|
|
| Uses of Scriptable in org.mozilla.javascript.optimizer |
|---|
| Fields in org.mozilla.javascript.optimizer declared as Scriptable | |
|---|---|
Scriptable |
OptRuntime.GeneratorState.thisObj
|
| Methods in org.mozilla.javascript.optimizer that return Scriptable | |
|---|---|
static 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 Scriptable | |
|---|---|
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)
|
Function |
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 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)
|
| Uses of Scriptable in org.mozilla.javascript.regexp |
|---|
| Classes in org.mozilla.javascript.regexp that implement Scriptable | |
|---|---|
class |
NativeRegExp
This class implements the RegExp native object. |
| Methods in org.mozilla.javascript.regexp that return Scriptable | |
|---|---|
Scriptable |
NativeRegExp.construct(Context cx,
Scriptable scope,
Object[] args)
|
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
Object compiled)
|
| Methods in org.mozilla.javascript.regexp with parameters of type Scriptable | |
|---|---|
Object |
RegExpImpl.action(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args,
int actionType)
|
Object |
NativeRegExp.call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
Scriptable |
NativeRegExp.construct(Context cx,
Scriptable scope,
Object[] args)
|
Object |
NativeRegExp.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
|
int |
RegExpImpl.find_split(Context cx,
Scriptable scope,
String target,
String separator,
Scriptable reObj,
int[] ip,
int[] matchlen,
boolean[] matched,
String[][] parensp)
|
static void |
NativeRegExp.init(Context cx,
Scriptable scope,
boolean sealed)
|
boolean |
RegExpImpl.isRegExp(Scriptable obj)
|
Object |
RegExpImpl.js_split(Context cx,
Scriptable scope,
String target,
Object[] args)
|
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
Object compiled)
|
| Uses of Scriptable in org.mozilla.javascript.serialize |
|---|
| Constructors in org.mozilla.javascript.serialize with parameters of type Scriptable | |
|---|---|
ScriptableInputStream(InputStream in,
Scriptable scope)
Create a ScriptableInputStream. |
|
ScriptableOutputStream(OutputStream out,
Scriptable scope)
ScriptableOutputStream constructor. |
|
| Uses of Scriptable in org.mozilla.javascript.xml |
|---|
| Classes in org.mozilla.javascript.xml that implement Scriptable | |
|---|---|
class |
XMLObject
This Interface describes what all XML objects (XML, XMLList) should have in common. |
| Methods in org.mozilla.javascript.xml that return Scriptable | |
|---|---|
abstract 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 Scriptable | |
|---|---|
protected XMLLib |
XMLLib.bindToScope(Scriptable scope)
|
abstract NativeWith |
XMLObject.enterDotQuery(Scriptable scope)
Wrap this object into NativeWith to implement the .() query. |
abstract NativeWith |
XMLObject.enterWith(Scriptable scope)
Wrap this object into NativeWith to implement the with statement. |
static XMLLib |
XMLLib.extractFromScope(Scriptable scope)
|
static XMLLib |
XMLLib.extractFromScopeOrNull(Scriptable scope)
|
abstract Ref |
XMLLib.nameRef(Context cx,
Object namespace,
Object name,
Scriptable scope,
int memberTypeFlags)
|
abstract Ref |
XMLLib.nameRef(Context cx,
Object name,
Scriptable scope,
int memberTypeFlags)
|
| Constructors in org.mozilla.javascript.xml with parameters of type Scriptable | |
|---|---|
XMLObject(Scriptable scope,
Scriptable prototype)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||