Objects/call.c
: Py_Object_*
.
Modifier and Type | Field and Description |
---|---|
pack-priv static final String | |
private static final String[] | |
pack-priv static final String | |
pack-priv static final String |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
pack-priv static Object | Returns: the return from the call to the objecttarget callable, Object[] all the arguments (position then keyword) args, String[] of the keyword arguments names)Call an object with the standard |
pack-priv static Object | Returns: the return from the call to the objecttarget callable, PyTuple positional arguments argTuple, PyDict keyword arguments kwDict)Call an object with the classic CPython call protocol, that is, with a tuple of arguments given by position and a dictionary of key-value pairs providing arguments given by keyword. |
pack-priv static Object | |
pack-priv static Object | Returns: the return from the call to the objecttarget callable, Object positional arguments args, Object keyword arguments kwargs)Call an object with the CPython call protocol as supported in the
interpreter |
pack-priv static Object | Returns: the return from the call to the objecttarget callable, Object... positional arguments args)Call an object with positional arguments supplied from Java as
|
pack-priv static Object | Returns: result of calltarget of the method invocation obj, String identifying the method name, Object... positional arguments args)Resolve a name within an object and then call it with the given positional arguments supplied from Java. |
public static TypeError | Returns: exception to throwactual object offered as a keyword kwname)Create a |
pack-priv static String[] | Returns: the names as an array(keyword) names to convert kwnames)Convert a |
pack-priv static PyDict | Returns: dictionary ornull if kwnames==null positional and keyword arguments stack, int position of arguments in the array start, int number of positional arguments nargs, PyTuple tuple of names (may be kwnames)null if empty)Return a dictionary containing the last |
pack-priv static PyTuple | Returns: names of keyword argumentspositional arguments args, Map<Object, Object> keyword arguments (normally kwargs, Object[] PyDict )to receive positional and keyword arguments, must be
sized stack)args.length + kwargs.size() .Convert classic call arguments to an array and names of keywords to use in the CPython-style vector call. |
pack-priv static Object | Returns: the return from the call to the objecttarget callable, Object[] positional and keyword arguments stack, int position of arguments in the array start, int number of positional and keyword arguments nargs, PyTuple names of keyword arguments or kwnames)null Call an object with the vector call protocol with some arguments given by keyword. |
pack-priv static Object | Returns: the return from the call to the objecttarget callable, Object[] positional and keyword arguments (the stack) stack, int position of arguments in the array start, int number of positional and keyword arguments nargs)Call an object with the vector call protocol with no arguments given by keyword. |
ATTR_NOT_CALLABLE | back to summary |
---|---|
pack-priv static final String ATTR_NOT_CALLABLE |
NO_KEYWORDS | back to summary |
---|---|
private static final String[] NO_KEYWORDS |
OBJECT_NOT_CALLABLE | back to summary |
---|---|
pack-priv static final String OBJECT_NOT_CALLABLE |
OBJECT_NOT_VECTORCALLABLE | back to summary |
---|---|
pack-priv static final String OBJECT_NOT_VECTORCALLABLE |
Callables | back to summary |
---|---|
private Callables() |
call | back to summary |
---|---|
pack-priv static Object call(Object callable, Object[] args, String[] names) throws TypeError, Throwable Call an object with the standard |
call | back to summary |
---|---|
pack-priv static Object call(Object callable, PyTuple argTuple, PyDict kwDict) throws TypeError, Throwable Call an object with the classic CPython call protocol, that is, with a tuple of arguments given by position and a dictionary of key-value pairs providing arguments given by keyword. |
call | back to summary |
---|---|
pack-priv static Object call(Object callable) throws Throwable Call an object with no arguments. |
callEx | back to summary |
---|---|
pack-priv static Object callEx(Object callable, Object args, Object kwargs) throws TypeError, Throwable Call an object with the CPython call protocol as supported in the
interpreter |
callFunction | back to summary |
---|---|
pack-priv static Object callFunction(Object callable, Object... args) throws Throwable Call an object with positional arguments supplied from Java as
|
callMethod | back to summary |
---|---|
pack-priv static Object callMethod(Object obj, String name, Object... args) throws AttributeError, Throwable Resolve a name within an object and then call it with the given positional arguments supplied from Java. |
keywordTypeError | back to summary |
---|---|
public static TypeError keywordTypeError(Object kwname) Create a |
namesArray | back to summary |
---|---|
pack-priv static String[] namesArray(PyTuple kwnames) throws TypeError Convert a |
stackAsDict | back to summary |
---|---|
pack-priv static PyDict stackAsDict(Object[] stack, int start, int nargs, PyTuple kwnames) Return a dictionary containing the last |
unpackDict | back to summary |
---|---|
pack-priv static PyTuple unpackDict(Object[] args, Map<Object, Object> kwargs, Object[] stack) throws ArrayIndexOutOfBoundsException Convert classic call arguments to an array and names of keywords to use in the CPython-style vector call. |
vectorcall | back to summary |
---|---|
pack-priv static Object vectorcall(Object callable, Object[] stack, int start, int nargs, PyTuple kwnames) throws Throwable Call an object with the vector call protocol with some arguments
given by keyword. This supports CPython byte code generated
according to the conventions in PEP-590. Unlike its use in
CPython, this is not likely to be faster than the standard
|
vectorcall | back to summary |
---|---|
pack-priv static Object vectorcall(Object callable, Object[] stack, int start, int nargs) throws TypeError, Throwable Call an object with the vector call protocol with no arguments
given by keyword. This supports CPython byte code generated
according to the conventions in PEP-590. Unlike its use in
CPython, this is not likely to be faster than the standard
|