org.python.core

Class PyLong

public class PyLong extends PyObject

A builtin python long. This is implemented as a java.math.BigInteger.
Field Summary
static Stringexposed_name
static BigIntegermaxLong
static BigIntegermaxULong
static BigIntegerminLong
Constructor Summary
PyLong(PyType subType, BigInteger v)
PyLong(BigInteger v)
PyLong(double v)
PyLong(long v)
PyLong(String s)
Method Summary
longasLong(int index)
doubledoubleValue()
BigIntegergetValue()
inthashCode()
booleanisMappingType()
booleanisSequenceType()
static PyObjectlong_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
booleanlong___nonzero__()
doublescaledDoubleValue(int[] exp)
StringtoString()
static voidtypeSetup(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)

Field Detail

exposed_name

public static final String exposed_name

maxLong

public static final BigInteger maxLong

maxULong

public static final BigInteger maxULong

minLong

public static final BigInteger minLong

Constructor Detail

PyLong

public PyLong(PyType subType, BigInteger v)

PyLong

public PyLong(BigInteger v)

PyLong

public PyLong(double v)

PyLong

public PyLong(long v)

PyLong

public PyLong(String s)

Method Detail

asLong

public long asLong(int index)

doubleValue

public double doubleValue()

getValue

public BigInteger getValue()

hashCode

public int hashCode()

isMappingType

public boolean isMappingType()

isSequenceType

public boolean isSequenceType()

long_new

public static PyObject long_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

long___nonzero__

public boolean long___nonzero__()

scaledDoubleValue

public double scaledDoubleValue(int[] exp)

toString

public String toString()

typeSetup

public static void typeSetup(PyObject dict, PyType.Newstyle marker)

_pow

public static PyObject _pow(BigInteger value, BigInteger y, PyObject modulo, PyObject left, PyObject right)

__abs__

public PyObject __abs__()

__add__

public PyObject __add__(PyObject right)

__and__

public PyObject __and__(PyObject right)

__cmp__

public int __cmp__(PyObject other)

__coerce_ex__

public Object __coerce_ex__(PyObject other)

__complex__

public PyComplex __complex__()

__divmod__

public PyObject __divmod__(PyObject right)

__div__

public PyObject __div__(PyObject right)

__float__

public PyFloat __float__()

__floordiv__

public PyObject __floordiv__(PyObject right)

__hex__

public PyString __hex__()

__int__

public PyObject __int__()

__invert__

public PyObject __invert__()

__long__

public PyLong __long__()

__lshift__

public PyObject __lshift__(PyObject right)

__mod__

public PyObject __mod__(PyObject right)

__mul__

public PyObject __mul__(PyObject right)

__neg__

public PyObject __neg__()

__nonzero__

public boolean __nonzero__()

__oct__

public PyString __oct__()

__or__

public PyObject __or__(PyObject right)

__pos__

public PyObject __pos__()

__pow__

public PyObject __pow__(PyObject right, PyObject modulo)

__radd__

public PyObject __radd__(PyObject left)

__rand__

public PyObject __rand__(PyObject left)

__rdivmod__

public PyObject __rdivmod__(PyObject left)

__rdiv__

public PyObject __rdiv__(PyObject left)

__rfloordiv__

public PyObject __rfloordiv__(PyObject left)

__rmod__

public PyObject __rmod__(PyObject left)

__rmul__

public PyObject __rmul__(PyObject left)

__ror__

public PyObject __ror__(PyObject left)

__rpow__

public PyObject __rpow__(PyObject left)

__rshift__

public PyObject __rshift__(PyObject right)

__rsub__

public PyObject __rsub__(PyObject left)

__rtruediv__

public PyObject __rtruediv__(PyObject left)

__rxor__

public PyObject __rxor__(PyObject left)

__str__

public PyString __str__()

__sub__

public PyObject __sub__(PyObject right)

__tojava__

public Object __tojava__(Class c)

__truediv__

public PyObject __truediv__(PyObject right)

__unicode__

public PyUnicode __unicode__()

__xor__

public PyObject __xor__(PyObject right)
Jython homepage