PythonMonkey   v1.0.0 (dev)
Loading...
Searching...
No Matches
JSMethodProxyMethodDefinitions Struct Reference

This struct is a bundle of methods used by the JSMethodProxy type. More...

#include <JSMethodProxy.hh>

Static Public Member Functions

static void JSMethodProxy_dealloc (JSMethodProxy *self)
 Deallocation method (.tp_dealloc), removes the reference to the underlying JSFunction before freeing the JSMethodProxy.
 
static PyObject * JSMethodProxy_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
 New method (.tp_new), creates a new instance of the JSMethodProxy type, exposed as the new() method in python.
 
static PyObject * JSMethodProxy_call (PyObject *self, PyObject *args, PyObject *kwargs)
 Call method (.tp_call), called when the JSMethodProxy is called, properly handling self and this
 

Detailed Description

This struct is a bundle of methods used by the JSMethodProxy type.

Member Function Documentation

◆ JSMethodProxy_call()

PyObject * JSMethodProxyMethodDefinitions::JSMethodProxy_call ( PyObject *  self,
PyObject *  args,
PyObject *  kwargs 
)
static

Call method (.tp_call), called when the JSMethodProxy is called, properly handling self and this

Parameters
self- the JSMethodProxy being called
args- args to the method
kwargs- keyword args to the method
Returns
PyObject* - Result of the method call

◆ JSMethodProxy_dealloc()

void JSMethodProxyMethodDefinitions::JSMethodProxy_dealloc ( JSMethodProxy self)
static

Deallocation method (.tp_dealloc), removes the reference to the underlying JSFunction before freeing the JSMethodProxy.

Parameters
self- The JSMethodProxy to be free'd

◆ JSMethodProxy_new()

PyObject * JSMethodProxyMethodDefinitions::JSMethodProxy_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
)
static

New method (.tp_new), creates a new instance of the JSMethodProxy type, exposed as the new() method in python.

Parameters
type- The type of object to be created, will always be JSMethodProxyType or a derived type
args- arguments to the new() method, expected to be a JSFunctionProxy, and an object to bind self to
kwds- keyword arguments to the new() method, not used
Returns
PyObject* - A new instance of JSMethodProxy

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