PythonMonkey   v0.8.2 (dev)
Loading...
Searching...
No Matches
PyListProxyHandler Struct Reference

This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from python lists to JS Array objects. More...

#include <PyListProxyHandler.hh>

Inheritance diagram for PyListProxyHandler:
[legend]
Collaboration diagram for PyListProxyHandler:
[legend]

Public Member Functions

 PyListProxyHandler ()
 
void finalize (JS::GCContext *gcx, JSObject *proxy) const override
 Handles python object reference count when JS Proxy object is finalized.
 
bool getOwnPropertyDescriptor (JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::MutableHandle< mozilla::Maybe< JS::PropertyDescriptor > > desc) const override
 
bool defineProperty (JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::Handle< JS::PropertyDescriptor > desc, JS::ObjectOpResult &result) const override
 
bool ownPropertyKeys (JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props) const override
 
bool delete_ (JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::ObjectOpResult &result) const override
 
bool isArray (JSContext *cx, JS::HandleObject proxy, JS::IsArrayAnswer *answer) const override
 
bool getBuiltinClass (JSContext *cx, JS::HandleObject proxy, js::ESClass *cls) const override
 
- Public Member Functions inherited from PyBaseProxyHandler
 PyBaseProxyHandler (const void *family)
 
bool getPrototypeIfOrdinary (JSContext *cx, JS::HandleObject proxy, bool *isOrdinary, JS::MutableHandleObject protop) const override final
 
bool preventExtensions (JSContext *cx, JS::HandleObject proxy, JS::ObjectOpResult &result) const override final
 
bool isExtensible (JSContext *cx, JS::HandleObject proxy, bool *extensible) const override final
 

Static Public Attributes

static const char family = 0
 

Detailed Description

This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from python lists to JS Array objects.

Constructor & Destructor Documentation

◆ PyListProxyHandler()

PyListProxyHandler::PyListProxyHandler ( )

Member Function Documentation

◆ defineProperty()

bool PyListProxyHandler::defineProperty ( JSContext *  cx,
JS::HandleObject  proxy,
JS::HandleId  id,
JS::Handle< JS::PropertyDescriptor >  desc,
JS::ObjectOpResult &  result 
) const
override

◆ delete_()

bool PyListProxyHandler::delete_ ( JSContext *  cx,
JS::HandleObject  proxy,
JS::HandleId  id,
JS::ObjectOpResult &  result 
) const
override

◆ finalize()

void PyListProxyHandler::finalize ( JS::GCContext *  gcx,
JSObject *  proxy 
) const
override

Handles python object reference count when JS Proxy object is finalized.

Parameters
gcxpointer to JS::GCContext
proxythe proxy object being finalized

◆ getBuiltinClass()

bool PyListProxyHandler::getBuiltinClass ( JSContext *  cx,
JS::HandleObject  proxy,
js::ESClass *  cls 
) const
override

◆ getOwnPropertyDescriptor()

bool PyListProxyHandler::getOwnPropertyDescriptor ( JSContext *  cx,
JS::HandleObject  proxy,
JS::HandleId  id,
JS::MutableHandle< mozilla::Maybe< JS::PropertyDescriptor > >  desc 
) const
override

◆ isArray()

bool PyListProxyHandler::isArray ( JSContext *  cx,
JS::HandleObject  proxy,
JS::IsArrayAnswer *  answer 
) const
override

◆ ownPropertyKeys()

bool PyListProxyHandler::ownPropertyKeys ( JSContext *  cx,
JS::HandleObject  proxy,
JS::MutableHandleIdVector  props 
) const
override

Member Data Documentation

◆ family

const char PyListProxyHandler::family = 0
static

The documentation for this struct was generated from the following files: