org.python.core
Class PyLong
public
class
PyLong
extends PyObject
A builtin python long. This is implemented as a
java.math.BigInteger.
Method Summary |
int | asInt(int index) |
long | asLong(int index) |
double | doubleValue() |
BigInteger | getValue() |
int | hashCode() |
boolean | isMappingType() |
boolean | isSequenceType() |
static PyObject | long_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords) |
boolean | long___nonzero__() |
double | scaledDoubleValue(int[] exp) |
String | toString() |
static void | typeSetup(PyObject dict, PyType.Newstyle marker) |
static PyObject | _pow(BigInteger value, BigInteger y, PyObject modulo, PyObject left, PyObject right) |
PyObject | __abs__() |
PyObject | __add__(PyObject right) |
PyObject | __and__(PyObject right) |
int | __cmp__(PyObject other) |
Object | __coerce_ex__(PyObject other) |
PyComplex | __complex__() |
PyObject | __divmod__(PyObject right) |
PyObject | __div__(PyObject right) |
PyFloat | __float__() |
PyObject | __floordiv__(PyObject right) |
PyString | __hex__() |
PyObject | __int__() |
PyObject | __invert__() |
PyLong | __long__() |
PyObject | __lshift__(PyObject right) |
PyObject | __mod__(PyObject right) |
PyObject | __mul__(PyObject right) |
PyObject | __neg__() |
boolean | __nonzero__() |
PyString | __oct__() |
PyObject | __or__(PyObject right) |
PyObject | __pos__() |
PyObject | __pow__(PyObject right, PyObject modulo) |
PyObject | __radd__(PyObject left) |
PyObject | __rand__(PyObject left) |
PyObject | __rdivmod__(PyObject left) |
PyObject | __rdiv__(PyObject left) |
PyObject | __rfloordiv__(PyObject left) |
PyObject | __rmod__(PyObject left) |
PyObject | __rmul__(PyObject left) |
PyObject | __ror__(PyObject left) |
PyObject | __rpow__(PyObject left) |
PyObject | __rshift__(PyObject right) |
PyObject | __rsub__(PyObject left) |
PyObject | __rtruediv__(PyObject left) |
PyObject | __rxor__(PyObject left) |
PyString | __str__() |
PyObject | __sub__(PyObject right) |
Object | __tojava__(Class c) |
PyObject | __truediv__(PyObject right) |
PyUnicode | __unicode__() |
PyObject | __xor__(PyObject right) |
public static final String exposed_name
public static final BigInteger maxLong
public static final BigInteger maxULong
public static final BigInteger minLong
public PyLong(
PyType subType, BigInteger v)
public PyLong(BigInteger v)
public PyLong(double v)
public PyLong(long v)
public PyLong(String s)
public int asInt(int index)
public long asLong(int index)
public double doubleValue()
public BigInteger getValue()
public int hashCode()
public boolean isMappingType()
public boolean isSequenceType()
public boolean long___nonzero__()
public double scaledDoubleValue(int[] exp)
public String toString()
public Object __coerce_ex__(
PyObject other)
public boolean __nonzero__()
public Object __tojava__(Class c)