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

NameTypeDescription
attributes ClassAttributesA set of attributes. Combine multiple attributes with bitwise OR.
deleteProperty extern(C) void function(xs.bindings.xsMachineRecord*)
destructor extern(C) void function(void*)
finalize extern(C) void function(xs.bindings.xsMachineRecord*)Invoked when an object is finalized (prepared for garbage collection). An Object may be finalized on any thread.
getProperty extern(C) void function(xs.bindings.xsMachineRecord*)Invoked when getting a property’s value.
getPropertyNames extern(C) void function(xs.bindings.xsMachineRecord*)
hasProperty extern(C) void function(xs.bindings.xsMachineRecord*)Invoked when determining whether an Object has a property.
initialize extern(C) void function(xs.bindings.xsMachineRecord*)Invoked when an object is first created.
name string
parentClass JSClass
setProperty extern(C) void function(xs.bindings.xsMachineRecord*)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