|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.modules._functools.PyPartial
public class PyPartial
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary | |
---|---|
PyObject[] |
args
Callable's args. |
PyObject |
func
The wrapped callable. |
static PyType |
TYPE
|
Constructor Summary | |
---|---|
PyPartial()
|
|
PyPartial(PyType subType)
|
Method Summary | |
---|---|
PyObject |
__call__(PyObject[] args,
String[] keywords)
The basic method to override when implementing a callable object. |
void |
__setattr__(String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
PyObject |
fastGetDict()
xxx implements where meaningful |
PyObject |
getArgs()
|
PyObject |
getDict()
xxx implements where meaningful |
PyObject |
getKeywords()
|
PyObject |
partial___call__(PyObject[] args,
String[] keywords)
|
static PyObject |
partial___new__(PyNewWrapper new_,
boolean init,
PyType subtype,
PyObject[] args,
String[] keywords)
|
void |
setDict(PyObject val)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PyType TYPE
public PyObject func
public PyObject[] args
Constructor Detail |
---|
public PyPartial()
public PyPartial(PyType subType)
Method Detail |
---|
public static PyObject partial___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
public PyObject __call__(PyObject[] args, 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 PyObject partial___call__(PyObject[] args, String[] keywords)
public PyObject getArgs()
public PyObject getKeywords()
public void __setattr__(String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public PyObject fastGetDict()
PyObject
fastGetDict
in class PyObject
public PyObject getDict()
PyObject
getDict
in class PyObject
public void setDict(PyObject val)
setDict
in class PyObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |