PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
PyListProxyHandler.hh
Go to the documentation of this file.
1
11#ifndef PythonMonkey_PyListProxy_
12#define PythonMonkey_PyListProxy_
13
15
16
22public:
24 static const char family;
25
32 void finalize(JS::GCContext *gcx, JSObject *proxy) const override;
33
35 JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
36 JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> desc
37 ) const override;
38
39 bool defineProperty(
40 JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
41 JS::Handle<JS::PropertyDescriptor> desc, JS::ObjectOpResult &result
42 ) const override;
43
44 bool ownPropertyKeys(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props) const override;
45 bool delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::ObjectOpResult &result) const override;
46 bool isArray(JSContext *cx, JS::HandleObject proxy, JS::IsArrayAnswer *answer) const override;
47 bool getBuiltinClass(JSContext *cx, JS::HandleObject proxy, js::ESClass *cls) const override;
48};
49
50#endif
Structs for creating JS proxy objects.
base class for PyDictProxyHandler and PyListProxyHandler
Definition PyBaseProxyHandler.hh:24
This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from pyt...
Definition PyListProxyHandler.hh:21
bool ownPropertyKeys(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props) const override
Definition PyListProxyHandler.cc:2138
static const char family
Definition PyListProxyHandler.hh:24
bool delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::ObjectOpResult &result) const override
Definition PyListProxyHandler.cc:2154
void finalize(JS::GCContext *gcx, JSObject *proxy) const override
Handles python object reference count when JS Proxy object is finalized.
Definition PyListProxyHandler.cc:2092
bool getOwnPropertyDescriptor(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::MutableHandle< mozilla::Maybe< JS::PropertyDescriptor > > desc) const override
Definition PyListProxyHandler.cc:1995
bool isArray(JSContext *cx, JS::HandleObject proxy, JS::IsArrayAnswer *answer) const override
Definition PyListProxyHandler.cc:2168
bool getBuiltinClass(JSContext *cx, JS::HandleObject proxy, js::ESClass *cls) const override
Definition PyListProxyHandler.cc:2173
PyListProxyHandler()
Definition PyListProxyHandler.hh:23
bool defineProperty(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::Handle< JS::PropertyDescriptor > desc, JS::ObjectOpResult &result) const override
Definition PyListProxyHandler.cc:2102