Top Description Methods
org.python.core

public Interface PyProxy


Common methods for all generated proxy classes. Proxy classes are created whenever a python class inherits from a java class. Instances of such a python class consists of two objects: All proxy classes implement this interface.

Method Summary

Modifier and TypeMethod and Description
public void
__initProxy__(Object[] args)

Initialize the proxy instance.

public PyObject
_getPyInstance()

Return the associated PyObject.

public PySystemState
_getPySystemState()

Return the associated system state.

public void
_setPyInstance(PyObject proxy)

Associate a PyObject with this proxy instance.

public void
_setPySystemState(PySystemState ss)

Associate an system state with this proxy instance.

Method Detail

__initProxy__back to summary
public void __initProxy__(Object[] args)

Initialize the proxy instance. If the proxy is not initialized, this will call the python constructor with args.

In some situations is it necessary to call the __initProxy__ method from the java superclass ctor before the ctor makes call to methods that is overridden in python.

In most situation the __initProxy__ is called automatically by the jython runtime.

_getPyInstanceback to summary
public PyObject _getPyInstance()

Return the associated PyObject.

_getPySystemStateback to summary
public PySystemState _getPySystemState()

Return the associated system state.

_setPyInstanceback to summary
public void _setPyInstance(PyObject proxy)

Associate a PyObject with this proxy instance. This is done during construction and initialization of the proxy instance.

_setPySystemStateback to summary
public void _setPySystemState(PySystemState ss)

Associate an system state with this proxy instance. This is done during construction and initialization of the proxy instance.