Skip to content

Struct jac::detail::CallableProtoBuilder

ClassList > jac > detail > CallableProtoBuilder

Inherits the following classes: jac::ProtoBuilder::Opaque, jac::ProtoBuilder::Callable

Public Types inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
typedef T OpaqueType

Public Static Attributes inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
JSClassID classId

Public Static Functions

Type Name
Value callFunction (ContextRef ctx, ValueWeak funcObj, ValueWeak thisVal, ValueVectorWeak args)

Public Static Functions inherited from jac::ProtoBuilder::Opaque

See jac::ProtoBuilder::Opaque

Type Name
void addMethodMember (ContextRef ctx, Object proto, std::string name, PropFlags flags=PropFlags::Default)
Add a property to the object prototype from a member function of the wrapped class.
void addPropMember (ContextRef ctx, Object proto, std::string name, PropFlags flags=PropFlags::Default)
Add a property to the object prototype from a member variable of the wrapped class.
Value callMember (ContextRef ctx, ValueWeak funcObj, ValueWeak thisVal, ValueVectorWeak argv)
Process a call to a member function of the wrapped class.
T * constructOpaque (ContextRef, ValueVectorWeak)
Construct a new Opaque object from javascript arguments.
void destroyOpaque (JSRuntime *, T * ptr) noexcept
Destroy the Opaque object.
T * getOpaque (ContextRef ctx, ValueWeak thisVal)
Get the Opaque object from an instance of the class.

Public Static Functions inherited from jac::ProtoBuilder::Callable

See jac::ProtoBuilder::Callable

Type Name
Value callConstructor (ContextRef, ValueWeak, ValueWeak, ValueVectorWeak)
Process a call to the wrapped class as a constructor.
Value callFunction (ContextRef, ValueWeak, ValueWeak, ValueVectorWeak)
Process a call to the wrapped class.

Public Static Functions Documentation

function callFunction

static inline Value jac::detail::CallableProtoBuilder::callFunction (
    ContextRef ctx,
    ValueWeak funcObj,
    ValueWeak thisVal,
    ValueVectorWeak args
) 


The documentation for this class was generated from the following file src/jac/machine/functionFactory.h