Метод | Описание | |
---|---|---|
ActivatePrototypeMap ( int maxPrototypeId ) : void | ||
DefineOwnProperty ( |
||
Delete ( string name ) : void | ||
ExecIdCall ( |
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned. 'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned. |
|
ExportAsJSClass ( int maxPrototypeId, Scriptable scope, bool @sealed ) : |
||
Get ( string name, Scriptable start ) : object | ||
GetAttributes ( string name ) : int | ||
Has ( string name, Scriptable start ) : bool | ||
HasPrototypeMap ( ) : bool | ||
IdScriptableObject ( ) : System | ||
IdScriptableObject ( Scriptable scope, Scriptable prototype ) : System | ||
InitPrototypeConstructor ( |
||
InitPrototypeMethod ( object tag, int id, string name, int arity ) : void | ||
InitPrototypeValue ( int id, string name, object value, int attributes ) : void | ||
Put ( string name, Scriptable start, object value ) : void | ||
SetAttributes ( string name, int attributes ) : void |
Метод | Описание | |
---|---|---|
AddIdFunctionProperty ( Scriptable obj, object tag, int id, string name, int arity ) : void | ||
DefaultGet ( string name ) : object | ||
DefaultPut ( string name, object value ) : void | ||
FillConstructorProperties ( |
||
FindInstanceIdInfo ( string name ) : int |
Map name to id of instance property. Map name to id of instance property. Should return 0 if not found or the result of |
|
FindPrototypeId ( string name ) : int | ||
GetInstanceIdName ( int id ) : string |
Map id back to property name it defines. Map id back to property name it defines. |
|
GetInstanceIdValue ( int id ) : object |
Get id value. Get id value. If id value is constant, descendant can call cacheIdValue to store value in the permanent cache. Default implementation creates IdFunctionObject instance for given id and cache its value |
|
GetMaxInstanceId ( ) : int |
Get maximum id findInstanceIdInfo can generate. Get maximum id findInstanceIdInfo can generate. |
|
GetOwnPropertyDescriptor ( |
||
IncompatibleCallError ( |
Utility method to construct type error to indicate incompatible call when converting script thisObj to a particular type is not possible. Utility method to construct type error to indicate incompatible call when converting script thisObj to a particular type is not possible. Possible usage would be to have a private function like realThis: private static NativeSomething realThis(Scriptable thisObj, IdFunctionObject f) { if (!(thisObj instanceof NativeSomething)) throw incompatibleCallError(f); return (NativeSomething)thisObj; }Note that although such function can be implemented universally via java.lang.Class.isInstance(), it would be much more slower. |
|
InitPrototypeId ( int id ) : void | ||
InstanceIdInfo ( int attributes, int id ) : int | ||
SetInstanceIdAttributes ( int id, int attr ) : void |
Update the attributes of the given instance property. Update the attributes of the given instance property. Classes which want to support changing property attributes via Object.defineProperty must override this method. The default implementation throws InternalError. |
|
SetInstanceIdValue ( int id, object value ) : void |
Set or delete id value. Set or delete id value. If value == NOT_FOUND , the implementation should make sure that the following getInstanceIdValue return NOT_FOUND. |
Метод | Описание | |
---|---|---|
GetBuiltInDescriptor ( string name ) : ScriptableObject | ||
GetIds ( bool getAll ) : object[] | ||
NewIdFunction ( object tag, int id, string name, int arity, Scriptable scope ) : |
||
ReadObject ( |
||
WriteObject ( |
public ActivatePrototypeMap ( int maxPrototypeId ) : void | ||
maxPrototypeId | int | |
Результат | void |
protected AddIdFunctionProperty ( Scriptable obj, object tag, int id, string name, int arity ) : void | ||
obj | Scriptable | |
tag | object | |
id | int | |
name | string | |
arity | int | |
Результат | void |
protected DefaultGet ( string name ) : object | ||
name | string | |
Результат | object |
protected DefaultPut ( string name, object value ) : void | ||
name | string | |
value | object | |
Результат | void |
public DefineOwnProperty ( |
||
cx | ||
key | object | |
desc | ScriptableObject | |
Результат | void |
public ExecIdCall ( |
||
f | ||
cx | ||
scope | Scriptable | |
thisObj | Scriptable | |
args | object | |
Результат | object |
public ExportAsJSClass ( int maxPrototypeId, Scriptable scope, bool @sealed ) : |
||
maxPrototypeId | int | |
scope | Scriptable | |
@sealed | bool | |
Результат |
protected FillConstructorProperties ( |
||
ctor | ||
Результат | void |
protected FindInstanceIdInfo ( string name ) : int | ||
name | string | |
Результат | int |
protected FindPrototypeId ( string name ) : int | ||
name | string | |
Результат | int |
public Get ( string name, Scriptable start ) : object | ||
name | string | |
start | Scriptable | |
Результат | object |
public GetAttributes ( string name ) : int | ||
name | string | |
Результат | int |
protected GetInstanceIdName ( int id ) : string | ||
id | int | |
Результат | string |
protected GetInstanceIdValue ( int id ) : object | ||
id | int | |
Результат | object |
protected GetOwnPropertyDescriptor ( |
||
cx | ||
id | object | |
Результат | ScriptableObject |
public Has ( string name, Scriptable start ) : bool | ||
name | string | |
start | Scriptable | |
Результат | bool |
public IdScriptableObject ( Scriptable scope, Scriptable prototype ) : System | ||
scope | Scriptable | |
prototype | Scriptable | |
Результат | System |
protected static IncompatibleCallError ( |
||
f | /// function that is attempting to convert 'this' /// object. /// | |
Результат |
public InitPrototypeConstructor ( |
||
f | ||
Результат | void |
protected InitPrototypeId ( int id ) : void | ||
id | int | |
Результат | void |
public InitPrototypeMethod ( object tag, int id, string name, int arity ) : void | ||
tag | object | |
id | int | |
name | string | |
arity | int | |
Результат | void |
public InitPrototypeValue ( int id, string name, object value, int attributes ) : void | ||
id | int | |
name | string | |
value | object | |
attributes | int | |
Результат | void |
protected static InstanceIdInfo ( int attributes, int id ) : int | ||
attributes | int | |
id | int | |
Результат | int |
public Put ( string name, Scriptable start, object value ) : void | ||
name | string | |
start | Scriptable | |
value | object | |
Результат | void |
public SetAttributes ( string name, int attributes ) : void | ||
name | string | |
attributes | int | |
Результат | void |
protected SetInstanceIdAttributes ( int id, int attr ) : void | ||
id | int | the instance property id |
attr | int | the new attribute bitset |
Результат | void |
protected SetInstanceIdValue ( int id, object value ) : void | ||
id | int | |
value | object | |
Результат | void |