public class PyInteger extends PyObject
PyObject.ConversionException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
exposed_name |
| Constructor and Description |
|---|
PyInteger(int v) |
PyInteger(PyType subType,
int v) |
| Modifier and Type | Method and Description |
|---|---|
PyObject |
__abs__()
Equivalent to the standard Python __abs__ method.
|
PyObject |
__add__(PyObject right)
Equivalent to the standard Python __add__ method
|
PyObject |
__and__(PyObject right)
Equivalent to the standard Python __and__ method
|
int |
__cmp__(PyObject other)
Equivalent to the standard Python __cmp__ method.
|
java.lang.Object |
__coerce_ex__(PyObject other)
Implements numeric coercion
|
PyComplex |
__complex__()
Equivalent to the standard Python __complex__ method.
|
PyObject |
__div__(PyObject right)
Equivalent to the standard Python __div__ method
|
PyObject |
__divmod__(PyObject right)
Equivalent to the standard Python __divmod__ method
|
PyFloat |
__float__()
Equivalent to the standard Python __float__ method.
|
PyObject |
__floordiv__(PyObject right)
Equivalent to the standard Python __floordiv__ method
|
PyString |
__hex__()
Equivalent to the standard Python __hex__ method
Should only be overridden by numeric objects that can be
reasonably represented as a hexadecimal string.
|
PyObject |
__int__()
Equivalent to the standard Python __int__ method.
|
PyObject |
__invert__()
Equivalent to the standard Python __invert__ method.
|
PyLong |
__long__()
Equivalent to the standard Python __long__ method.
|
PyObject |
__lshift__(PyObject right)
Equivalent to the standard Python __lshift__ method
|
PyObject |
__mod__(PyObject right)
Equivalent to the standard Python __mod__ method
|
PyObject |
__mul__(PyObject right)
Equivalent to the standard Python __mul__ method
|
PyObject |
__neg__()
Equivalent to the standard Python __neg__ method.
|
boolean |
__nonzero__()
Equivalent to the standard Python __nonzero__ method.
|
PyString |
__oct__()
Equivalent to the standard Python __oct__ method.
|
PyObject |
__or__(PyObject right)
Equivalent to the standard Python __or__ method
|
PyObject |
__pos__()
Equivalent to the standard Python __pos__ method.
|
PyObject |
__pow__(PyObject right,
PyObject modulo)
Implements the three argument power function.
|
PyObject |
__radd__(PyObject left)
Equivalent to the standard Python __radd__ method
|
PyObject |
__rdiv__(PyObject left)
Equivalent to the standard Python __rdiv__ method
|
PyObject |
__reduce__()
Used for pickling.
|
PyObject |
__rfloordiv__(PyObject left)
Equivalent to the standard Python __rfloordiv__ method
|
PyObject |
__rmod__(PyObject left)
Equivalent to the standard Python __rmod__ method
|
PyObject |
__rmul__(PyObject left)
Equivalent to the standard Python __rmul__ method
|
PyObject |
__rpow__(PyObject left,
PyObject modulo) |
PyObject |
__rshift__(PyObject right)
Equivalent to the standard Python __rshift__ method
|
PyObject |
__rsub__(PyObject left)
Equivalent to the standard Python __rsub__ method
|
PyObject |
__rtruediv__(PyObject left)
Equivalent to the standard Python __rtruediv__ method
|
PyObject |
__sub__(PyObject right)
Equivalent to the standard Python __sub__ method
|
java.lang.Object |
__tojava__(java.lang.Class c)
Equivalent to the Jython __tojava__ method.
|
PyObject |
__truediv__(PyObject right)
Equivalent to the standard Python __truediv__ method
|
PyObject |
__xor__(PyObject right)
Equivalent to the standard Python __xor__ method
|
int |
asInt(int index) |
long |
asLong(int index) |
int |
getValue() |
int |
hashCode() |
static PyObject |
int_new(PyNewWrapper new_,
boolean init,
PyType subtype,
PyObject[] args,
java.lang.String[] keywords) |
boolean |
isMappingType() |
boolean |
isSequenceType() |
java.lang.String |
safeRepr() |
java.lang.String |
toString() |
static void |
typeSetup(PyObject dict,
PyType.Newstyle marker) |
__call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __coerce__, __contains__, __delattr__, __delattr__, __delete__, __delitem__, __delitem__, __delslice__, __delslice__, __dir__, __eq__, __findattr__, __findattr__, __finditem__, __finditem__, __finditem__, __ge__, __get__, __getattr__, __getattr__, __getitem__, __getitem__, __getnewargs__, __getslice__, __getslice__, __gt__, __hash__, __iadd__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __ior__, __ipow__, __irshift__, __isub__, __iter__, __iternext__, __itruediv__, __ixor__, __le__, __len__, __lt__, __ne__, __not__, __pow__, __rand__, __rdivmod__, __repr__, __rlshift__, __ror__, __rpow__, __rrshift__, __rxor__, __set__, __setattr__, __setattr__, __setitem__, __setitem__, __setitem__, __setslice__, __setslice__, __str__, __unicode__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _in, _is, _isnot, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _xor, asName, asString, asStringOrNull, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, getDict, getDoc, getType, implementsDescrDelete, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isNumberType, noAttributeError, readonlyAttributeError, setDict, setTypepublic static final java.lang.String exposed_name
public PyInteger(PyType subType, int v)
public PyInteger(int v)
public static void typeSetup(PyObject dict, PyType.Newstyle marker)
public static PyObject int_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, java.lang.String[] keywords)
public int getValue()
public java.lang.String safeRepr()
throws PyIgnoreMethodTag
safeRepr in class PyObjectPyIgnoreMethodTagpublic boolean __nonzero__()
PyObjectPyObject is
considered true.__nonzero__ in class PyObjectpublic java.lang.Object __tojava__(java.lang.Class c)
PyObjectPy.NoConversion
if this PyObject can not be converted to the
desired Java class.__tojava__ in class PyObjectc - the Class to convert this PyObject to.public int __cmp__(PyObject other)
PyObjectpublic java.lang.Object __coerce_ex__(PyObject other)
PyObject__coerce_ex__ in class PyObjectother - the other object involved in the coercionpublic PyObject __add__(PyObject right)
PyObjectpublic PyObject __radd__(PyObject left)
PyObjectpublic PyObject __sub__(PyObject right)
PyObjectpublic PyObject __rsub__(PyObject left)
PyObjectpublic PyObject __mul__(PyObject right)
PyObjectpublic PyObject __rmul__(PyObject left)
PyObjectpublic PyObject __div__(PyObject right)
PyObjectpublic PyObject __rdiv__(PyObject left)
PyObjectpublic PyObject __floordiv__(PyObject right)
PyObject__floordiv__ in class PyObjectright - the object to perform this binary operation with
(the right-hand operand).public PyObject __rfloordiv__(PyObject left)
PyObject__rfloordiv__ in class PyObjectleft - the object to perform this binary operation with
(the left-hand operand).public PyObject __truediv__(PyObject right)
PyObject__truediv__ in class PyObjectright - the object to perform this binary operation with
(the right-hand operand).public PyObject __rtruediv__(PyObject left)
PyObject__rtruediv__ in class PyObjectleft - the object to perform this binary operation with
(the left-hand operand).public PyObject __mod__(PyObject right)
PyObjectpublic PyObject __rmod__(PyObject left)
PyObjectpublic PyObject __divmod__(PyObject right)
PyObject__divmod__ in class PyObjectright - the object to perform this binary operation with
(the right-hand operand).public PyObject __pow__(PyObject right, PyObject modulo)
PyObjectpublic PyObject __lshift__(PyObject right)
PyObject__lshift__ in class PyObjectright - the object to perform this binary operation with
(the right-hand operand).public PyObject __rshift__(PyObject right)
PyObject__rshift__ in class PyObjectright - the object to perform this binary operation with
(the right-hand operand).public PyObject __and__(PyObject right)
PyObjectpublic PyObject __xor__(PyObject right)
PyObjectpublic PyObject __or__(PyObject right)
PyObjectpublic PyObject __neg__()
PyObjectpublic PyObject __pos__()
PyObjectpublic PyObject __abs__()
PyObjectpublic PyObject __invert__()
PyObject__invert__ in class PyObjectpublic PyObject __int__()
PyObjectpublic PyLong __long__()
PyObjectpublic PyFloat __float__()
PyObjectpublic PyComplex __complex__()
PyObject__complex__ in class PyObjectpublic PyString __oct__()
PyObjectpublic PyString __hex__()
PyObjectpublic boolean isMappingType()
isMappingType in class PyObjectpublic boolean isSequenceType()
isSequenceType in class PyObjectpublic long asLong(int index)
throws PyObject.ConversionException
asLong in class PyObjectPyObject.ConversionExceptionpublic int asInt(int index)
throws PyObject.ConversionException
asInt in class PyObjectPyObject.ConversionExceptionpublic PyObject __reduce__()
__reduce__ in class PyObject