org.mozilla.javascript
public class BaseFunction extends IdScriptableObject implements Function
| Constructor Summary | |
|---|---|
| BaseFunction() | |
| BaseFunction(Scriptable scope, Scriptable prototype) | |
| Method Summary | |
|---|---|
| Object | call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
Should be overridden. |
| Scriptable | construct(Context cx, Scriptable scope, Object[] args) |
| Scriptable | createObject(Context cx, Scriptable scope)
Creates new script object.
|
| Object | execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) |
| protected void | fillConstructorProperties(IdFunctionObject ctor) |
| protected int | findInstanceIdInfo(String s) |
| protected int | findPrototypeId(String s) |
| int | getArity() |
| String | getClassName() |
| protected Scriptable | getClassPrototype() |
| String | getFunctionName() |
| protected String | getInstanceIdName(int id) |
| protected Object | getInstanceIdValue(int id) |
| int | getLength() |
| protected int | getMaxInstanceId() |
| boolean | hasInstance(Scriptable instance)
Implements the instanceof operator for JavaScript Function objects.
|
| protected void | initPrototypeId(int id) |
| void | setImmunePrototypeProperty(Object value)
Make value as DontEnum, DontDelete, ReadOnly
prototype property of this Function object |
| protected void | setInstanceIdValue(int id, Object value) |
foo = new Foo();
foo instanceof Foo; // true
Parameters: instance The value that appeared on the LHS of the instanceof operator
Returns: true if the "prototype" property of "this" appears in value's prototype chain