|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.python.core.PyObject | +--org.python.core.PySequence | +--org.python.core.PyXRange
Used to implement the builtin xrange function. Significant patches contributed by Jason Orendorff - jorendor@cbu.edu
Field Summary | |
int |
start
|
int |
step
|
int |
stop
|
Fields inherited from class org.python.core.PyObject |
__class__ |
Constructor Summary | |
PyXRange(int start,
int stop,
int step)
|
Method Summary | |
PyObject |
__add__(PyObject generic_other)
Equivalent to the standard Python __add__ method |
PyObject |
__findattr__(java.lang.String name)
A variant of the __findattr__ method which accepts a Java String as the name.
|
int |
__len__()
Equivalent to the standard Python __len__ method. |
int |
hashCode()
|
PyList |
tolist()
|
java.lang.String |
toString()
|
Methods inherited from class org.python.core.PySequence |
__delitem__, __delslice__, __eq__, __finditem__, __finditem__, __ge__, __getitem__, __getslice__, __gt__, __iter__, __le__, __lt__, __ne__, __nonzero__, __setitem__, __setitem__, __setslice__, __tojava__, classDictInit, isMappingType, isNumberType |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public int start
public int stop
public int step
Constructor Detail |
public PyXRange(int start, int stop, int step)
Method Detail |
public int __len__()
PyObject
__len__
in class PyObject
org.python.core.PyObject
public PyObject __add__(PyObject generic_other)
PyObject
__add__
in class PyObject
org.python.core.PyObject
other
- the object to perform this binary operation with
(the right-hand operand).public PyObject __findattr__(java.lang.String name)
PyObject
String
as the name.
By default, this method will call __findattr__(PyString
name)
with the appropriate args. The only reason to override
this method is for performance.
Warning: name must be an interned string!!!!!!!!__findattr__
in class PyObject
org.python.core.PyObject
name
- the name to lookup in this namespace
must be an interned string .PyObject.__findattr__(PyString)
public int hashCode()
hashCode
in class PyObject
public java.lang.String toString()
toString
in class java.lang.Object
public PyList tolist()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |