Struct ClassDefinition
Properties and callbacks that define a type of Object.
All fields other than the version field are optional. Any pointer may be null
.
struct ClassDefinition
;
Adapted from JSClassDefinition
in Apple's JavaScriptCore.
Fields
Name | Type | Description |
---|---|---|
attributes
|
ClassAttributes | A set of attributes. Combine multiple attributes with bitwise OR. |
deleteProperty
|
extern(C) void function(xs | |
destructor
|
extern(C) void function(void*) | |
finalize
|
extern(C) void function(xs | Invoked when an object is finalized (prepared for garbage collection). An Object may be finalized on any thread. |
getProperty
|
extern(C) void function(xs | Invoked when getting a property’s value. |
getPropertyNames
|
extern(C) void function(xs | |
hasProperty
|
extern(C) void function(xs | Invoked when determining whether an Object has a property. |
initialize
|
extern(C) void function(xs | Invoked when an object is first created. |
name
|
string | |
parentClass
|
JSClass | |
setProperty
|
extern(C) void function(xs | Invoked when setting a property’s value. |
staticFunctions
|
JSStaticFunction[] | Statically declared function properties on the class' prototype. |
staticValues
|
JSStaticValue[] | Statically declared value properties on the class' prototype. |
version_
|
int |