|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.python.core.PyObject
|
+--org.python.core.PyReflectedFunction
| Field Summary | |
|---|---|
static PyClass |
__class__
|
PyObject |
__doc__
|
java.lang.String |
__name__
|
org.python.core.ReflectedArgs[] |
argslist
|
int |
nargs
|
| Constructor Summary | |
|---|---|
PyReflectedFunction(java.lang.reflect.Method method)
|
|
PyReflectedFunction(java.lang.String name)
|
|
PyReflectedFunction(java.lang.String name,
PyClass c)
|
|
| Method Summary | |
|---|---|
PyObject |
__call__(PyObject[] args,
java.lang.String[] keywords)
The basic method to override when implementing a callable object. |
PyObject |
__call__(PyObject self,
PyObject[] args,
java.lang.String[] keywords)
A variant of the __call__ method with one extra initial argument. |
PyObject |
_doget(PyObject container)
|
PyObject |
_doget(PyObject container,
PyObject wherefound)
|
boolean |
_doset(PyObject container)
|
void |
addMethod(java.lang.reflect.Method m)
|
PyReflectedFunction |
copy()
|
boolean |
handles(java.lang.reflect.Method method)
|
void |
printArgs()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String __name__
public PyObject __doc__
public org.python.core.ReflectedArgs[] argslist
public int nargs
public static PyClass __class__
| Constructor Detail |
public PyReflectedFunction(java.lang.String name,
PyClass c)
public PyReflectedFunction(java.lang.String name)
public PyReflectedFunction(java.lang.reflect.Method method)
| Method Detail |
public PyObject _doget(PyObject container)
_doget in class PyObject
public PyObject _doget(PyObject container,
PyObject wherefound)
_doget in class PyObjectpublic boolean _doset(PyObject container)
public PyReflectedFunction copy()
public boolean handles(java.lang.reflect.Method method)
public void addMethod(java.lang.reflect.Method m)
public PyObject __call__(PyObject self,
PyObject[] args,
java.lang.String[] keywords)
PyObject__call__(args,
keywords) with the appropriate arguments. The only reason to
override this function would be for improved performance.
__call__ in class PyObjectself - the first argument to the function.args - the last arguments to the function (including
keyword arguments).keywords - the keywords used for all keyword arguments.
public PyObject __call__(PyObject[] args,
java.lang.String[] keywords)
PyObject
__call__ in class PyObjectargs - all arguments to the function (including
keyword arguments).keywords - the keywords used for all keyword arguments.public void printArgs()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||