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>
|
| 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 |
|
This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from python lists to JS Array objects.
◆ PyListProxyHandler()
PyListProxyHandler::PyListProxyHandler |
( |
| ) |
|
◆ 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
-
gcx | pointer to JS::GCContext |
proxy | the 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 |
◆ family
const char PyListProxyHandler::family = 0 |
|
static |
The documentation for this struct was generated from the following files: