org.python.core

Class PyInteger

public class PyInteger extends PyObject

A builtin python int.
Field Summary
static Stringexposed_name
Constructor Summary
PyInteger(PyType subType, int v)
PyInteger(int v)
Method Summary
intasInt(int index)
longasLong(int index)
intgetValue()
inthashCode()
static PyObjectint_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
booleanisMappingType()
booleanisSequenceType()
StringsafeRepr()
StringtoString()
static voidtypeSetup(PyObject dict, PyType.Newstyle marker)
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__rdiv__(PyObject left)
PyObject__reduce__()
Used for pickling.
PyObject__rfloordiv__(PyObject left)
PyObject__rmod__(PyObject left)
PyObject__rmul__(PyObject left)
PyObject__rpow__(PyObject left, PyObject modulo)
PyObject__rshift__(PyObject right)
PyObject__rsub__(PyObject left)
PyObject__rtruediv__(PyObject left)
PyObject__sub__(PyObject right)
Object__tojava__(Class c)
PyObject__truediv__(PyObject right)
PyObject__xor__(PyObject right)

Field Detail

exposed_name

public static final String exposed_name

Constructor Detail

PyInteger

public PyInteger(PyType subType, int v)

PyInteger

public PyInteger(int v)

Method Detail

asInt

public int asInt(int index)

asLong

public long asLong(int index)

getValue

public int getValue()

hashCode

public int hashCode()

int_new

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

isMappingType

public boolean isMappingType()

isSequenceType

public boolean isSequenceType()

safeRepr

public String safeRepr()

toString

public String toString()

typeSetup

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

__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)

__rdiv__

public PyObject __rdiv__(PyObject left)

__reduce__

public PyObject __reduce__()
Used for pickling.

Returns: a tuple of (class, (Integer))

__rfloordiv__

public PyObject __rfloordiv__(PyObject left)

__rmod__

public PyObject __rmod__(PyObject left)

__rmul__

public PyObject __rmul__(PyObject left)

__rpow__

public PyObject __rpow__(PyObject left, PyObject modulo)

__rshift__

public PyObject __rshift__(PyObject right)

__rsub__

public PyObject __rsub__(PyObject left)

__rtruediv__

public PyObject __rtruediv__(PyObject left)

__sub__

public PyObject __sub__(PyObject right)

__tojava__

public Object __tojava__(Class c)

__truediv__

public PyObject __truediv__(PyObject right)

__xor__

public PyObject __xor__(PyObject right)