org.python.core
Interface PyProxy


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, both dynamically generated and statically generated by jythonc implements this interface.


Method Summary
 void __initProxy__(java.lang.Object[] args)
          Initialize the proxy instance.
 PyInstance _getPyInstance()
          Return the associated PyInstance instance.
 PySystemState _getPySystemState()
          Return the associated system state.
 void _setPyInstance(PyInstance proxy)
          Associate an PyInstance with this proxy instance.
 void _setPySystemState(PySystemState ss)
          Associate an system state with this proxy instance.
 

Method Detail

_setPyInstance

void _setPyInstance(PyInstance proxy)
Associate an PyInstance with this proxy instance. This is done during construction and initialization of the proxy instance.


_getPyInstance

PyInstance _getPyInstance()
Return the associated PyInstance instance.


_setPySystemState

void _setPySystemState(PySystemState ss)
Associate an system state with this proxy instance. This is done during construction and initialization of the proxy instance.


_getPySystemState

PySystemState _getPySystemState()
Return the associated system state.


__initProxy__

void __initProxy__(java.lang.Object[] args)
Initialize the proxy instance. If the proxy have not been initialized already, this call 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 overriden in python.

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



Jython homepage