org.python.core
public class PyType extends PyObject implements Serializable
| Nested Class Summary | |
|---|---|
| static interface | PyType.Newstyle |
| Field Summary | |
|---|---|
| static String | exposed_name |
| Method Summary | |
|---|---|
| void | delBases() |
| void | delDict() |
| PyObject | fastGetDict() |
| String | fastGetName() |
| static PyType | fromClass(Class c) |
| PyObject | getBase() |
| PyObject | getBases() |
| PyObject | getDict() |
| String | getFullName() |
| PyObject | getModule() |
| PyTuple | getMro() |
| int | getNumSlots() |
| PyObject | getStatic() |
| PyObject | instDict() |
| boolean | isSubType(PyType supertype) |
| boolean | layoutAligns(PyType other)
Checks that the physical layout between this type and other
are compatible. |
| PyObject | lookup(String name)
INTERNAL lookup for name through mro objects' dicts
|
| PyObject | lookup_where(String name, PyObject[] where) |
| static PyObject | newType(PyNewWrapper new_, PyType metatype, String name, PyTuple bases, PyObject dict) |
| String | safeRepr() |
| void | setBases(PyObject newBasesTuple) |
| void | setDict(PyObject newDict) |
| PyObject | super_lookup(PyType ref, String name) |
| String | toString() |
| static void | typeSetup(PyObject dict, PyType.Newstyle marker) |
| PyObject | type_getSubclasses() |
| static PyObject | type_new(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords) |
| PyObject | __call__(PyObject[] args, String[] keywords) |
| void | __delattr__(String name) |
| PyObject | __findattr__(String name) |
| void | __setattr__(String name, PyObject value) |
| Object | __tojava__(Class c) |
See Also: fastGetDict
other
are compatible.Parameters: name attribute name (must be interned)
Returns: found object or null
See Also: safeRepr
See Also: PyObject
See Also: PyObject
See Also: PyObject