org.python.core

Class PyInstance

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
PyFinalizableInstance, PyJavaInstance

public class PyInstance
extends PyObject

A python class instance.
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class org.python.core.PyObject

PyObject.ConversionException

Field Summary

PyObject
__dict__
The namespace of this instance.
PyClass
instclass

Fields inherited from class org.python.core.PyObject

exposed_name

Constructor Summary

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

Method Summary

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__(args[] , 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
__div__(PyObject o)
Implements the __div__ method by looking it up in the instance's dictionary and calling it if it is found.
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
__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
__ge__(PyObject o)
PyObject
__getitem__(PyObject key)
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
__iter__()
PyObject
__iternext__()
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)
PyObject
__le__(PyObject o)
int
__len__()
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
__ne__(PyObject o)
PyObject
__neg__()
Implements the __neg__ method by looking it up in the instance's dictionary and calling it if it is found.
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
__rdiv__(PyObject o)
Implements the __rdiv__ 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.
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.
PyObject
fastGetClass()
int
hashCode()
PyObject
invoke(String name)
PyObject
invoke(String name, PyObject arg1)
PyObject
invoke(String name, PyObject arg1, PyObject arg2)
PyObject
invoke_ex(String name)
PyObject
invoke_ex(String name, PyObject arg1)
PyObject
invoke_ex(String name, PyObject arg1, PyObject arg2)
PyObject
invoke_ex(String name, PyObject[] args, String[] keywords)

Methods inherited from class org.python.core.PyObject

__abs__, __add__, __and__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __cmp__, __coerce__, __coerce_ex__, __complex__, __contains__, __delattr__, __delattr__, __delete__, __delitem__, __delitem__, __delslice__, __delslice__, __dir__, __div__, __divmod__, __eq__, __findattr__, __findattr__, __finditem__, __finditem__, __finditem__, __float__, __floordiv__, __ge__, __get__, __getattr__, __getattr__, __getitem__, __getitem__, __getnewargs__, __getslice__, __getslice__, __gt__, __hash__, __hex__, __iadd__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iter__, __iternext__, __itruediv__, __ixor__, __le__, __len__, __long__, __lshift__, __lt__, __mod__, __mul__, __ne__, __neg__, __nonzero__, __not__, __oct__, __or__, __pos__, __pow__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __reduce__, __repr__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __set__, __setattr__, __setattr__, __setitem__, __setitem__, __setitem__, __setslice__, __setslice__, __str__, __sub__, __tojava__, __truediv__, __unicode__, __xor__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _in, _is, _isnot, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _xor, asInt, asLong, asName, asString, asStringOrNull, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, getDict, getDoc, getType, hashCode, implementsDescrDelete, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isMappingType, isNumberType, isSequenceType, noAttributeError, readonlyAttributeError, safeRepr, setDict, setType, toString, typeSetup

Field Details

__dict__

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

instclass

public PyClass instclass

Constructor Details

PyInstance

public PyInstance()

PyInstance

public PyInstance(PyClass iclass)

PyInstance

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

Method Details

__abs__

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

__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.
Overrides:
__add__ in interface PyObject

__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.
Overrides:
__and__ in interface PyObject

__call__

public PyObject __call__(args[] ,
                         keywords[] )
Overrides:
__call__ in interface PyObject

__cmp__

public int __cmp__(PyObject other)
Overrides:
__cmp__ in interface PyObject

__coerce_ex__

public Object __coerce_ex__(PyObject o)
Overrides:
__coerce_ex__ in interface PyObject

__complex__

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

__contains__

public boolean __contains__(PyObject o)
Overrides:
__contains__ in interface PyObject

__delattr__

public void __delattr__(String name)
Overrides:
__delattr__ in interface PyObject

__delitem__

public void __delitem__(PyObject key)
Overrides:
__delitem__ in interface PyObject

__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.
Overrides:
__div__ in interface PyObject

__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.
Overrides:
__divmod__ in interface PyObject

__eq__

public PyObject __eq__(PyObject o)
Overrides:
__eq__ in interface PyObject

__findattr__

public PyObject __findattr__(String name)
Overrides:
__findattr__ in interface PyObject

__findattr__

public PyObject __findattr__(String name,
                             boolean stopAtJava)

__finditem__

public PyObject __finditem__(int key)
Overrides:
__finditem__ in interface PyObject

__finditem__

public PyObject __finditem__(PyObject key)
Overrides:
__finditem__ in interface PyObject

__float__

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

__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.
Overrides:
__floordiv__ in interface PyObject

__ge__

public PyObject __ge__(PyObject o)
Overrides:
__ge__ in interface PyObject

__getitem__

public PyObject __getitem__(PyObject key)
Overrides:
__getitem__ in interface PyObject

__gt__

public PyObject __gt__(PyObject o)
Overrides:
__gt__ in interface PyObject

__hex__

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

__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.
Overrides:
__iadd__ in interface PyObject

__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.
Overrides:
__iand__ in interface PyObject

__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.
Overrides:
__idiv__ in interface PyObject

__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.
Overrides:
__ifloordiv__ in interface PyObject

__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.
Overrides:
__ilshift__ in interface PyObject

__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.
Overrides:
__imod__ in interface PyObject

__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.
Overrides:
__imul__ in interface PyObject

__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.
Overrides:
__int__ in interface PyObject

__invert__

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

__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.
Overrides:
__ior__ in interface PyObject

__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.
Overrides:
__ipow__ in interface PyObject

__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.
Overrides:
__irshift__ in interface PyObject

__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.
Overrides:
__isub__ in interface PyObject

__iter__

public PyObject __iter__()
Overrides:
__iter__ in interface PyObject

__iternext__

public PyObject __iternext__()
Overrides:
__iternext__ in interface PyObject

__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.
Overrides:
__itruediv__ in interface PyObject

__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.
Overrides:
__ixor__ in interface PyObject

__jfindattr__

public PyObject __jfindattr__(String name)

__le__

public PyObject __le__(PyObject o)
Overrides:
__le__ in interface PyObject

__len__

public int __len__()
Overrides:
__len__ in interface PyObject

__long__

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

__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.
Overrides:
__lshift__ in interface PyObject

__lt__

public PyObject __lt__(PyObject o)
Overrides:
__lt__ in interface PyObject

__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.
Overrides:
__mod__ in interface PyObject

__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.
Overrides:
__mul__ in interface PyObject

__ne__

public PyObject __ne__(PyObject o)
Overrides:
__ne__ in interface PyObject

__neg__

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

__nonzero__

public boolean __nonzero__()
Overrides:
__nonzero__ in interface PyObject

__oct__

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

__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.
Overrides:
__or__ in interface PyObject

__pos__

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

__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.
Overrides:
__pow__ in interface PyObject

__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.
Overrides:
__radd__ in interface PyObject

__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.
Overrides:
__rand__ in interface PyObject

__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.
Overrides:
__rdiv__ in interface PyObject

__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.
Overrides:
__rdivmod__ in interface PyObject

__repr__

public PyString __repr__()
Overrides:
__repr__ in interface PyObject

__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.
Overrides:
__rfloordiv__ in interface PyObject

__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.
Overrides:
__rlshift__ in interface PyObject

__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.
Overrides:
__rmod__ in interface PyObject

__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.
Overrides:
__rmul__ in interface PyObject

__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.
Overrides:
__ror__ in interface PyObject

__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.
Overrides:
__rpow__ in interface PyObject

__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.
Overrides:
__rrshift__ in interface PyObject

__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.
Overrides:
__rshift__ in interface PyObject

__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.
Overrides:
__rsub__ in interface PyObject

__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.
Overrides:
__rtruediv__ in interface PyObject

__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.
Overrides:
__rxor__ in interface PyObject

__setattr__

public void __setattr__(String name,
                        PyObject value)
Overrides:
__setattr__ in interface PyObject

__setitem__

public void __setitem__(PyObject key,
                        PyObject value)
Overrides:
__setitem__ in interface PyObject

__str__

public PyString __str__()
Overrides:
__str__ in interface PyObject

__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.
Overrides:
__sub__ in interface PyObject

__tojava__

public Object __tojava__(Class c)
Overrides:
__tojava__ in interface PyObject

__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.
Overrides:
__truediv__ in interface PyObject

__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.
Overrides:
__xor__ in interface PyObject

fastGetClass

public PyObject fastGetClass()
Overrides:
fastGetClass in interface PyObject

hashCode

public int hashCode()
Overrides:
hashCode in interface PyObject

invoke

public PyObject invoke(String name)
Overrides:
invoke in interface PyObject

invoke

public PyObject invoke(String name,
                       PyObject arg1)
Overrides:
invoke in interface PyObject

invoke

public PyObject invoke(String name,
                       PyObject arg1,
                       PyObject arg2)
Overrides:
invoke in interface PyObject

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)

invoke_ex

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

Jython homepage