| Modifier and Type | Field and Description |
|---|---|
| public PyObject | __func__
The function (or other callable) implementing a method, also available via im_func |
| public PyObject | __self__
The instance to which a method is bound; None for unbound methods also available via im_self |
| public PyObject | im_class
The class associated with a method. |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __call__()
Overrides org. A variant of the __call__ method with no arguments. |
| public PyObject | |
| public PyObject | __call__(PyObject
the single argument to the function. arg0)Overrides org. A variant of the __call__ method with one argument. |
| public PyObject | |
| public PyObject | __call__(PyObject
the first argument to the function. arg0, PyObject the second argument to the function. arg1)Overrides org. A variant of the __call__ method with two arguments. |
| public PyObject | __call__(ThreadState state, PyObject arg0, PyObject arg1)
Overrides org.
|
| public PyObject | __call__(PyObject
the first argument to the function. arg0, PyObject the second argument to the function. arg1, PyObject the third argument to the function. arg2)Overrides org. A variant of the __call__ method with three arguments. |
| public PyObject | __call__(ThreadState state, PyObject arg0, PyObject arg1, PyObject arg2)
Overrides org.
|
| public PyObject | __call__(PyObject
the first argument to the function. arg0, PyObject the second argument to the function. arg1, PyObject the third argument to the function. arg2, PyObject the fourth argument to the function. arg3)Overrides org. A variant of the __call__ method with four arguments. |
| public PyObject | __call__(ThreadState state, PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3)
Overrides org.
|
| public PyObject | __call__(PyObject
the first argument to the function. arg1, PyObject[] the last arguments to the function (including keyword arguments). args, String[] the keywords used for all keyword arguments. keywords)Overrides org. A variant of the __call__ method with one extra initial argument. |
| public PyObject | __call__(ThreadState state, PyObject arg1, PyObject[] args, String[] keywords)
Overrides org.
|
| public PyObject | __call__(PyObject[]
all arguments to the function. args)Overrides org. A variant of the __call__ method when no keywords are passed. |
| public PyObject | |
| public PyObject | __call__(PyObject[]
all arguments to the function (including keyword arguments). args, String[] the keywords used for all keyword arguments. keywords)Overrides org. The basic method to override when implementing a callable object. |
| public PyObject | __call__(ThreadState state, PyObject[] args, String[] keywords)
Overrides org.
|
| public int | __cmp__(PyObject
the object to compare this with. other)Overrides org. Equivalent to the standard Python __cmp__ method. |
| public PyObject | __findattr_ex__(String name)
Overrides org. Attribute lookup hook. |
| 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 Object | __tojava__(Class<?>
the Class to convert this c)PyObject to.Overrides org. Equivalent to the Jython __tojava__ method. |
| private PyObject | |
| private String | |
| public PyObject | |
| public PyObject | |
| private String | |
| private String | |
| public PyObject | |
| public int | |
| pack-priv final PyObject | |
| pack-priv final int | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv static final PyObject | instancemethod___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
|
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Processes a method invocation on a proxy instance and returns the result. |
| private Object | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| __func__ | back to summary |
|---|---|
| public PyObject __func__ The function (or other callable) implementing a method, also available via im_func
| |
| __self__ | back to summary |
|---|---|
| public PyObject __self__ The instance to which a method is bound; None for unbound methods also available via im_self
| |
| im_class | back to summary |
|---|---|
| public PyObject im_class The class associated with a method.
| |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| PyMethod | back to summary |
|---|---|
| public PyMethod(PyObject function, PyObject self, PyObject type) | |
| __call__ | back to summary |
|---|---|
| public PyObject __call__() Overrides org. Doc from org. A variant of the __call__ method with no arguments. The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject arg0) Overrides org. Doc from org. A variant of the __call__ method with one argument. The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject arg0) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject arg0, PyObject arg1) Overrides org. Doc from org. A variant of the __call__ method with two arguments. The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject arg0, PyObject arg1) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2) Overrides org. Doc from org. A variant of the __call__ method with three arguments. The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject arg0, PyObject arg1, PyObject arg2) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3) Overrides org. Doc from org. A variant of the __call__ method with four arguments. The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject arg1, PyObject[] args, String[] keywords) Overrides org. Doc from org. A variant of the __call__ method with one extra initial argument. This variant is used to
allow method invocations to be performed efficiently.
The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject arg1, PyObject[] args, String[] keywords) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject[] args) Overrides org. Doc from org. A variant of the __call__ method when no keywords are passed. The default behavior is to
invoke | |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject[] args) Overrides org.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject[] args, String[] keywords) 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.
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(ThreadState state, PyObject[] args, String[] keywords) Overrides org.
| |
| __cmp__ | back to summary |
|---|---|
| public int __cmp__(PyObject other) Overrides org. Doc from org. Equivalent to the standard Python __cmp__ method. | |
| __findattr_ex__ | back to summary |
|---|---|
| public PyObject __findattr_ex__(String name) Overrides org. Doc from org. Attribute lookup hook. If the attribute is not found, null may be returned or a
Py.AttributeError can be thrown, whatever is more correct, efficient and/or convenient for
the implementing class.
Client code should use | |
| __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. | |
| __tojava__ | back to summary |
|---|---|
| public Object __tojava__(Class<?> c) Overrides org. Doc from org. Equivalent to the Jython __tojava__ method. Tries to coerce this object to an instance of the
requested Java class. Returns the special object | |
| checkSelf | back to summary |
|---|---|
| private PyObject checkSelf(PyObject arg, PyObject[] args) | |
| getClassName | back to summary |
|---|---|
| private String getClassName(PyObject cls) | |
| getDoc | back to summary |
|---|---|
public PyObject getDoc()
| |
| getFunc | back to summary |
|---|---|
| public PyObject getFunc()
Deprecated
| |
| getFuncName | back to summary |
|---|---|
| private String getFuncName() | |
| getInstClassName | back to summary |
|---|---|
| private String getInstClassName(PyObject inst) | |
| getSelf | back to summary |
|---|---|
| public PyObject getSelf()
Deprecated
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| instancemethod___call__ | back to summary |
|---|---|
pack-priv final PyObject instancemethod___call__(ThreadState state, PyObject[] args, String[] keywords)
| |
| instancemethod___cmp__ | back to summary |
|---|---|
pack-priv final int instancemethod___cmp__(PyObject other)
| |
| instancemethod___findattr_ex__ | back to summary |
|---|---|
| pack-priv final PyObject instancemethod___findattr_ex__(String name) | |
| instancemethod___get__ | back to summary |
|---|---|
pack-priv final PyObject instancemethod___get__(PyObject obj, PyObject type)
| |
| instancemethod___getattribute__ | back to summary |
|---|---|
pack-priv final PyObject instancemethod___getattribute__(PyObject arg0)
| |
| instancemethod___new__ | back to summary |
|---|---|
pack-priv static final PyObject instancemethod___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
the value to return from the method invocation on the
proxy instance. If the declared return type of the interface
method is a primitive type, then the value returned by
this method must be an instance of the corresponding primitive
wrapper class; otherwise, it must be a type assignable to the
declared return type. If the value returned by this method is
| |
| proxy | back to summary |
|---|---|
| private Object proxy(Class<?> c) | |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) 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) Implements org. Doc from org. Traverses all directly contained
| |