org.python.core

Class PyInstance

public class PyInstance extends PyObject

A python class instance.
Field Summary
PyClassinstclass
PyObject__dict__
The namespace of this instance.
Constructor Summary
PyInstance(PyClass iclass, PyObject dict)
Returns a new
PyInstance(PyClass iclass)
PyInstance()
Method Summary
PyObjectfastGetClass()
inthashCode()
PyObjectinvoke(String name)
PyObjectinvoke(String name, PyObject arg1)
PyObjectinvoke(String name, PyObject arg1, PyObject arg2)
PyObjectinvoke_ex(String name, PyObject[] args, String[] keywords)
PyObjectinvoke_ex(String name)
PyObjectinvoke_ex(String name, PyObject arg1)
PyObjectinvoke_ex(String name, PyObject arg1, PyObject arg2)
PyObject__abs__()
Implements the __abs__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__add__(PyObject o)
Implements the __add__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__and__(PyObject o)
Implements the __and__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__call__(PyObject[] args, String[] keywords)
int__cmp__(PyObject other)
Object__coerce_ex__(PyObject o)
PyComplex__complex__()
Implements the __complex__ method by looking it up in the instance's dictionary and calling it if it is found.
boolean__contains__(PyObject o)
void__delattr__(String name)
void__delitem__(PyObject key)
PyObject__divmod__(PyObject o)
Implements the __divmod__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__div__(PyObject o)
Implements the __div__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__eq__(PyObject o)
PyObject__findattr__(String name)
PyObject__findattr__(String name, boolean stopAtJava)
PyObject__finditem__(int key)
PyObject__finditem__(PyObject key)
PyFloat__float__()
Implements the __float__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__floordiv__(PyObject o)
Implements the __floordiv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__getitem__(PyObject key)
PyObject__ge__(PyObject o)
PyObject__gt__(PyObject o)
PyString__hex__()
Implements the __hex__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__iadd__(PyObject o)
Implements the __iadd__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__iand__(PyObject o)
Implements the __iand__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__idiv__(PyObject o)
Implements the __idiv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ifloordiv__(PyObject o)
Implements the __ifloordiv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ilshift__(PyObject o)
Implements the __ilshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__imod__(PyObject o)
Implements the __imod__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__imul__(PyObject o)
Implements the __imul__ method by looking it up in the instance's dictionary and calling it if it is found.
void__init__(PyObject[] args, String[] keywords)
PyObject__int__()
Implements the __int__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__invert__()
Implements the __invert__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ior__(PyObject o)
Implements the __ior__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ipow__(PyObject o)
Implements the __ipow__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__irshift__(PyObject o)
Implements the __irshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__isub__(PyObject o)
Implements the __isub__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__iternext__()
PyObject__iter__()
PyObject__itruediv__(PyObject o)
Implements the __itruediv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ixor__(PyObject o)
Implements the __ixor__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__jfindattr__(String name)
int__len__()
PyObject__le__(PyObject o)
PyLong__long__()
Implements the __long__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__lshift__(PyObject o)
Implements the __lshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__lt__(PyObject o)
PyObject__mod__(PyObject o)
Implements the __mod__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__mul__(PyObject o)
Implements the __mul__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__neg__()
Implements the __neg__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ne__(PyObject o)
boolean__nonzero__()
PyString__oct__()
Implements the __oct__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__or__(PyObject o)
Implements the __or__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__pos__()
Implements the __pos__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__pow__(PyObject o)
Implements the __pow__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__radd__(PyObject o)
Implements the __radd__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rand__(PyObject o)
Implements the __rand__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rdivmod__(PyObject o)
Implements the __rdivmod__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rdiv__(PyObject o)
Implements the __rdiv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyString__repr__()
PyObject__rfloordiv__(PyObject o)
Implements the __rfloordiv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rlshift__(PyObject o)
Implements the __rlshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rmod__(PyObject o)
Implements the __rmod__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rmul__(PyObject o)
Implements the __rmul__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__ror__(PyObject o)
Implements the __ror__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rpow__(PyObject o)
Implements the __rpow__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rrshift__(PyObject o)
Implements the __rrshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rshift__(PyObject o)
Implements the __rshift__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rsub__(PyObject o)
Implements the __rsub__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rtruediv__(PyObject o)
Implements the __rtruediv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__rxor__(PyObject o)
Implements the __rxor__ method by looking it up in the instance's dictionary and calling it if it is found.
void__setattr__(String name, PyObject value)
void__setitem__(PyObject key, PyObject value)
PyString__str__()
PyObject__sub__(PyObject o)
Implements the __sub__ method by looking it up in the instance's dictionary and calling it if it is found.
Object__tojava__(Class c)
PyObject__truediv__(PyObject o)
Implements the __truediv__ method by looking it up in the instance's dictionary and calling it if it is found.
PyObject__xor__(PyObject o)
Implements the __xor__ method by looking it up in the instance's dictionary and calling it if it is found.

Field Detail

instclass

public transient PyClass instclass

__dict__

public PyObject __dict__
The namespace of this instance. Contains all instance attributes.

Constructor Detail

PyInstance

public PyInstance(PyClass iclass, PyObject dict)
Returns a new

PyInstance

public PyInstance(PyClass iclass)

PyInstance

public PyInstance()

Method Detail

fastGetClass

public PyObject fastGetClass()

hashCode

public int hashCode()

invoke

public PyObject invoke(String name)

invoke

public PyObject invoke(String name, PyObject arg1)

invoke

public PyObject invoke(String name, PyObject arg1, PyObject arg2)

invoke_ex

public PyObject invoke_ex(String name, PyObject[] args, String[] keywords)

invoke_ex

public PyObject invoke_ex(String name)

invoke_ex

public PyObject invoke_ex(String name, PyObject arg1)

invoke_ex

public PyObject invoke_ex(String name, PyObject arg1, PyObject arg2)

__abs__

public PyObject __abs__()
Implements the __abs__ method by looking it up in the instance's dictionary and calling it if it is found.

__add__

public PyObject __add__(PyObject o)
Implements the __add__ method by looking it up in the instance's dictionary and calling it if it is found.

__and__

public PyObject __and__(PyObject o)
Implements the __and__ method by looking it up in the instance's dictionary and calling it if it is found.

__call__

public PyObject __call__(PyObject[] args, String[] keywords)

__cmp__

public int __cmp__(PyObject other)

__coerce_ex__

public Object __coerce_ex__(PyObject o)

__complex__

public PyComplex __complex__()
Implements the __complex__ method by looking it up in the instance's dictionary and calling it if it is found.

__contains__

public boolean __contains__(PyObject o)

__delattr__

public void __delattr__(String name)

__delitem__

public void __delitem__(PyObject key)

__divmod__

public PyObject __divmod__(PyObject o)
Implements the __divmod__ method by looking it up in the instance's dictionary and calling it if it is found.

__div__

public PyObject __div__(PyObject o)
Implements the __div__ method by looking it up in the instance's dictionary and calling it if it is found.

__eq__

public PyObject __eq__(PyObject o)

__findattr__

public PyObject __findattr__(String name)

__findattr__

public PyObject __findattr__(String name, boolean stopAtJava)

__finditem__

public PyObject __finditem__(int key)

__finditem__

public PyObject __finditem__(PyObject key)

__float__

public PyFloat __float__()
Implements the __float__ method by looking it up in the instance's dictionary and calling it if it is found.

__floordiv__

public PyObject __floordiv__(PyObject o)
Implements the __floordiv__ method by looking it up in the instance's dictionary and calling it if it is found.

__getitem__

public PyObject __getitem__(PyObject key)

__ge__

public PyObject __ge__(PyObject o)

__gt__

public PyObject __gt__(PyObject o)

__hex__

public PyString __hex__()
Implements the __hex__ method by looking it up in the instance's dictionary and calling it if it is found.

__iadd__

public PyObject __iadd__(PyObject o)
Implements the __iadd__ method by looking it up in the instance's dictionary and calling it if it is found.

__iand__

public PyObject __iand__(PyObject o)
Implements the __iand__ method by looking it up in the instance's dictionary and calling it if it is found.

__idiv__

public PyObject __idiv__(PyObject o)
Implements the __idiv__ method by looking it up in the instance's dictionary and calling it if it is found.

__ifloordiv__

public PyObject __ifloordiv__(PyObject o)
Implements the __ifloordiv__ method by looking it up in the instance's dictionary and calling it if it is found.

__ilshift__

public PyObject __ilshift__(PyObject o)
Implements the __ilshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__imod__

public PyObject __imod__(PyObject o)
Implements the __imod__ method by looking it up in the instance's dictionary and calling it if it is found.

__imul__

public PyObject __imul__(PyObject o)
Implements the __imul__ method by looking it up in the instance's dictionary and calling it if it is found.

__init__

public void __init__(PyObject[] args, String[] keywords)

__int__

public PyObject __int__()
Implements the __int__ method by looking it up in the instance's dictionary and calling it if it is found.

__invert__

public PyObject __invert__()
Implements the __invert__ method by looking it up in the instance's dictionary and calling it if it is found.

__ior__

public PyObject __ior__(PyObject o)
Implements the __ior__ method by looking it up in the instance's dictionary and calling it if it is found.

__ipow__

public PyObject __ipow__(PyObject o)
Implements the __ipow__ method by looking it up in the instance's dictionary and calling it if it is found.

__irshift__

public PyObject __irshift__(PyObject o)
Implements the __irshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__isub__

public PyObject __isub__(PyObject o)
Implements the __isub__ method by looking it up in the instance's dictionary and calling it if it is found.

__iternext__

public PyObject __iternext__()

__iter__

public PyObject __iter__()

__itruediv__

public PyObject __itruediv__(PyObject o)
Implements the __itruediv__ method by looking it up in the instance's dictionary and calling it if it is found.

__ixor__

public PyObject __ixor__(PyObject o)
Implements the __ixor__ method by looking it up in the instance's dictionary and calling it if it is found.

__jfindattr__

public PyObject __jfindattr__(String name)

__len__

public int __len__()

__le__

public PyObject __le__(PyObject o)

__long__

public PyLong __long__()
Implements the __long__ method by looking it up in the instance's dictionary and calling it if it is found.

__lshift__

public PyObject __lshift__(PyObject o)
Implements the __lshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__lt__

public PyObject __lt__(PyObject o)

__mod__

public PyObject __mod__(PyObject o)
Implements the __mod__ method by looking it up in the instance's dictionary and calling it if it is found.

__mul__

public PyObject __mul__(PyObject o)
Implements the __mul__ method by looking it up in the instance's dictionary and calling it if it is found.

__neg__

public PyObject __neg__()
Implements the __neg__ method by looking it up in the instance's dictionary and calling it if it is found.

__ne__

public PyObject __ne__(PyObject o)

__nonzero__

public boolean __nonzero__()

__oct__

public PyString __oct__()
Implements the __oct__ method by looking it up in the instance's dictionary and calling it if it is found.

__or__

public PyObject __or__(PyObject o)
Implements the __or__ method by looking it up in the instance's dictionary and calling it if it is found.

__pos__

public PyObject __pos__()
Implements the __pos__ method by looking it up in the instance's dictionary and calling it if it is found.

__pow__

public PyObject __pow__(PyObject o)
Implements the __pow__ method by looking it up in the instance's dictionary and calling it if it is found.

__radd__

public PyObject __radd__(PyObject o)
Implements the __radd__ method by looking it up in the instance's dictionary and calling it if it is found.

__rand__

public PyObject __rand__(PyObject o)
Implements the __rand__ method by looking it up in the instance's dictionary and calling it if it is found.

__rdivmod__

public PyObject __rdivmod__(PyObject o)
Implements the __rdivmod__ method by looking it up in the instance's dictionary and calling it if it is found.

__rdiv__

public PyObject __rdiv__(PyObject o)
Implements the __rdiv__ method by looking it up in the instance's dictionary and calling it if it is found.

__repr__

public PyString __repr__()

__rfloordiv__

public PyObject __rfloordiv__(PyObject o)
Implements the __rfloordiv__ method by looking it up in the instance's dictionary and calling it if it is found.

__rlshift__

public PyObject __rlshift__(PyObject o)
Implements the __rlshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__rmod__

public PyObject __rmod__(PyObject o)
Implements the __rmod__ method by looking it up in the instance's dictionary and calling it if it is found.

__rmul__

public PyObject __rmul__(PyObject o)
Implements the __rmul__ method by looking it up in the instance's dictionary and calling it if it is found.

__ror__

public PyObject __ror__(PyObject o)
Implements the __ror__ method by looking it up in the instance's dictionary and calling it if it is found.

__rpow__

public PyObject __rpow__(PyObject o)
Implements the __rpow__ method by looking it up in the instance's dictionary and calling it if it is found.

__rrshift__

public PyObject __rrshift__(PyObject o)
Implements the __rrshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__rshift__

public PyObject __rshift__(PyObject o)
Implements the __rshift__ method by looking it up in the instance's dictionary and calling it if it is found.

__rsub__

public PyObject __rsub__(PyObject o)
Implements the __rsub__ method by looking it up in the instance's dictionary and calling it if it is found.

__rtruediv__

public PyObject __rtruediv__(PyObject o)
Implements the __rtruediv__ method by looking it up in the instance's dictionary and calling it if it is found.

__rxor__

public PyObject __rxor__(PyObject o)
Implements the __rxor__ method by looking it up in the instance's dictionary and calling it if it is found.

__setattr__

public void __setattr__(String name, PyObject value)

__setitem__

public void __setitem__(PyObject key, PyObject value)

__str__

public PyString __str__()

__sub__

public PyObject __sub__(PyObject o)
Implements the __sub__ method by looking it up in the instance's dictionary and calling it if it is found.

__tojava__

public Object __tojava__(Class c)

__truediv__

public PyObject __truediv__(PyObject o)
Implements the __truediv__ method by looking it up in the instance's dictionary and calling it if it is found.

__xor__

public PyObject __xor__(PyObject o)
Implements the __xor__ method by looking it up in the instance's dictionary and calling it if it is found.