| Modifier and Type | Field and Description |
|---|---|
| private String | |
| protected Class |
| Access | Constructor and Description |
|---|---|
| public | PyDataDescr(PyType
-
the type the descriptor belongs to onType, String -
the name of the descriptor on descriptor type name, Class<T> -
the type returned by the descriptor ofType, String doc)
|
| public | PyDataDescr(String
-
the name of the descriptor on descriptor type name, Class<T> -
the type returned by the descriptor ofType, String doc)This constructor does not initialize the type the descriptor belongs to. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public PyObject | __get__(PyObject
- the instance accessing this descriptor. Can be null if this is being accessed by
a type. obj, PyObject - the type accessing this descriptor. Will be null if obj exists as obj is of the
type accessing the descriptor. type)Overrides org. Get descriptor for this PyObject. |
| public void | |
| public String | |
| public String | |
| public PyObject | |
| public void | |
| public PyObject | |
| public void | |
| public void | |
| public abstract Object | |
| public void | |
| public boolean | |
| public void | setType(PyType onType)
Overrides org. Sets the type the descriptor belongs to. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| PyDataDescr | back to summary |
|---|---|
| public PyDataDescr(PyType onType, String name, Class<T> ofType, String doc) | |
| PyDataDescr | back to summary |
|---|---|
| public PyDataDescr(String name, Class<T> ofType, String doc) This constructor does not initialize the type the descriptor belongs to. setType must be called before this descriptor can be used. | |
| __delete__ | back to summary |
|---|---|
| public void __delete__(PyObject obj) Overrides org.
| |
| __get__ | back to summary |
|---|---|
| public PyObject __get__(PyObject obj, PyObject type) Overrides org. Doc from org. Get descriptor for this PyObject.
- the object defined for this descriptor for the given obj and type. | |
| __set__ | back to summary |
|---|---|
| public void __set__(PyObject obj, PyObject value) Overrides org.
| |
| getDoc | back to summary |
|---|---|
public String getDoc()
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name this descriptor is exposed as.
| |
| getObjClass | back to summary |
|---|---|
| public PyObject getObjClass() Return the owner class of this descriptor.
| |
| getset_descriptor___delete__ | back to summary |
|---|---|
public void getset_descriptor___delete__(PyObject obj)
| |
| getset_descriptor___get__ | back to summary |
|---|---|
public PyObject getset_descriptor___get__(PyObject obj, PyObject type)
| |
| getset_descriptor___set__ | back to summary |
|---|---|
public void getset_descriptor___set__(PyObject obj, PyObject value)
| |
| invokeDelete | back to summary |
|---|---|
| public void invokeDelete(PyObject obj) | |
| invokeGet | back to summary |
|---|---|
| public abstract Object invokeGet(PyObject obj) | |
| invokeSet | back to summary |
|---|---|
| public void invokeSet(PyObject obj, Object converted) | |
| isDataDescr | back to summary |
|---|---|
| public boolean isDataDescr() Overrides org.
| |
| setType | back to summary |
|---|---|
| public void setType(PyType onType) Overrides org. Sets the type the descriptor belongs to. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |