|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.PyObject
org.python.core.PyInteger
org.python.core.PyBoolean
public class PyBoolean
A builtin python bool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.python.core.PyObject |
|---|
PyObject.ConversionException |
| Field Summary | |
|---|---|
static PyType |
TYPE
|
| Fields inherited from class org.python.core.PyInteger |
|---|
maxInt, minInt |
| Constructor Summary | |
|---|---|
PyBoolean(boolean v)
|
|
PyBoolean(PyType subType,
boolean v)
|
|
| Method Summary | |
|---|---|
PyObject |
__abs__()
Equivalent to the standard Python __abs__ method. |
PyObject |
__and__(PyObject right)
Equivalent to the standard Python __and__ method |
PyObject |
__neg__()
Equivalent to the standard Python __neg__ method. |
boolean |
__nonzero__()
Equivalent to the standard Python __nonzero__ method. |
PyObject |
__or__(PyObject right)
Equivalent to the standard Python __or__ method |
PyObject |
__pos__()
Equivalent to the standard Python __pos__ method. |
java.lang.Object |
__tojava__(java.lang.Class c)
Equivalent to the Jython __tojava__ method. |
PyObject |
__xor__(PyObject right)
Equivalent to the standard Python __xor__ method |
int |
asInt()
|
int |
asInt(int index)
|
long |
asLong(int index)
|
static PyObject |
bool_new(PyNewWrapper new_,
boolean init,
PyType subtype,
PyObject[] args,
java.lang.String[] keywords)
|
int |
getValue()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class org.python.core.PyInteger |
|---|
__add__, __cmp__, __coerce_ex__, __complex__, __div__, __divmod__, __float__, __floordiv__, __getnewargs__, __hex__, __index__, __int__, __invert__, __long__, __lshift__, __mod__, __mul__, __oct__, __pow__, __radd__, __rdiv__, __rfloordiv__, __rmod__, __rmul__, __rpow__, __rshift__, __rsub__, __rtruediv__, __sub__, __truediv__, asIndex, int_new, isIndex, isMappingType, isSequenceType |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PyType TYPE
| Constructor Detail |
|---|
public PyBoolean(PyType subType,
boolean v)
public PyBoolean(boolean v)
| Method Detail |
|---|
public static PyObject bool_new(PyNewWrapper new_,
boolean init,
PyType subtype,
PyObject[] args,
java.lang.String[] keywords)
public int getValue()
getValue in class PyIntegerpublic java.lang.String toString()
toString in class PyIntegerpublic int hashCode()
hashCode in class PyIntegerpublic boolean __nonzero__()
PyObjectPyObject is considered true.
__nonzero__ in class PyIntegerpublic 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 PyIntegerc - the Class to convert this PyObject to.public PyObject __and__(PyObject right)
PyObject
__and__ in class PyIntegerright - the object to perform this binary operation with
(the right-hand operand).
public PyObject __xor__(PyObject right)
PyObject
__xor__ in class PyIntegerright - the object to perform this binary operation with
(the right-hand operand).
public PyObject __or__(PyObject right)
PyObject
__or__ in class PyIntegerright - the object to perform this binary operation with
(the right-hand operand).
public PyObject __neg__()
PyObject
__neg__ in class PyIntegerpublic PyObject __pos__()
PyObject
__pos__ in class PyIntegerpublic PyObject __abs__()
PyObject
__abs__ in class PyIntegerpublic long asLong(int index)
asLong in class PyIntegerpublic int asInt(int index)
asInt in class PyIntegerpublic int asInt()
asInt in class PyInteger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||