|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.python.core.PyObject
org.python.core.PyDescriptor
org.python.core.PyMethodDescr
| Nested Class Summary |
| Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
| Field Summary |
| Fields inherited from class org.python.core.PyObject |
exposed_name |
| Constructor Summary | |
PyMethodDescr(java.lang.String name,
java.lang.Class c,
int minargs,
int maxargs,
PyBuiltinFunction func)
|
|
| Method Summary | |
PyObject |
__call__()
A variant of the __call__ method with no arguments. |
PyObject |
__call__(PyObject arg1)
A variant of the __call__ method with one argument. |
PyObject |
__call__(PyObject[] args)
A variant of the __call__ method when no keywords are passed. |
PyObject |
__call__(PyObject[] args,
java.lang.String[] kws)
The basic method to override when implementing a callable object. |
PyObject |
__call__(PyObject arg1,
PyObject arg2)
A variant of the __call__ method with two arguments. |
PyObject |
__call__(PyObject arg1,
PyObject arg2,
PyObject arg3)
A variant of the __call__ method with three arguments. |
PyObject |
__call__(PyObject arg1,
PyObject arg2,
PyObject arg3,
PyObject arg4)
A variant of the __call__ method with four arguments. |
PyObject |
__get__(PyObject obj,
PyObject type)
|
int |
getMaxargs()
|
int |
getMinargs()
|
java.lang.String |
getName()
|
java.lang.String |
toString()
|
PyException |
unexpectedCall(int nargs,
boolean keywords)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PyMethodDescr(java.lang.String name,
java.lang.Class c,
int minargs,
int maxargs,
PyBuiltinFunction func)
| Method Detail |
public java.lang.String getName()
getName in interface PyBuiltinFunction.Infopublic int getMaxargs()
getMaxargs in interface PyBuiltinFunction.Infopublic int getMinargs()
getMinargs in interface PyBuiltinFunction.Infopublic java.lang.String toString()
toString in class PyObjectpublic PyObject __call__(PyObject[] args)
PyObject__call__(args, keywords)
with the appropriate arguments. The only reason to override this
function would be for improved performance.
__call__ in class PyObjectargs - all arguments to the function.
public PyObject __call__(PyObject[] args,
java.lang.String[] kws)
PyObject
__call__ in class PyObjectargs - all arguments to the function (including
keyword arguments).kws - the keywords used for all keyword arguments.public PyObject __call__()
PyObject__call__(args, keywords) with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__ in class PyObjectpublic PyObject __call__(PyObject arg1)
PyObject__call__(args, keywords) with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__ in class PyObjectarg1 - the single argument to the function.
public PyObject __call__(PyObject arg1,
PyObject arg2)
PyObject__call__(args, keywords) with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__ in class PyObjectarg1 - the first argument to the function.arg2 - the second argument to the function.
public PyObject __call__(PyObject arg1,
PyObject arg2,
PyObject arg3)
PyObject__call__(args, keywords) with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__ in class PyObjectarg1 - the first argument to the function.arg2 - the second argument to the function.arg3 - the third argument to the function.
public PyObject __call__(PyObject arg1,
PyObject arg2,
PyObject arg3,
PyObject arg4)
PyObject__call__(args, keywords) with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__ in class PyObjectarg1 - the first argument to the function.arg2 - the second argument to the function.arg3 - the third argument to the function.arg4 - the fourth argument to the function.
public PyException unexpectedCall(int nargs,
boolean keywords)
unexpectedCall in interface PyBuiltinFunction.Info
public PyObject __get__(PyObject obj,
PyObject type)
__get__ in class PyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||