|
||||||||||
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.PyFunction
A python function.
Nested Class Summary |
Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
Field Summary | |
PyObject |
__dict__
|
PyObject |
__doc__
|
java.lang.String |
__name__
|
PyObject |
func_closure
|
PyCode |
func_code
|
PyObject[] |
func_defaults
|
PyObject |
func_globals
|
Fields inherited from class org.python.core.PyObject |
exposed_name |
Constructor Summary | |
PyFunction(PyObject globals,
PyObject[] defaults,
PyCode code)
|
|
PyFunction(PyObject globals,
PyObject[] defaults,
PyCode code,
PyObject doc)
|
|
PyFunction(PyObject globals,
PyObject[] defaults,
PyCode code,
PyObject[] closure_cells)
|
|
PyFunction(PyObject globals,
PyObject[] defaults,
PyCode code,
PyObject doc,
PyObject[] closure_cells)
|
Method Summary | |
PyObject |
__call__()
A variant of the __call__ method with no arguments. |
PyObject |
__call__(PyObject arg)
A variant of the __call__ method with one argument. |
PyObject |
__call__(PyObject[] args,
java.lang.String[] keywords)
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[] args,
java.lang.String[] keywords)
A variant of the __call__ method with one extra initial argument. |
PyObject |
__call__(PyObject arg1,
PyObject arg2,
PyObject arg3)
A variant of the __call__ method with three arguments. |
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.
|
void |
__setattr__(java.lang.String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
PyObject |
_doget(PyObject container)
|
PyObject |
_doget(PyObject container,
PyObject wherefound)
|
boolean |
isMappingType()
|
boolean |
isNumberType()
|
boolean |
isSequenceType()
|
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 PyObject func_globals
public PyObject[] func_defaults
public PyCode func_code
public PyObject __dict__
public PyObject func_closure
Constructor Detail |
public PyFunction(PyObject globals, PyObject[] defaults, PyCode code, PyObject doc, PyObject[] closure_cells)
public PyFunction(PyObject globals, PyObject[] defaults, PyCode code, PyObject doc)
public PyFunction(PyObject globals, PyObject[] defaults, PyCode code)
public PyFunction(PyObject globals, PyObject[] defaults, PyCode code, PyObject[] closure_cells)
Method Detail |
public PyObject __dir__()
PyObject
__dir__
in class PyObject
public void __setattr__(java.lang.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 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 boolean isMappingType()
isMappingType
in class PyObject
public boolean isNumberType()
isNumberType
in class PyObject
public boolean isSequenceType()
isSequenceType
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 PyObject _doget(PyObject container)
_doget
in class PyObject
public PyObject _doget(PyObject container, PyObject wherefound)
_doget
in class PyObject
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 PyObject
public PyObject __call__(PyObject arg)
PyObject
__call__(args, keywords)
with the
appropriate arguments. The only reason to override this function
would be for improved performance.
__call__
in class PyObject
arg
- 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 PyObject
arg1
- 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 PyObject
arg1
- the first argument to the function.arg2
- the second argument to the function.arg3
- the third argument to the function.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 PyObject __call__(PyObject arg1, 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 PyObject
arg1
- 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 java.lang.String toString()
toString
in class PyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |