|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript |
|---|
| Subinterfaces of Scriptable in net.sourceforge.htmlunit.corejs.javascript | |
|---|---|
interface |
Function
This is interface that all functions in JavaScript must implement. |
| Classes in net.sourceforge.htmlunit.corejs.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 net.sourceforge.htmlunit.corejs.javascript declared as Scriptable | |
|---|---|
protected Scriptable |
Delegator.obj
|
protected Scriptable |
NativeWith.parent
|
protected Scriptable |
NativeJavaObject.parent
The parent scope of this object. |
protected Scriptable |
NativeWith.prototype
|
protected Scriptable |
NativeJavaObject.prototype
The prototype of this object. |
| Fields in net.sourceforge.htmlunit.corejs.javascript with type parameters of type Scriptable | |
|---|---|
static java.lang.Class<Scriptable> |
ScriptRuntime.ScriptableClass
|
| Methods in net.sourceforge.htmlunit.corejs.javascript with type parameters of type Scriptable | ||
|---|---|---|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance. |
|
| Methods in net.sourceforge.htmlunit.corejs.javascript that return Scriptable | |
|---|---|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
java.lang.String id)
Returns the object in the scope chain that has a given property. |
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
Function.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Call the function as a constructor. |
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Note that if the delegee is null,
this method creates a new instance of the Delegator itself
rathert than forwarding the call to the
delegee. |
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] extraArgs)
|
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
java.lang.Object adapter)
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope)
|
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new Scriptable instance using the default
constructor for the class of the underlying Java method. |
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object. |
protected static Scriptable |
ScriptableObject.ensureScriptable(java.lang.Object arg)
|
static Scriptable |
ScriptRuntime.enterDotQuery(java.lang.Object value,
Scriptable scope)
|
static Scriptable |
ScriptRuntime.enterWith(java.lang.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,
java.lang.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 |
ScriptableObject.getParentScope()
Returns the parent (enclosing) scope of the object. |
Scriptable |
Scriptable.getParentScope()
Get the parent scope of the object. |
Scriptable |
NativeWith.getParentScope()
|
Scriptable |
NativeJavaObject.getParentScope()
Returns the parent (enclosing) scope of the object. |
Scriptable |
Delegator.getParentScope()
|
Scriptable |
ScriptableObject.getPrototype()
Returns the prototype of the object. |
Scriptable |
Scriptable.getPrototype()
Get the prototype of the object. |
Scriptable |
NativeWith.getPrototype()
|
Scriptable |
NativeJavaObject.getPrototype()
|
Scriptable |
NativeJavaArray.getPrototype()
|
Scriptable |
IdFunctionObject.getPrototype()
|
Scriptable |
Delegator.getPrototype()
|
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,
java.lang.Object[] elements)
Create an array with a set of initial elements. |
static Scriptable |
ScriptRuntime.newArrayLiteral(java.lang.Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope)
|
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
java.lang.Object[] args)
|
static Scriptable |
ScriptRuntime.newCatchScope(java.lang.Throwable t,
Scriptable lastCatchScope,
java.lang.String exceptionName,
Context cx,
Scriptable scope)
|
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args)
|
static Scriptable |
ScriptRuntime.newObject(java.lang.Object fun,
Context cx,
Scriptable scope,
java.lang.Object[] args)
Operator new. |
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object. |
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName)
Create a new JavaScript object by executing the named constructor. |
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args)
Creates a new JavaScript object by executing the named constructor. |
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated. This method only present for compatibility. |
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.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,
java.lang.Object val)
Convert the value to an object. |
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope)
Convert the value to an JavaScript object value. |
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope,
java.lang.Class<?> staticType)
Deprecated. |
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val)
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Scriptable, Object) instead. |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj)
Warning: this doesn't allow to resolve primitive prototype properly when many top scopes are involved |
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj,
Scriptable scope)
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
java.lang.Object javaObject,
java.lang.Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. |
static Scriptable |
ScriptRuntime.wrapException(java.lang.Throwable t,
Scriptable scope,
Context cx)
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
java.lang.Class javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. |
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
java.lang.Object obj)
Wrap an object newly created by a constructor call. |
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
| Methods in net.sourceforge.htmlunit.corejs.javascript with parameters of type Scriptable | ||
|---|---|---|
java.lang.Object |
RegExpProxy.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
int actionType)
|
|
void |
FunctionObject.addAsConstructor(Scriptable scope,
Scriptable prototype)
Define this function as a JavaScript constructor. |
|
void |
IdFunctionObject.addAsProperty(Scriptable target)
|
|
protected void |
IdScriptableObject.addIdFunctionProperty(Scriptable obj,
java.lang.Object tag,
int id,
java.lang.String name,
int arity)
|
|
static java.lang.Object |
ScriptRuntime.applyOrCall(boolean isApply,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34] |
|
static Scriptable |
ScriptRuntime.bind(Context cx,
Scriptable scope,
java.lang.String id)
Returns the object in the scope chain that has a given property. |
|
protected static ScriptableObject |
ScriptableObject.buildDataDescriptor(Scriptable scope,
java.lang.Object value,
int attributes)
|
|
abstract java.lang.Object |
SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
abstract java.lang.Object |
PolicySecurityController.SecureCaller.call(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
static java.lang.Object |
Context.call(ContextFactory factory,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Call Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
using the Context instance associated with the current thread. |
|
static java.lang.Object |
ScriptRuntime.call(Context cx,
java.lang.Object fun,
java.lang.Object thisArg,
java.lang.Object[] args,
Scriptable scope)
Deprecated. The method is only present for compatibility. |
|
java.lang.Object |
Synchronizer.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJavaTopPackage.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJavaMethod.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJavaConstructor.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJavaClass.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeContinuation.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
IdFunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
FunctionObject.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Performs conversions on argument types if needed and invokes the underlying Java method or constructor. |
|
java.lang.Object |
Function.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Call the function. |
|
java.lang.Object |
Delegator.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
Callable.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Perform the call. |
|
java.lang.Object |
BoundFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] extraArgs)
|
|
java.lang.Object |
BaseFunction.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Should be overridden. |
|
java.lang.Object |
Context.callFunctionWithContinuations(Callable function,
Scriptable scope,
java.lang.Object[] args)
Call function that may pause execution by capturing a continuation. |
|
static java.lang.Object |
JavaAdapter.callMethod(ContextFactory factory,
Scriptable thisObj,
Function f,
java.lang.Object[] args,
long argsToWrap)
Utility method which dynamically binds a Context to the current thread, if none already exists. |
|
static java.lang.Object |
ScriptableObject.callMethod(Context cx,
Scriptable obj,
java.lang.String methodName,
java.lang.Object[] args)
Call a method of an object. |
|
static java.lang.Object |
ScriptableObject.callMethod(Scriptable obj,
java.lang.String methodName,
java.lang.Object[] args)
Call a method of an object. |
|
static Ref |
ScriptRuntime.callRef(Callable function,
Scriptable thisObj,
java.lang.Object[] args,
Context cx)
Perform function call in reference context. |
|
static java.lang.Object |
ScriptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
java.lang.String filename,
int lineNumber)
|
|
java.lang.Object |
SecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.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. |
|
java.lang.Object |
PolicySecurityController.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
Function |
Context.compileFunction(Scriptable scope,
java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Compile a JavaScript function. |
|
Script |
Context.compileReader(Scriptable scope,
java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Deprecated. |
|
Scriptable |
NativeJavaTopPackage.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
|
Scriptable |
NativeJavaClass.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
|
Scriptable |
NativeContinuation.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
|
Scriptable |
Function.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Call the function as a constructor. |
|
Scriptable |
Delegator.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
Note that if the delegee is null,
this method creates a new instance of the Delegator itself
rathert than forwarding the call to the
delegee. |
|
Scriptable |
BoundFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] extraArgs)
|
|
Scriptable |
BaseFunction.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
|
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope)
Deprecated. Use ScriptRuntime.constructError(String,String)
instead. |
|
static EcmaError |
NativeGlobal.constructError(Context cx,
java.lang.String error,
java.lang.String message,
Scriptable scope,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource)
Deprecated. Use ScriptRuntime.constructError(String,String,String,int,String,int)
instead. |
|
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
java.lang.Class<?> desired)
Deprecated. Use FunctionObject.getTypeTag(Class)
and FunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion. |
|
static java.lang.Object |
FunctionObject.convertArg(Context cx,
Scriptable scope,
java.lang.Object arg,
int typeTag)
|
|
static Scriptable |
JavaAdapter.createAdapterWrapper(Scriptable obj,
java.lang.Object adapter)
|
|
static Scriptable |
ScriptRuntime.createFunctionActivation(NativeFunction funObj,
Scriptable scope,
java.lang.Object[] args)
|
|
Function |
Interpreter.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
|
|
Function |
Evaluator.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
Create a function object. |
|
Scriptable |
IdFunctionObject.createObject(Context cx,
Scriptable scope)
|
|
Scriptable |
FunctionObject.createObject(Context cx,
Scriptable scope)
Return new Scriptable instance using the default
constructor for the class of the underlying Java method. |
|
Scriptable |
BaseFunction.createObject(Context cx,
Scriptable scope)
Creates new script object. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz)
Defines JavaScript objects from a Java class that implements Scriptable. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz,
boolean sealed)
Defines JavaScript objects from a Java class, optionally allowing sealing. |
|
static
|
ScriptableObject.defineClass(Scriptable scope,
java.lang.Class<T> clazz,
boolean sealed,
boolean mapInheritance)
Defines JavaScript objects from a Java class, optionally allowing sealing and mapping of Java inheritance to JavaScript prototype-based inheritance. |
|
void |
ScriptableObject.defineConst(java.lang.String name,
Scriptable start)
|
|
void |
ConstProperties.defineConst(java.lang.String name,
Scriptable start)
Reserves a definition spot for a const. |
|
static void |
ScriptableObject.defineConstProperty(Scriptable destination,
java.lang.String propertyName)
Utility method to add properties to arbitrary Scriptable object. |
|
static void |
ScriptableObject.defineProperty(Scriptable destination,
java.lang.String propertyName,
java.lang.Object value,
int attributes)
Utility method to add properties to arbitrary Scriptable object. |
|
static boolean |
ScriptRuntime.deleteObjectElem(Scriptable target,
java.lang.Object elem,
Context cx)
|
|
static boolean |
ScriptableObject.deleteProperty(Scriptable obj,
int index)
Removes the property from an object or its prototype chain. |
|
static boolean |
ScriptableObject.deleteProperty(Scriptable obj,
java.lang.String name)
Removes the property from an object or its prototype chain. |
|
static java.lang.Object |
ScriptRuntime.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
protected java.lang.Object |
ContextFactory.doTopCall(Callable callable,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Execute top call to script or function. |
|
static void |
ScriptRuntime.enterActivationFunction(Context cx,
Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.enterDotQuery(java.lang.Object value,
Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.enterWith(java.lang.Object obj,
Context cx,
Scriptable scope)
|
|
static java.lang.Object |
ScriptRuntime.evalSpecial(Context cx,
Scriptable scope,
java.lang.Object thisArg,
java.lang.Object[] args,
java.lang.String filename,
int lineNumber)
The eval function property of the global object. |
|
java.lang.Object |
Context.evaluateReader(Scriptable scope,
java.io.Reader in,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Evaluate a reader as JavaScript source. |
|
java.lang.Object |
Context.evaluateString(Scriptable scope,
java.lang.String source,
java.lang.String sourceName,
int lineno,
java.lang.Object securityDomain)
Evaluate a JavaScript source string. |
|
java.lang.Object |
Script.exec(Context cx,
Scriptable scope)
Execute the script. |
|
java.lang.Object |
NativeWith.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJSON.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeJavaTopPackage.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeIterator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeGlobal.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeGenerator.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeContinuation.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
NativeArray.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
JavaAdapter.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
ImporterTopLevel.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
IdScriptableObject.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned. |
|
java.lang.Object |
IdFunctionCall.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned |
|
java.lang.Object |
BaseFunction.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
|
java.lang.Object |
Context.executeScriptWithContinuations(Script script,
Scriptable scope)
Execute script that may pause execution by capturing a continuation. |
|
java.lang.Object |
SecurityController.execWithDomain(Context cx,
Scriptable scope,
Script script,
java.lang.Object securityDomain)
Deprecated. 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,
java.lang.String target,
java.lang.String separator,
Scriptable re,
int[] ip,
int[] matchlen,
boolean[] matched,
java.lang.String[][] parensp)
|
|
java.lang.Object |
ScriptableObject.get(int index,
Scriptable start)
Returns the value of the indexed property or NOT_FOUND. |
|
java.lang.Object |
Scriptable.get(int index,
Scriptable start)
Get a property from the object selected by an integral index. |
|
java.lang.Object |
NativeWith.get(int index,
Scriptable start)
|
|
java.lang.Object |
NativeJavaPackage.get(int index,
Scriptable start)
|
|
java.lang.Object |
NativeJavaObject.get(int index,
Scriptable start)
|
|
java.lang.Object |
NativeJavaArray.get(int index,
Scriptable start)
|
|
java.lang.Object |
NativeArray.get(int index,
Scriptable start)
|
|
java.lang.Object |
Delegator.get(int index,
Scriptable start)
|
|
static ClassCache |
ClassCache.get(Scriptable scope)
Search for ClassCache object in the given scope. |
|
java.lang.Object |
ScriptableObject.get(java.lang.String name,
Scriptable start)
Returns the value of the named property or NOT_FOUND. |
|
java.lang.Object |
Scriptable.get(java.lang.String name,
Scriptable start)
Get a named property from the object. |
|
java.lang.Object |
NativeWith.get(java.lang.String id,
Scriptable start)
|
|
java.lang.Object |
NativeJavaPackage.get(java.lang.String id,
Scriptable start)
|
|
java.lang.Object |
NativeJavaObject.get(java.lang.String name,
Scriptable start)
|
|
java.lang.Object |
NativeJavaClass.get(java.lang.String name,
Scriptable start)
|
|
java.lang.Object |
NativeJavaArray.get(java.lang.String id,
Scriptable start)
|
|
java.lang.Object |
ImporterTopLevel.get(java.lang.String name,
Scriptable start)
|
|
java.lang.Object |
IdScriptableObject.get(java.lang.String name,
Scriptable start)
|
|
java.lang.Object |
Delegator.get(java.lang.String name,
Scriptable start)
|
|
static java.lang.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(java.lang.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,
java.lang.String className)
Get the prototype for the named class. |
|
static java.lang.Object |
ScriptableObject.getDefaultValue(Scriptable object,
java.lang.Class<?> typeHint)
|
|
java.lang.Object[] |
Context.getElements(Scriptable object)
Get the elements of a JavaScript array. |
|
static Function |
JavaAdapter.getFunction(Scriptable obj,
java.lang.String functionName)
|
|
static Scriptable |
ScriptableObject.getFunctionPrototype(Scriptable scope)
Get the Function.prototype property. |
|
java.util.Iterator<?> |
VMBridge.getJavaIterator(Context cx,
Scriptable scope,
java.lang.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(java.lang.String name,
Context cx,
Scriptable scope)
Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. |
|
static java.lang.Object |
ScriptRuntime.getObjectElem(java.lang.Object obj,
java.lang.Object elem,
Context cx,
Scriptable scope)
Call obj.[[Get]](id) |
|
static java.lang.Object |
ScriptRuntime.getObjectElem(Scriptable obj,
java.lang.Object elem,
Context cx)
|
|
static java.lang.Object |
ScriptRuntime.getObjectIndex(Scriptable obj,
int index,
Context cx)
|
|
static java.lang.Object |
ScriptRuntime.getObjectProp(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope)
|
|
static java.lang.Object |
ScriptRuntime.getObjectProp(Scriptable obj,
java.lang.String property,
Context cx)
|
|
static Scriptable |
ScriptableObject.getObjectPrototype(Scriptable scope)
Get the Object.prototype property. |
|
static java.lang.Object |
ScriptableObject.getProperty(Scriptable obj,
int index)
Gets an indexed property from an object or any object in its prototype chain. |
|
static java.lang.Object |
ScriptableObject.getProperty(Scriptable obj,
java.lang.String name)
Gets a named property from an object or any object in its prototype chain. |
|
static java.lang.Object[] |
ScriptableObject.getPropertyIds(Scriptable obj)
Returns an array of all ids from an object and its prototypes. |
|
static Callable |
ScriptRuntime.getPropFunctionAndThis(java.lang.Object obj,
java.lang.String property,
Context cx,
Scriptable scope)
Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. |
|
static java.lang.Object |
NativeIterator.getStopIterationObject(Scriptable scope)
Get the value of the "StopIteration" object. |
|
static java.lang.Object |
ScriptRuntime.getTopLevelProp(Scriptable scope,
java.lang.String id)
|
|
static Scriptable |
ScriptableObject.getTopLevelScope(Scriptable obj)
Get the global scope. |
|
static java.lang.Object |
ScriptableObject.getTopScopeValue(Scriptable scope,
java.lang.Object key)
Get arbitrary application-specific value associated with the top scope of the given scope. |
|
static
|
ScriptableObject.getTypedProperty(Scriptable s,
int index,
java.lang.Class<T> type)
Gets an indexed property from an object or any object in its prototype chain and coerces it to the requested Java type. |
|
static
|
ScriptableObject.getTypedProperty(Scriptable s,
java.lang.String name,
java.lang.Class<T> type)
Gets a named property from an object or any object in its prototype chain and coerces it to the requested Java type. |
|
boolean |
ScriptableObject.has(int index,
Scriptable start)
Returns true if the property index is defined. |
|
boolean |
Scriptable.has(int index,
Scriptable start)
Indicates whether or not an indexed property is defined in an object. |
|
boolean |
NativeWith.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaPackage.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaObject.has(int index,
Scriptable start)
|
|
boolean |
NativeJavaArray.has(int index,
Scriptable start)
|
|
boolean |
NativeArray.has(int index,
Scriptable start)
|
|
boolean |
Delegator.has(int index,
Scriptable start)
|
|
boolean |
ScriptableObject.has(java.lang.String name,
Scriptable start)
Returns true if the named property is defined. |
|
boolean |
Scriptable.has(java.lang.String name,
Scriptable start)
Indicates whether or not a named property is defined in an object. |
|
boolean |
NativeWith.has(java.lang.String id,
Scriptable start)
|
|
boolean |
NativeJavaPackage.has(java.lang.String id,
Scriptable start)
|
|
boolean |
NativeJavaObject.has(java.lang.String name,
Scriptable start)
|
|
boolean |
NativeJavaClass.has(java.lang.String name,
Scriptable start)
|
|
boolean |
NativeJavaArray.has(java.lang.String id,
Scriptable start)
|
|
boolean |
ImporterTopLevel.has(java.lang.String name,
Scriptable start)
|
|
boolean |
IdScriptableObject.has(java.lang.String name,
Scriptable start)
|
|
boolean |
Delegator.has(java.lang.String name,
Scriptable start)
|
|
boolean |
ScriptableObject.hasInstance(Scriptable instance)
Implements the instanceof operator. |
|
boolean |
Scriptable.hasInstance(Scriptable instance)
The instanceof operator. |
|
boolean |
NativeWith.hasInstance(Scriptable value)
|
|
boolean |
NativeJavaObject.hasInstance(Scriptable value)
|
|
boolean |
NativeJavaClass.hasInstance(Scriptable value)
Determines if prototype is a wrapped Java object and performs a Java "instanceof". |
|
boolean |
NativeJavaArray.hasInstance(Scriptable value)
|
|
boolean |
Delegator.hasInstance(Scriptable instance)
|
|
boolean |
BoundFunction.hasInstance(Scriptable instance)
|
|
boolean |
BaseFunction.hasInstance(Scriptable instance)
Implements the instanceof operator for JavaScript Function objects. |
|
static boolean |
ScriptRuntime.hasObjectElem(Scriptable target,
java.lang.Object elem,
Context cx)
|
|
static boolean |
ScriptableObject.hasProperty(Scriptable obj,
int index)
Returns whether an indexed property is defined in an object or any object in its prototype chain. |
|
static boolean |
ScriptableObject.hasProperty(Scriptable obj,
java.lang.String name)
Returns whether a named property is defined in an object or any object in its prototype chain. |
|
void |
ImporterTopLevel.importPackage(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Deprecated. Kept only for compatibility. |
|
static void |
NativeJavaTopPackage.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
NativeGlobal.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
NativeContinuation.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
JavaAdapter.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
ImporterTopLevel.init(Context cx,
Scriptable scope,
boolean sealed)
|
|
static void |
ScriptRuntime.initFunction(Context cx,
Scriptable scope,
NativeFunction function,
int type,
boolean fromEvalCode)
|
|
void |
IdFunctionObject.initFunction(java.lang.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)
|
|
java.lang.Object |
InterfaceAdapter.invoke(ContextFactory cf,
java.lang.Object target,
Scriptable topScope,
java.lang.Object thisObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
boolean |
RegExpProxy.isRegExp(Scriptable obj)
|
|
static java.lang.Object |
Context.javaToJS(java.lang.Object value,
Scriptable scope)
Convenient method to convert java value to its closest representation in JavaScript. |
|
java.lang.Object |
RegExpProxy.js_split(Context _cx,
Scriptable _scope,
java.lang.String thisString,
java.lang.Object[] _args)
|
|
static boolean |
ScriptRuntime.jsDelegatesTo(Scriptable lhs,
Scriptable rhs)
Delegates to |
|
static Scriptable |
ScriptRuntime.leaveDotQuery(Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.leaveWith(Scriptable scope)
|
|
void |
IdFunctionObject.markAsConstructor(Scriptable prototypeProperty)
|
|
static java.lang.Object |
ScriptRuntime.name(Context cx,
Scriptable scope,
java.lang.String name)
Looks up a name in the scope chain and returns its value. |
|
static java.lang.Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
java.lang.String id,
Context cx,
int incrDecrMask)
|
|
static java.lang.Object |
ScriptRuntime.nameIncrDecr(Scriptable scopeChain,
java.lang.String id,
int incrDecrMask)
Deprecated. The method is only present for compatibility. |
|
static Ref |
ScriptRuntime.nameRef(java.lang.Object name,
Context cx,
Scriptable scope,
int memberTypeFlags)
|
|
static Ref |
ScriptRuntime.nameRef(java.lang.Object namespace,
java.lang.Object name,
Context cx,
Scriptable scope,
int memberTypeFlags)
|
|
Scriptable |
Context.newArray(Scriptable scope,
int length)
Create an array with a specified initial length. |
|
Scriptable |
Context.newArray(Scriptable scope,
java.lang.Object[] elements)
Create an array with a set of initial elements. |
|
static Scriptable |
ScriptRuntime.newArrayLiteral(java.lang.Object[] objects,
int[] skipIndices,
Context cx,
Scriptable scope)
|
|
static Scriptable |
ScriptRuntime.newBuiltinObject(Context cx,
Scriptable scope,
TopLevel.Builtins type,
java.lang.Object[] args)
|
|
static Scriptable |
ScriptRuntime.newCatchScope(java.lang.Throwable t,
Scriptable lastCatchScope,
java.lang.String exceptionName,
Context cx,
Scriptable scope)
|
|
protected java.lang.Object |
VMBridge.newInterfaceProxy(java.lang.Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
java.lang.Object target,
Scriptable topScope)
Create proxy object for InterfaceAdapter. |
|
static Scriptable |
ScriptRuntime.newObject(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args)
|
|
static Scriptable |
ScriptRuntime.newObject(java.lang.Object fun,
Context cx,
Scriptable scope,
java.lang.Object[] args)
Operator new. |
|
Scriptable |
Context.newObject(Scriptable scope)
Create a new JavaScript object. |
|
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName)
Create a new JavaScript object by executing the named constructor. |
|
Scriptable |
Context.newObject(Scriptable scope,
java.lang.String constructorName,
java.lang.Object[] args)
Creates a new JavaScript object by executing the named constructor. |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
Context cx,
Scriptable scope)
Deprecated. This method only present for compatibility. |
|
static Scriptable |
ScriptRuntime.newObjectLiteral(java.lang.Object[] propertyIds,
java.lang.Object[] propertyValues,
int[] getterSetters,
Context cx,
Scriptable scope)
|
|
static java.lang.Object |
ScriptRuntime.newSpecial(Context cx,
java.lang.Object fun,
java.lang.Object[] args,
Scriptable scope,
int callType)
|
|
static java.lang.RuntimeException |
ScriptRuntime.notFoundError(Scriptable object,
java.lang.String property)
|
|
static java.lang.Object |
NativeJSON.parse(Context cx,
Scriptable scope,
java.lang.String jtext,
Callable reviver)
|
|
void |
ScriptableObject.put(int index,
Scriptable start,
java.lang.Object value)
Sets the value of the indexed property, creating it if need be. |
|
void |
Scriptable.put(int index,
Scriptable start,
java.lang.Object value)
Sets an indexed property in this object. |
|
void |
NativeWith.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaPackage.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaObject.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaArray.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeArray.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
Delegator.put(int index,
Scriptable start,
java.lang.Object value)
|
|
void |
ScriptableObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
Sets the value of the named property, creating it if need be. |
|
void |
Scriptable.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
Sets a named property in this object. |
|
void |
NativeWith.put(java.lang.String id,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaPackage.put(java.lang.String id,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaClass.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeJavaArray.put(java.lang.String id,
Scriptable start,
java.lang.Object value)
|
|
void |
NativeArray.put(java.lang.String id,
Scriptable start,
java.lang.Object value)
|
|
void |
IdScriptableObject.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
|
|
void |
Delegator.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
|
|
void |
ScriptableObject.putConst(java.lang.String name,
Scriptable start,
java.lang.Object value)
Sets the value of the named const property, creating it if need be. |
|
void |
ConstProperties.putConst(java.lang.String name,
Scriptable start,
java.lang.Object value)
Sets a named const property in this object. |
|
static void |
ScriptableObject.putConstProperty(Scriptable obj,
java.lang.String name,
java.lang.Object value)
Puts a named property in an object or in an object in its prototype chain. |
|
static void |
ScriptableObject.putProperty(Scriptable obj,
int index,
java.lang.Object value)
Puts an indexed property in an object or in an object in its prototype chain. |
|
static void |
ScriptableObject.putProperty(Scriptable obj,
java.lang.String name,
java.lang.Object value)
Puts a named property in an object or in an object in its prototype chain. |
|
static java.lang.Object |
JavaAdapter.readAdapterObject(Scriptable self,
java.io.ObjectInputStream in)
|
|
static void |
ScriptableObject.redefineProperty(Scriptable obj,
java.lang.String name,
boolean isConst)
If hasProperty(obj, name) would return true, then if the property that was found is compatible with the new property, this method just returns. |
|
Ref |
RefCallable.refCall(Context cx,
Scriptable thisObj,
java.lang.Object[] args)
Perform function call in reference context. |
|
static java.lang.Object |
Interpreter.restartContinuation(NativeContinuation c,
Context cx,
Scriptable scope,
java.lang.Object[] args)
|
|
java.lang.Object |
Context.resumeContinuation(java.lang.Object continuation,
Scriptable scope,
java.lang.Object functionResult)
Restarts execution of the JavaScript suspended at the call to Context.captureContinuation(). |
|
java.lang.Object |
NativeFunction.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object state,
java.lang.Object value)
Resume execution of a suspended generator. |
|
static java.lang.Object |
Interpreter.resumeGenerator(Context cx,
Scriptable scope,
int operation,
java.lang.Object savedState,
java.lang.Object value)
|
|
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(java.lang.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 java.lang.Object |
ScriptRuntime.setConst(Scriptable bound,
java.lang.Object value,
Context cx,
java.lang.String id)
|
|
void |
Delegator.setDelegee(Scriptable obj)
Set the delegee. |
|
static void |
ScriptRuntime.setFunctionProtoAndParent(BaseFunction fn,
Scriptable scope)
|
|
static java.lang.Object |
ScriptRuntime.setName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id)
|
|
static java.lang.Object |
ScriptRuntime.setObjectElem(Scriptable obj,
java.lang.Object elem,
java.lang.Object value,
Context cx)
|
|
static java.lang.Object |
ScriptRuntime.setObjectIndex(Scriptable obj,
int index,
java.lang.Object value,
Context cx)
|
|
static java.lang.Object |
ScriptRuntime.setObjectProp(Scriptable obj,
java.lang.String property,
java.lang.Object value,
Context cx)
|
|
static void |
ScriptRuntime.setObjectProtoAndParent(ScriptableObject object,
Scriptable scope)
|
|
void |
ScriptableObject.setParentScope(Scriptable m)
Sets the parent (enclosing) scope of the object. |
|
void |
Scriptable.setParentScope(Scriptable parent)
Set the parent scope of the object. |
|
void |
NativeWith.setParentScope(Scriptable parent)
|
|
void |
NativeJavaObject.setParentScope(Scriptable m)
Sets the parent (enclosing) scope of the object. |
|
void |
Delegator.setParentScope(Scriptable parent)
|
|
void |
ScriptableObject.setPrototype(Scriptable m)
Sets the prototype of the object. |
|
void |
Scriptable.setPrototype(Scriptable prototype)
Set the prototype of the object. |
|
void |
NativeWith.setPrototype(Scriptable prototype)
|
|
void |
NativeJavaObject.setPrototype(Scriptable m)
Sets the prototype of the object. |
|
void |
Delegator.setPrototype(Scriptable prototype)
|
|
static java.lang.Object |
ScriptRuntime.strictSetName(Scriptable bound,
java.lang.Object value,
Context cx,
Scriptable scope,
java.lang.String id)
|
|
static java.lang.Object |
NativeJSON.stringify(Context cx,
Scriptable scope,
java.lang.Object value,
java.lang.Object replacer,
java.lang.Object space)
|
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
java.lang.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,
java.lang.Object val)
Convert the value to an object. |
|
static Scriptable |
ScriptRuntime.toObject(Context cx,
Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Context, Scriptable, Object) instead. |
|
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope)
Convert the value to an JavaScript object value. |
|
static Scriptable |
Context.toObject(java.lang.Object value,
Scriptable scope,
java.lang.Class<?> staticType)
Deprecated. |
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val)
|
|
static Scriptable |
ScriptRuntime.toObject(Scriptable scope,
java.lang.Object val,
java.lang.Class<?> staticClass)
Deprecated. Use ScriptRuntime.toObject(Scriptable, Object) instead. |
|
static Scriptable |
ScriptRuntime.toObjectOrNull(Context cx,
java.lang.Object obj,
Scriptable scope)
|
|
static java.lang.String |
ScriptRuntime.typeofName(Scriptable scope,
java.lang.String id)
The typeof operator that correctly handles the undefined case |
|
static java.lang.Object |
ScriptRuntime.updateDotQuery(boolean value,
Scriptable scope)
|
|
java.lang.Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
java.lang.Object obj,
java.lang.Class<?> staticType)
Wrap the object. |
|
static NativeJavaArray |
NativeJavaArray.wrap(Scriptable scope,
java.lang.Object array)
|
|
static java.lang.Object |
NativeJavaObject.wrap(Scriptable scope,
java.lang.Object obj,
java.lang.Class<?> staticType)
Deprecated. Use Context.getWrapFactory() together with calling WrapFactory.wrap(Context, Scriptable, Object, Class) |
|
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
java.lang.Object javaObject,
java.lang.Class<?> staticType)
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. |
|
static Scriptable |
ScriptRuntime.wrapException(java.lang.Throwable t,
Scriptable scope,
Context cx)
|
|
Scriptable |
WrapFactory.wrapJavaClass(Context cx,
Scriptable scope,
java.lang.Class javaClass)
Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. |
|
Scriptable |
WrapFactory.wrapNewObject(Context cx,
Scriptable scope,
java.lang.Object obj)
Wrap an object newly created by a constructor call. |
|
static Scriptable |
ScriptRuntime.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
|
Scriptable |
RegExpProxy.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
|
| Constructors in net.sourceforge.htmlunit.corejs.javascript with parameters of type Scriptable | |
|---|---|
BaseFunction(Scriptable scope,
Scriptable prototype)
|
|
BoundFunction(Context cx,
Scriptable scope,
Callable targetFunction,
Scriptable boundThis,
java.lang.Object[] boundArgs)
|
|
Delegator(Scriptable obj)
Create a new Delegator that forwards requests to a delegee Scriptable object. |
|
EcmaError(Scriptable nativeError,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource)
Deprecated. EcmaError error instances should not be constructed explicitly since they are generated by the engine. |
|
FunctionObject(java.lang.String name,
java.lang.reflect.Member methodOrConstructor,
Scriptable scope)
Create a JavaScript function object from a Java method. |
|
IdFunctionObject(IdFunctionCall idcall,
java.lang.Object tag,
int id,
java.lang.String name,
int arity,
Scriptable scope)
|
|
IdScriptableObject(Scriptable scope,
Scriptable prototype)
|
|
NativeGenerator(Scriptable scope,
NativeFunction function,
java.lang.Object savedState)
|
|
NativeJavaArray(Scriptable scope,
java.lang.Object array)
|
|
NativeJavaClass(Scriptable scope,
java.lang.Class<?> cl)
|
|
NativeJavaClass(Scriptable scope,
java.lang.Class<?> cl,
boolean isAdapter)
|
|
NativeJavaObject(Scriptable scope,
java.lang.Object javaObject,
java.lang.Class<?> staticType)
|
|
NativeJavaObject(Scriptable scope,
java.lang.Object javaObject,
java.lang.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,
java.lang.Object syncObject)
Create a new synchronized function from an existing one using an explicit object as synchronization object. |
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.commonjs.module |
|---|
| Classes in net.sourceforge.htmlunit.corejs.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 net.sourceforge.htmlunit.corejs.javascript.commonjs.module that return Scriptable | |
|---|---|
Scriptable |
Require.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
Require.requireMain(Context cx,
java.lang.String mainModuleId)
Calling this method establishes a module as being the main module of the program to which this require() instance belongs. |
| Methods in net.sourceforge.htmlunit.corejs.javascript.commonjs.module with parameters of type Scriptable | |
|---|---|
java.lang.Object |
Require.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
Scriptable |
Require.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Require |
RequireBuilder.createRequire(Context cx,
Scriptable globalScope)
Creates a new require() function. |
ModuleScript |
ModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI moduleUri,
java.net.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 net.sourceforge.htmlunit.corejs.javascript.commonjs.module with parameters of type Scriptable | |
|---|---|
ModuleScope(Scriptable prototype,
java.net.URI uri,
java.net.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 net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider |
|---|
| Methods in net.sourceforge.htmlunit.corejs.javascript.commonjs.module.provider with parameters of type Scriptable | |
|---|---|
ModuleScript |
SoftCachingModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI uri,
java.net.URI base,
Scriptable paths)
|
ModuleScript |
MultiModuleScriptProvider.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI uri,
java.net.URI base,
Scriptable paths)
|
ModuleScript |
CachingModuleScriptProviderBase.getModuleScript(Context cx,
java.lang.String moduleId,
java.net.URI moduleUri,
java.net.URI baseUri,
Scriptable paths)
|
ModuleSource |
ModuleSourceProviderBase.loadSource(java.lang.String moduleId,
Scriptable paths,
java.lang.Object validator)
|
ModuleSource |
ModuleSourceProvider.loadSource(java.lang.String moduleId,
Scriptable paths,
java.lang.Object validator)
Returns the script source of the requested module. |
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.debug |
|---|
| Methods in net.sourceforge.htmlunit.corejs.javascript.debug with parameters of type Scriptable | |
|---|---|
void |
DebugFrame.onEnter(Context cx,
Scriptable activation,
Scriptable thisObj,
java.lang.Object[] args)
Called when execution is ready to start bytecode interpretation for entered a particular function or script. |
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.jdk13 |
|---|
| Methods in net.sourceforge.htmlunit.corejs.javascript.jdk13 with parameters of type Scriptable | |
|---|---|
protected java.lang.Object |
VMBridge_jdk13.newInterfaceProxy(java.lang.Object proxyHelper,
ContextFactory cf,
InterfaceAdapter adapter,
java.lang.Object target,
Scriptable topScope)
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.jdk15 |
|---|
| Methods in net.sourceforge.htmlunit.corejs.javascript.jdk15 with parameters of type Scriptable | |
|---|---|
java.util.Iterator<?> |
VMBridge_jdk15.getJavaIterator(Context cx,
Scriptable scope,
java.lang.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 net.sourceforge.htmlunit.corejs.javascript.json |
|---|
| Constructors in net.sourceforge.htmlunit.corejs.javascript.json with parameters of type Scriptable | |
|---|---|
JsonParser(Context cx,
Scriptable scope)
|
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.optimizer |
|---|
| Fields in net.sourceforge.htmlunit.corejs.javascript.optimizer declared as Scriptable | |
|---|---|
Scriptable |
OptRuntime.GeneratorState.thisObj
|
| Methods in net.sourceforge.htmlunit.corejs.javascript.optimizer that return Scriptable | |
|---|---|
static Scriptable |
OptRuntime.createNativeGenerator(NativeFunction funObj,
Scriptable scope,
Scriptable thisObj,
int maxLocals,
int maxStack)
|
static Scriptable |
OptRuntime.newArrayLiteral(java.lang.Object[] objects,
java.lang.String encodedInts,
int skipCount,
Context cx,
Scriptable scope)
|
| Methods in net.sourceforge.htmlunit.corejs.javascript.optimizer with parameters of type Scriptable | |
|---|---|
static java.lang.Object |
OptRuntime.call0(Callable fun,
Scriptable thisObj,
Context cx,
Scriptable scope)
Implement ....() call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.call1(Callable fun,
Scriptable thisObj,
java.lang.Object arg0,
Context cx,
Scriptable scope)
Implement ....(arg) call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.call2(Callable fun,
Scriptable thisObj,
java.lang.Object arg0,
java.lang.Object arg1,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1) call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.callN(Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1, ...) call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.callName(java.lang.Object[] args,
java.lang.String name,
Context cx,
Scriptable scope)
Implement name(args) call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.callName0(java.lang.String name,
Context cx,
Scriptable scope)
Implement name() call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.callProp0(java.lang.Object value,
java.lang.String property,
Context cx,
Scriptable scope)
Implement x.property() call shrinking optimizer code. |
static java.lang.Object |
OptRuntime.callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
java.lang.String fileName,
int lineNumber)
|
Function |
Codegen.createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.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(java.lang.Object[] objects,
java.lang.String encodedInts,
int skipCount,
Context cx,
Scriptable scope)
|
static java.lang.Object |
OptRuntime.newObjectSpecial(Context cx,
java.lang.Object fun,
java.lang.Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType)
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.regexp |
|---|
| Classes in net.sourceforge.htmlunit.corejs.javascript.regexp that implement Scriptable | |
|---|---|
class |
NativeRegExp
This class implements the RegExp native object. |
| Methods in net.sourceforge.htmlunit.corejs.javascript.regexp that return Scriptable | |
|---|---|
Scriptable |
NativeRegExp.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
| Methods in net.sourceforge.htmlunit.corejs.javascript.regexp with parameters of type Scriptable | |
|---|---|
java.lang.Object |
RegExpImpl.action(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args,
int actionType)
|
java.lang.Object |
NativeRegExp.call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
Scriptable |
NativeRegExp.construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
|
java.lang.Object |
NativeRegExp.execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
int |
RegExpImpl.find_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.String separator,
Scriptable reObj,
int[] ip,
int[] matchlen,
boolean[] matched,
java.lang.String[][] parensp)
|
static void |
NativeRegExp.init(Context cx,
Scriptable scope,
boolean sealed)
|
boolean |
RegExpImpl.isRegExp(Scriptable obj)
|
java.lang.Object |
RegExpImpl.js_split(Context cx,
Scriptable scope,
java.lang.String target,
java.lang.Object[] args)
|
Scriptable |
RegExpImpl.wrapRegExp(Context cx,
Scriptable scope,
java.lang.Object compiled)
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.serialize |
|---|
| Constructors in net.sourceforge.htmlunit.corejs.javascript.serialize with parameters of type Scriptable | |
|---|---|
ScriptableInputStream(java.io.InputStream in,
Scriptable scope)
Create a ScriptableInputStream. |
|
ScriptableOutputStream(java.io.OutputStream out,
Scriptable scope)
ScriptableOutputStream constructor. |
|
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.tools.debugger |
|---|
| Methods in net.sourceforge.htmlunit.corejs.javascript.tools.debugger that return Scriptable | |
|---|---|
Scriptable |
ScopeProvider.getScope()
Returns the scope object to be used for script evaluation. |
| Methods in net.sourceforge.htmlunit.corejs.javascript.tools.debugger with parameters of type Scriptable | |
|---|---|
static Main |
Main.mainEmbedded(ContextFactory factory,
Scriptable scope,
java.lang.String title)
Entry point for embedded applications. |
void |
Dim.StackFrame.onEnter(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.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 net.sourceforge.htmlunit.corejs.javascript.tools.shell |
|---|
| Classes in net.sourceforge.htmlunit.corejs.javascript.tools.shell that implement Scriptable | |
|---|---|
class |
Environment
Environment, intended to be instantiated at global scope, provides a natural way to access System properties from JavaScript. |
class |
Global
This class provides for sharing functions across multiple threads. |
| Methods in net.sourceforge.htmlunit.corejs.javascript.tools.shell with parameters of type Scriptable | |
|---|---|
protected abstract void |
SecurityProxy.callProcessFileSecure(Context cx,
Scriptable scope,
java.lang.String filename)
|
protected void |
JavaPolicySecurity.callProcessFileSecure(Context cx,
Scriptable scope,
java.lang.String filename)
|
java.lang.Object |
JavaPolicySecurity.callWithDomain(java.lang.Object securityDomain,
Context cx,
Callable callable,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
|
static void |
Global.defineClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass. |
static java.lang.Object |
Global.deserialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
|
static java.lang.Object |
Global.doctest(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Example: doctest("js> function f() {\n > return 3;\n > }\njs> f();\n3\n"); returns 2 (since 2 tests were executed). |
static void |
Global.gc(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
|
java.lang.Object |
Environment.get(java.lang.String name,
Scriptable start)
|
static ShellConsole |
ShellConsole.getConsole(Scriptable scope,
java.nio.charset.Charset cs)
Provides a specialized ShellConsole to handle line editing,
history and completion. |
static java.io.InputStream |
ShellLine.getStream(Scriptable scope)
Deprecated. |
boolean |
Environment.has(java.lang.String name,
Scriptable start)
|
static void |
Global.help(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print a help message. |
static void |
Global.load(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a set of JavaScript source files. |
static void |
Global.loadClass(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Load and execute a script compiled to a class file. |
static java.lang.Object |
Global.print(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Print the string values of its arguments. |
static void |
Main.processFile(Context cx,
Scriptable scope,
java.lang.String filename)
|
static void |
Main.processFileNoThrow(Context cx,
Scriptable scope,
java.lang.String filename)
|
void |
Environment.put(java.lang.String name,
Scriptable start,
java.lang.Object value)
|
static void |
Global.quit(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Call embedding-specific quit action passing its argument as int32 exit code. |
static java.lang.Object |
Global.readFile(Context cx,
Scriptable thisObj,
java.lang.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 java.lang.Object |
Global.readUrl(Context cx,
Scriptable thisObj,
java.lang.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. |
static java.lang.Object |
Global.runCommand(Context cx,
Scriptable thisObj,
java.lang.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,
java.lang.String session,
java.lang.String sourceName,
int lineNumber)
|
static void |
Global.seal(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The seal function seals all supplied arguments. |
static void |
Global.serialize(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
|
static java.lang.Object |
Global.spawn(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The spawn function runs a given function or script in a different thread. |
static java.lang.Object |
Global.sync(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function. |
static java.lang.Object |
Global.toint32(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Convert the argument to int32 number. |
static double |
Global.version(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Get and set the language version. |
| Uses of Scriptable in net.sourceforge.htmlunit.corejs.javascript.xml |
|---|
| Classes in net.sourceforge.htmlunit.corejs.javascript.xml that implement Scriptable | |
|---|---|
class |
XMLObject
This Interface describes what all XML objects (XML, XMLList) should have in common. |
| Methods in net.sourceforge.htmlunit.corejs.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 net.sourceforge.htmlunit.corejs.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,
java.lang.Object namespace,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags)
|
abstract Ref |
XMLLib.nameRef(Context cx,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags)
|
| Constructors in net.sourceforge.htmlunit.corejs.javascript.xml with parameters of type Scriptable | |
|---|---|
XMLObject(Scriptable scope,
Scriptable prototype)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||