call(...)
with exactly that number. Callable
objects that implement this interface may override signatures of
call(...)
that they implement most efficiently.
This is an efficiency mechanism similar to the "fast call" paths in CPython. It may provide a basis for efficient call sites for function and method calling when argument lists are simple.
Modifier and Type | Method and Description |
---|---|
public Object | Returns: result of the invocationall arguments given, positional then keyword args, String[] of keyword arguments or names)null Invoke the target object with standard arguments
( |
public default Object | |
public default Object | |
public default Object | |
public default Object | |
public default Object | |
public default Object | |
public TypeError | Returns: PythonTypeError to throwpreviously thrown by this object ae, Object[] all arguments given, positional then keyword args, String[] of keyword arguments or names)null Translate an |
public default TypeError | Returns: PythonTypeError to throwpreviously thrown by this object ae, Object[] all arguments given, positional then keyword args)As |
public default TypeError | Returns: PythonTypeError to throwpreviously thrown by this object ae, Object[] positional and keyword arguments s, int position of arguments in the array p, int number of positional and keyword arguments n, String[] of keyword arguments or names)null As |
public default TypeError | Returns: PythonTypeError to throwpreviously thrown by this object ae, Object[] positional and keyword arguments s, int position of arguments in the array p, int number of positional arguments n)As
|
public default Object | Returns: the return from the call to the objectpositional and keyword arguments s, int position of arguments in the array p, int number of positional and keyword arguments n, String[] of keyword arguments or names)null Call this object with the vector call protocol. |
public default Object | Returns: the return from the call to the objectpositional and keyword arguments s, int position of arguments in the array p, int number of positional arguments n)Call this object with the vector call protocol, in the case where no arguments were given by keyword. |
call | back to summary |
---|---|
public Object call(Object[] args, String[] names) throws ArgumentError, Throwable Invoke the target object with standard arguments
(
Implementation Specification An object that is a Implementation Note The reason we do not name this method
|
call | back to summary |
---|---|
public default Object call(Object[] args) throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
call | back to summary |
---|---|
public default Object call() throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
call | back to summary |
---|---|
public default Object call(Object a0) throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
call | back to summary |
---|---|
public default Object call(Object a0, Object a1) throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
call | back to summary |
---|---|
public default Object call(Object a0, Object a1, Object a2) throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
call | back to summary |
---|---|
public default Object call(Object a0, Object a1, Object a2, Object a3) throws ArgumentError, Throwable Call the object with arguments given by position only. Implementation Specification The default implementation calls
|
typeError | back to summary |
---|---|
public TypeError typeError(ArgumentError ae, Object[] args, String[] names) Translate an
Any of the optimised
|
typeError | back to summary |
---|---|
public default TypeError typeError(ArgumentError ae, Object[] args) As
|
typeError | back to summary |
---|---|
public default TypeError typeError(ArgumentError ae, Object[] s, int p, int n, String[] names) As
|
typeError | back to summary |
---|---|
public default TypeError typeError(ArgumentError ae, Object[] s, int p, int n) As
|
vectorcall | back to summary |
---|---|
public default Object vectorcall(Object[] s, int p, int n, String[] names) throws ArgumentError, Throwable Call this object with the vector call protocol. This supports CPython byte code generated according to the conventions in PEP-590.
The
|
vectorcall | back to summary |
---|---|
public default Object vectorcall(Object[] s, int p, int n) throws ArgumentError, Throwable Call this object with the vector call protocol, in the case where no arguments were given by keyword. This supports CPython byte code generated according to the conventions in PEP-590, but specialised for this case.
The
|