org.python.core

Class PyBuiltinFunctionSet

public class PyBuiltinFunctionSet extends PyObject implements Cloneable

A helper class for faster implementations of commonly called methods.

Subclasses of PyBuiltinFunctionSet will implement some or all of the __call__ method with a switch on the index number.

Field Summary
PyObject__doc__
static PyObject__members__
PyObject__name__
PyObject__self__
Constructor Summary
PyBuiltinFunctionSet(String name, int index, int minargs, int maxargs, boolean isMethod, String doc)
Method Summary
PyExceptionargCountError(int nargs)
PyObjectfancyCall(PyObject[] args)
booleanisMappingType()
booleanisNumberType()
booleanisSequenceType()
StringtoString()
PyObject_doget(PyObject container)
PyObject_doget(PyObject container, PyObject wherefound)
PyObject__call__(PyObject[] args)
PyObject__call__(PyObject[] args, String[] kws)
PyObject__call__()
PyObject__call__(PyObject arg1)
PyObject__call__(PyObject arg1, PyObject arg2)
PyObject__call__(PyObject arg1, PyObject arg2, PyObject arg3)
PyObject__call__(PyObject arg1, PyObject arg2, PyObject arg3, PyObject arg4)

Field Detail

__doc__

public PyObject __doc__

__members__

public static PyObject __members__

__name__

public PyObject __name__

__self__

public PyObject __self__

Constructor Detail

PyBuiltinFunctionSet

public PyBuiltinFunctionSet(String name, int index, int minargs, int maxargs, boolean isMethod, String doc)

Method Detail

argCountError

public PyException argCountError(int nargs)

fancyCall

public PyObject fancyCall(PyObject[] args)

isMappingType

public boolean isMappingType()

isNumberType

public boolean isNumberType()

isSequenceType

public boolean isSequenceType()

toString

public String toString()

_doget

public PyObject _doget(PyObject container)

_doget

public PyObject _doget(PyObject container, PyObject wherefound)

__call__

public PyObject __call__(PyObject[] args)

__call__

public PyObject __call__(PyObject[] args, String[] kws)

__call__

public PyObject __call__()

__call__

public PyObject __call__(PyObject arg1)

__call__

public PyObject __call__(PyObject arg1, PyObject arg2)

__call__

public PyObject __call__(PyObject arg1, PyObject arg2, PyObject arg3)

__call__

public PyObject __call__(PyObject arg1, PyObject arg2, PyObject arg3, PyObject arg4)
Jython homepage