javascriptcore.class_

Module for Class class

Types 3

A JSSClass represents a custom JavaScript class registered by the user in a #JSCContext. It allows to create new JavaScripts objects whose instances are created by the user using this API. It's possible to add constructors, properties and methods for a JSSClass by providing #GCallback<!-- -->s to implement them.

Methods
GType _gType() @property
Class self()Returns `this`, for use in `with` statements.
ClassGidBuilder builder()Get builder for [javascriptcore.class_.Class] Returns: New builder object
string name() @propertyGet `name` property. Returns: The name of the class.
javascriptcore.class_.Class parent() @propertyGet `parent` property. Returns: The parent class or null in case of final classes.
string getName()Get the class name of jsc_class Returns: the name of jsc_class
javascriptcore.class_.Class getParent()Get the parent class of jsc_class Returns: the parent class of jsc_class
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for javascriptcore.class_.Class

Methods
T context(javascriptcore.context.Context propval)Set `context` property. Params: propval = The #JSCContext in which the class was registered. Returns: Builder instance for fluent chaining
T name(string propval)Set `name` property. Params: propval = The name of the class. Returns: Builder instance for fluent chaining
T parent(javascriptcore.class_.Class propval)Set `parent` property. Params: propval = The parent class or null in case of final classes. Returns: Builder instance for fluent chaining

Fluent builder for javascriptcore.class_.Class

Methods
Class build()Create object from builder. Returns: New object