Class IdScriptableObject

java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
All Implemented Interfaces:
Serializable, ConstProperties, DebuggableObject, IdFunctionCall, Scriptable, SymbolScriptable
Direct Known Subclasses:
BaseFunction, ES6Generator, ES6Iterator, NativeArray, NativeCall, NativeCallSite, NativeConsole, NativeContinuation, NativeGenerator, NativeIterator, NativeMap, NativeObject, NativeRegExp, NativeSet, NativeWeakMap, NativeWeakSet, TopLevel, XMLObject

public abstract class IdScriptableObject extends ScriptableObject implements IdFunctionCall
Base class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.

Any descendant should implement at least the following methods: findInstanceIdInfo getInstanceIdName execIdCall methodArity

To define non-function properties, the descendant should override getInstanceIdValue setInstanceIdValue to get/set property value and provide its default attributes.

To customize initialization of constructor and prototype objects, descendant may override scopeInit or fillConstructorProperties methods.

See Also: