|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.PyInstance
org.python.core.PyJavaInstance
public class PyJavaInstance
A wrapper around a java instance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary |
---|
Fields inherited from class org.python.core.PyInstance |
---|
__dict__, instclass |
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
Constructor Summary | |
---|---|
PyJavaInstance()
|
|
PyJavaInstance(java.lang.Object proxy)
|
|
PyJavaInstance(PyJavaClass iclass)
|
Method Summary | |
---|---|
int |
__cmp__(PyObject o)
Equivalent to the standard Python __cmp__ method. |
void |
__delattr__(java.lang.String attr)
A variant of the __delattr__ method which accepts a String as the key. |
void |
__init__(PyObject[] args,
java.lang.String[] keywords)
|
PyObject |
_is(PyObject o)
Implements is operator. |
PyObject |
_isnot(PyObject o)
Implements is not operator. |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
Implementation of the Externalizable interface. |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the Externalizable interface. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PyJavaInstance()
public PyJavaInstance(PyJavaClass iclass)
public PyJavaInstance(java.lang.Object proxy)
Method Detail |
---|
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- the input stream.
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- the output stream.
java.io.IOException
public void __init__(PyObject[] args, java.lang.String[] keywords)
__init__
in class PyInstance
public int hashCode()
hashCode
in class PyInstance
public PyObject _is(PyObject o)
PyObject
is
operator.
_is
in class PyObject
o
- the object to compare this with.
public PyObject _isnot(PyObject o)
PyObject
is not
operator.
_isnot
in class PyObject
o
- the object to compare this with.
public int __cmp__(PyObject o)
PyObject
__cmp__
in class PyInstance
o
- the object to compare this with.
public void __delattr__(java.lang.String attr)
PyObject
__delattr__(PyString name)
with the appropriate args.
The only reason to override this method is for performance.
__delattr__
in class PyInstance
attr
- the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |