Top Fields Constructors Methods
org.python.core

public abstract Class PyBuiltinMethodNarrow

extends PyBuiltinMethod
Class Inheritance
Known Direct Subclasses
org.python.core.PyJavaType.ComparableMethod, org.python.core.JavaProxyList.ListMethod, org.python.core.JavaProxyMap.MapMethod, org.python.core.JavaProxySet.SetMethod, org.python.core.PyBuiltinClassMethodNarrow

Field Summary

Inherited from org.python.core.PyBuiltinMethod:
self

Constructor Summary

AccessConstructor and Description
protected
PyBuiltinMethodNarrow(String name)

Creates a method for the given name that takes no arguments.

protected
PyBuiltinMethodNarrow(String name, int numArgs)

Creates a method for the name that takes exactly numArgs arguments.

protected
PyBuiltinMethodNarrow(String name, int minArgs, int maxArgs)

Creates a method for the given name that takes at least minArgs and at most maxArgs arguments.

protected
protected

Method Summary

Modifier and TypeMethod and Description
public PyObject
__call__(PyObject[]
all arguments to the function (including keyword arguments).
args
,
String[]
the keywords used for all keyword arguments.
keywords
)

Overrides org.python.core.PyObject.__call__.

The basic method to override when implementing a callable object.

public PyObject
__call__(PyObject[]
all arguments to the function.
args
)

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method when no keywords are passed.

public PyObject
__call__()

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method with no arguments.

public PyObject
__call__(PyObject
the single argument to the function.
arg0
)

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method with one argument.

public PyObject
__call__(PyObject
the first argument to the function.
arg0
,
PyObject
the second argument to the function.
arg1
)

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method with two arguments.

public PyObject
__call__(PyObject
the first argument to the function.
arg0
,
PyObject
the second argument to the function.
arg1
,
PyObject
the third argument to the function.
arg2
)

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method with three arguments.

public PyObject
__call__(PyObject
the first argument to the function.
arg0
,
PyObject
the second argument to the function.
arg1
,
PyObject
the third argument to the function.
arg2
,
PyObject
the fourth argument to the function.
arg3
)

Overrides org.python.core.PyObject.__call__.

A variant of the __call__ method with four arguments.

Inherited from org.python.core.PyBuiltinMethod:
__cmp__bindgetSelfhashCodemakeDescriptorrefersDirectlyTotraverse

Constructor Detail

PyBuiltinMethodNarrowback to summary
protected PyBuiltinMethodNarrow(String name)

Creates a method for the given name that takes no arguments.

PyBuiltinMethodNarrowback to summary
protected PyBuiltinMethodNarrow(String name, int numArgs)

Creates a method for the name that takes exactly numArgs arguments.

PyBuiltinMethodNarrowback to summary
protected PyBuiltinMethodNarrow(String name, int minArgs, int maxArgs)

Creates a method for the given name that takes at least minArgs and at most maxArgs arguments.

PyBuiltinMethodNarrowback to summary
protected PyBuiltinMethodNarrow(PyObject self, PyBuiltinCallable.Info info)
PyBuiltinMethodNarrowback to summary
protected PyBuiltinMethodNarrow(PyType type, PyObject self, PyBuiltinCallable.Info info)

Method Detail

__call__back to summary
public PyObject __call__(PyObject[] args, String[] keywords)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.

Parameters
args:PyObject[]

all arguments to the function (including keyword arguments).

keywords:String[]

the keywords used for all keyword arguments.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject[] args)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method when no keywords are passed. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
args:PyObject[]

all arguments to the function.

Annotations
@Override
__call__back to summary
public PyObject __call__()

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method with no arguments. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject arg0)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method with one argument. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
arg0:PyObject

the single argument to the function.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject arg0, PyObject arg1)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method with two arguments. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
arg0:PyObject

the first argument to the function.

arg1:PyObject

the second argument to the function.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method with three arguments. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
arg0:PyObject

the first argument to the function.

arg1:PyObject

the second argument to the function.

arg2:PyObject

the third argument to the function.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject arg0, PyObject arg1, PyObject arg2, PyObject arg3)

Overrides org.python.core.PyObject.__call__.

Doc from org.python.core.PyObject.__call__.

A variant of the __call__ method with four arguments. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
arg0:PyObject

the first argument to the function.

arg1:PyObject

the second argument to the function.

arg2:PyObject

the third argument to the function.

arg3:PyObject

the fourth argument to the function.

Annotations
@Override