|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.python.core.PyObject | +--org.python.core.PySequence | +--org.python.core.PyArray
A wrapper class around native java arrays. Instances of PyArray are created either by java functions or directly by the jarray module.
See also the jarray module.
Field Summary | |
static PyClass |
__class__
|
Constructor Summary | |
PyArray(java.lang.Class type,
int n)
|
|
PyArray(java.lang.Class type,
java.lang.Object data)
|
Method Summary | |
int |
__len__()
Equivalent to the standard Python __len__ method. |
PyString |
__repr__()
Equivalent to the standard Python __repr__ method. |
java.lang.Object |
__tojava__(java.lang.Class c)
Equivalent to the Jython __tojava__ method. |
static PyArray |
array(PyObject seq,
java.lang.Class ctype)
|
static java.lang.Class |
char2class(char type)
|
java.lang.String |
tostring()
|
static PyArray |
zeros(int n,
java.lang.Class ctype)
|
Methods inherited from class org.python.core.PySequence |
__delitem__, __delslice__, __eq__, __finditem__, __finditem__, __ge__, __getitem__, __getslice__, __gt__, __le__, __lt__, __ne__, __nonzero__, __setitem__, __setitem__, __setslice__, classDictInit, isMappingType, isNumberType |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static PyClass __class__
Constructor Detail |
public PyArray(java.lang.Class type, java.lang.Object data)
public PyArray(java.lang.Class type, int n)
Method Detail |
public static PyArray zeros(int n, java.lang.Class ctype)
public static PyArray array(PyObject seq, java.lang.Class ctype)
public static java.lang.Class char2class(char type)
public java.lang.Object __tojava__(java.lang.Class c)
PyObject
Py.NoConversion
if this PyObject
can not be converted to the
desired Java class.
__tojava__
in class PySequence
c
- the Class to convert this PyObject
to.public int __len__()
PyObject
__len__
in class PyObject
public java.lang.String tostring()
public PyString __repr__()
PyObject
PyObject
is to
override the standard Java toString
method.
__repr__
in class PyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |