first-class Python type.
__call__
public PyObject __call__(PyObject[] args,
String[] keywords)
org.python.core.PyObject.__call__(org.python.core.PyObject[], java.lang.String[])
__delattr__
public void __delattr__(String name)
- __delattr__ in interface PyObject
org.python.core.PyObject.__delattr__(java.lang.String)
__findattr__
public PyObject __findattr__(String name)
- __findattr__ in interface PyObject
org.python.core.PyObject.__findattr__(java.lang.String)
__setattr__
public void __setattr__(String name,
PyObject value)
- __setattr__ in interface PyObject
org.python.core.PyObject.__setattr__(java.lang.String, org.python.core.PyObject)
__tojava__
public Object __tojava__(Class c)
Equivalent to the Jython __tojava__ method.
Tries to coerce this object to an instance of the requested Java class.
Returns the special object Py.NoConversion
if this PyObject
can not be converted to the
desired Java class.
- __tojava__ in interface PyObject
c
- the Class to convert this PyObject
to.
delBases
public void delBases()
fastGetName
public String fastGetName()
fromClass
public static PyType fromClass(Class c)
getDict
public PyObject getDict()
xxx implements where meaningful
- getDict in interface PyObject
- internal object __dict__ or null
getFullName
public String getFullName()
getNumSlots
public int getNumSlots()
isSubType
public boolean isSubType(PyType supertype)
layoutAligns
public boolean layoutAligns(PyType other)
Checks that the physical layout between this type and other
are compatible.
lookup
public PyObject lookup(String name)
INTERNAL lookup for name through mro objects' dicts
name
- attribute name (must be interned)
setBases
public void setBases(PyObject newBasesTuple)
type_getSubclasses
public final PyObject type_getSubclasses()