|
||||||||||
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.PyMethod
A python method.
Nested Class Summary |
Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
Field Summary | |
PyObject |
__doc__
|
java.lang.String |
__name__
|
PyObject |
im_class
|
PyObject |
im_func
|
PyObject |
im_self
|
Fields inherited from class org.python.core.PyObject |
exposed_name |
Constructor Summary | |
PyMethod(PyObject self,
PyFunction f,
PyObject wherefound)
|
|
PyMethod(PyObject self,
PyObject f,
PyObject wherefound)
|
|
PyMethod(PyObject self,
PyReflectedFunction f,
PyObject wherefound)
|
Method Summary | |
PyObject |
__call__(PyObject[] args,
java.lang.String[] keywords)
The basic method to override when implementing a callable object. |
int |
__cmp__(PyObject other)
Equivalent to the standard Python __cmp__ method. |
void |
__delattr__(java.lang.String name)
A variant of the __delattr__ method which accepts a String as the key. |
PyObject |
__dir__()
Equivalent to the standard Python __dir__ method. |
PyObject |
__findattr__(java.lang.String name)
A variant of the __findattr__ method which accepts a Java String as the name.
|
PyObject |
_doget(PyObject container)
|
PyObject |
_doget(PyObject container,
PyObject wherefound)
|
java.lang.String |
safeRepr()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public PyObject im_self
public PyObject im_func
public PyObject im_class
public java.lang.String __name__
public PyObject __doc__
Constructor Detail |
public PyMethod(PyObject self, PyObject f, PyObject wherefound)
public PyMethod(PyObject self, PyFunction f, PyObject wherefound)
public PyMethod(PyObject self, PyReflectedFunction f, PyObject wherefound)
Method Detail |
public PyObject __dir__()
PyObject
__dir__
in class PyObject
public PyObject __findattr__(java.lang.String name)
PyObject
String
as the name.
By default, this method will call __findattr__(PyString
name)
with the appropriate args. The only reason to override
this method is for performance.
Warning: name must be an interned string!!!!!!!!
__findattr__
in class PyObject
name
- the name to lookup in this namespace
must be an interned string .
PyObject.__findattr__(PyString)
public void __delattr__(java.lang.String name)
PyObject
__delattr__(PyString name)
with the appropriate args.
The only reason to override this method is for performance.
__delattr__
in class PyObject
name
- the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)
public PyObject _doget(PyObject container)
_doget
in class PyObject
public PyObject _doget(PyObject container, PyObject wherefound)
_doget
in class PyObject
public PyObject __call__(PyObject[] args, java.lang.String[] keywords)
PyObject
__call__
in class PyObject
args
- all arguments to the function (including
keyword arguments).keywords
- the keywords used for all keyword arguments.public int __cmp__(PyObject other)
PyObject
__cmp__
in class PyObject
other
- the object to compare this with.
public java.lang.String safeRepr() throws PyIgnoreMethodTag
safeRepr
in class PyObject
PyIgnoreMethodTag
public java.lang.String toString()
toString
in class PyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |