Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
pack-priv static final Object[] | EMPTY_ARRAY
Empty (zero-length) array of |
pack-priv static final String[] | EMPTY_STRING_ARRAY
Empty (zero-length) array of |
public static final Boolean | False
Python |
public static final Object | None
Python |
pack-priv static final Object | NotImplemented
Python |
public static final Boolean | True
Python |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
pack-priv static String | Returns: a string representationobject to represent o)Convenient default toString implementation that tries __str__, if defined, but always falls back to something. |
public static PyDict | |
pack-priv static synchronized void | |
pack-priv static int | |
pack-priv static synchronized void | |
pack-priv static PyBaseObject | |
public static PyTuple | |
public static Integer | Returns: equivalentint to represent value)
Deprecated
Use primitive auto-boxed or
Return Python Integer.valueOf .
int for Java int .
|
public static BigInteger |
EMPTY_ARRAY | back to summary |
---|---|
pack-priv static final Object[] EMPTY_ARRAY Empty (zero-length) array of |
EMPTY_STRING_ARRAY | back to summary |
---|---|
pack-priv static final String[] EMPTY_STRING_ARRAY Empty (zero-length) array of |
False | back to summary |
---|---|
public static final Boolean False Python |
None | back to summary |
---|---|
public static final Object None Python |
NotImplemented | back to summary |
---|---|
pack-priv static final Object NotImplemented Python |
True | back to summary |
---|---|
public static final Boolean True Python |
Py | back to summary |
---|---|
public Py() |
defaultToString | back to summary |
---|---|
pack-priv static String defaultToString(Object o) Convenient default toString implementation that tries __str__, if defined, but always falls back to something. Use as: public String toString() { return Py.defaultToString(this); } |
dict | back to summary |
---|---|
public static PyDict dict() Return empty Python
|
finalise | back to summary |
---|---|
pack-priv static synchronized void finalise() Action we might need to finalise the run-time system. |
id | back to summary |
---|---|
pack-priv static int id(Object o) Return the unique numerical identiy of a given Python object. Objects with the same id() are identical as long as both exist. By implementing it here, we encapsulate the problem of qualified type name and what "address" or "identity" should mean.
|
initialise | back to summary |
---|---|
pack-priv static synchronized void initialise() Action we might need to initialise the run-time system. |
object | back to summary |
---|---|
pack-priv static PyBaseObject object() Return a Python
|
tuple | back to summary |
---|---|
public static PyTuple tuple(Object... values) Return Python |
val | back to summary |
---|---|
public static Integer val(int value)
Deprecated Use primitive auto-boxed or Return Python
|
val | back to summary |
---|---|
public static BigInteger val(long value) Return Python
|
name | back to summary |
---|---|
pack-priv String name |
type | back to summary |
---|---|
pack-priv final PyType type |
Singleton | back to summary |
---|---|
pack-priv Singleton(String name) |
getType | back to summary |
---|---|
public PyType getType() Implements org. Doc from org. The Python |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |