|
||||||||||
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__
|
Fields inherited from class org.python.core.PySequence |
annotation |
Constructor Summary | |
PyArray(Class type,
int n)
|
|
PyArray(Class type,
Object data)
|
Method Summary | |
int |
__len__()
Equivalent to the standard Python __len__ method. |
PyString |
__repr__()
Equivalent to the standard Python __repr__ method. |
Object |
__tojava__(Class c)
Equivalent to the Jython __tojava__ method. |
static PyArray |
array(PyObject seq,
Class ctype)
|
static Class |
char2class(char type)
|
String |
tostring()
|
static PyArray |
zeros(int n,
Class ctype)
|
Methods inherited from class org.python.core.PySequence |
__and__, __anye__, __bde__, __delitem__, __delslice__, __eq__, __findattr__, __finditem__, __finditem__, __ge__, __getitem__, __getslice__, __gt__, __lde__, __le__, __lt__, __ne__, __nonzero__, __or__, __rde__, __setattr__, __setitem__, __setitem__, __setslice__, __sub__, classDictInit, containsGraphElements, findEdges, findEdges, findGraphElements, findGraphElements, findNodes, findNodes, findNodesAndEdges, findNodesAndEdges, getAnnotation, groupAndSortBy, groupBy, hide, isMappingType, isNumberType, show, size, sortBy, unroll |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static PyClass __class__
Constructor Detail |
public PyArray(Class type, Object data)
public PyArray(Class type, int n)
Method Detail |
public static PyArray zeros(int n, Class ctype)
public static PyArray array(PyObject seq, Class ctype)
public static Class char2class(char type)
public Object __tojava__(Class c)
PyObject
Py.NoConversion
if this PyObject
can not be converted to the
desired Java class.
__tojava__
in class PySequence
public int __len__()
PyObject
__len__
in class PyObject
public 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 |