| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected PyBuiltinCallable | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __call__(PyObject[]
all arguments to the function (including keyword arguments). args, String[] the keywords used for all keyword arguments. kwargs)Overrides org. The basic method to override when implementing a callable object. |
| 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 String | |
| public int | |
| public int | |
| public String | Returns: a name StringImplements org. Return the name this descriptor is exposed as. |
| public PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| public PyException | unexpectedCall(int nargs, boolean keywords)
Implements org.
|
| maxargs | back to summary |
|---|---|
| protected int maxargs | |
| meth | back to summary |
|---|---|
| protected PyBuiltinCallable meth | |
| minargs | back to summary |
|---|---|
| protected int minargs | |
| PyMethodDescr | back to summary |
|---|---|
| public PyMethodDescr(PyType t, PyBuiltinCallable func) | |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject[] args, String[] kwargs) Overrides org. Doc from org. The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.
| |
| __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. | |
| getDoc | back to summary |
|---|---|
public String getDoc()
| |
| getMaxargs | back to summary |
|---|---|
| public int getMaxargs() Implements org.
| |
| getMinargs | back to summary |
|---|---|
| public int getMinargs() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Return the name this descriptor is exposed as.
| |
| getObjClass | back to summary |
|---|---|
| public PyObject getObjClass() Return the owner class of this descriptor.
| |
| method_descriptor___call__ | back to summary |
|---|---|
pack-priv final PyObject method_descriptor___call__(PyObject[] args, String[] kwargs)
| |
| method_descriptor___get__ | back to summary |
|---|---|
pack-priv final PyObject method_descriptor___get__(PyObject obj, PyObject type)
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Overrides org. Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| 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- | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Overrides org. Implements org. Doc from org. Traverses all directly contained
| |
| unexpectedCall | back to summary |
|---|---|
| public PyException unexpectedCall(int nargs, boolean keywords) Implements org.
| |