Top Inners Fields Constructors Methods
org.python.core

public abstract Class PyBuiltinCallable

extends PyObject
Class Inheritance
Known Direct Subclasses
org.python.core.PyBuiltinFunction, org.python.core.PyBuiltinMethod
Annotations
@Untraversable
@ExposedType
name:builtin_function_or_method
isBaseType:false
Imports
java.io.Serializable, org.python.expose.ExposedGet, .ExposedType

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static interface

Field Summary

Modifier and TypeField and Description
protected String
protected PyBuiltinCallable.Info
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtypeTYPE

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public abstract PyBuiltinCallable
bind(PyObject self)

Returns a new instance of this type of PyBuiltinFunction bound to self

public PyObject
public String
public PyObject
public PyObject
public PyObject
public void
public String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

Inherited from org.python.core.PyObject:
__abs____add____and____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____cmp____coerce____coerce_ex____complex____contains____delattr____delattr____delete____delitem____delitem____delslice____delslice____dir____div____divmod____ensure_finalizer____eq____findattr____findattr____findattr_ex____finditem____finditem____finditem____float____floordiv____format____ge____get____getattr____getattr____getitem____getitem____getnewargs____getslice____getslice____gt____hash____hex____iadd____iand____idiv____idivmod____ifloordiv____ilshift____imod____imul____index____int____invert____ior____ipow____irshift____isub____iter____iternext____itruediv____ixor____le____len____long____lshift____lt____mod____mul____ne____neg____nonzero____not____oct____or____pos____pow____pow____radd____rand____rawdir____rdiv____rdivmod____reduce____reduce_ex____reduce_ex____repr____rfloordiv____rlshift____rmod____rmul____ror____rpow____rrshift____rshift____rsub____rtruediv____rxor____set____setattr____setattr____setitem____setitem____setitem____setslice____setslice____str____sub____tojava____truediv____trunc____unicode____xor___add_and_basic_add_basic_and_basic_div_basic_divmod_basic_floordiv_basic_iadd_basic_iand_basic_idiv_basic_idivmod_basic_ifloordiv_basic_ilshift_basic_imod_basic_imul_basic_ior_basic_ipow_basic_irshift_basic_isub_basic_itruediv_basic_ixor_basic_lshift_basic_mod_basic_mul_basic_or_basic_pow_basic_rshift_basic_sub_basic_truediv_basic_xor_callextra_cmp_coerce_div_divmod_doget_doget_doset_eq_floordiv_ge_gt_iadd_iand_idiv_idivmod_ifloordiv_ilshift_imod_imul_in_ior_ipow_irshift_is_isnot_isub_itruediv_ixor_jcall_jcallexc_jthrow_le_lshift_lt_mod_mul_ne_notin_or_pow_rshift_sub_truediv_unsupportedop_xoradaptToCoerceTupleasDoubleasIndexasIndexasIntasIntasIterableasLongasLongasNameasNameasStringasStringasStringOrNullasStringOrNullbit_lengthconjugatedelDictdelTypedispatch__init__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypejdontdelmergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___contains__object___delattr__object___delattr__object___findattr__object___format__object___getattribute__object___hash__object___init__object___new__object___reduce__object___reduce_ex__object___setattr__object___setattr__object___subclasshook__object_toStringproxyInitreadonlyAttributeErrorrunsupportedopMessagesetDictsetTypeunsupportedopMessage

Field Detail

docback to summary
protected String doc
infoback to summary
protected PyBuiltinCallable.Info info

Constructor Detail

PyBuiltinCallableback to summary
protected PyBuiltinCallable(PyType type, PyBuiltinCallable.Info info)
PyBuiltinCallableback to summary
protected PyBuiltinCallable(PyBuiltinCallable.Info info)

Method Detail

bindback to summary
public abstract PyBuiltinCallable bind(PyObject self)

Returns a new instance of this type of PyBuiltinFunction bound to self

fastGetNameback to summary
public PyObject fastGetName()
Annotations
@ExposedGet
name:__name__
getDocback to summary
public String getDoc()
Annotations
@ExposedGet
name:__doc__
getModuleback to summary
public PyObject getModule()
Annotations
@ExposedGet
name:__module__
getSelfback to summary
public PyObject getSelf()
Annotations
@ExposedGet
name:__self__
makeCallback to summary
public PyObject makeCall()
Annotations
@ExposedGet
name:__call__
setInfoback to summary
public void setInfo(PyBuiltinCallable.Info info)
toStringback to summary
public String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override

org.python.core back to summary

public Class PyBuiltinCallable.DefaultInfo

extends Object
implements Info
Class Inheritance
All Implemented Interfaces
org.python.core.PyBuiltinCallable.Info, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private int
private int
private String

Constructor Summary

AccessConstructor and Description
public
DefaultInfo(String name, int minargs, int maxargs)

public

Method Summary

Modifier and TypeMethod and Description
public static boolean
check(int nargs, int minargs, int maxargs)

public int
public int
public String
public static PyException
unexpectedCall(int nargs, boolean keywords, String name, int minargs, int maxargs)

public PyException
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxargsback to summary
private int maxargs
minargsback to summary
private int minargs
nameback to summary
private String name

Constructor Detail

DefaultInfoback to summary
public DefaultInfo(String name, int minargs, int maxargs)
DefaultInfoback to summary
public DefaultInfo(String name)

Method Detail

checkback to summary
public static boolean check(int nargs, int minargs, int maxargs)
getMaxargsback to summary
public int getMaxargs()

Implements org.python.core.PyBuiltinCallable.Info.getMaxargs.

getMinargsback to summary
public int getMinargs()

Implements org.python.core.PyBuiltinCallable.Info.getMinargs.

getNameback to summary
public String getName()

Implements org.python.core.PyBuiltinCallable.Info.getName.

unexpectedCallback to summary
public static PyException unexpectedCall(int nargs, boolean keywords, String name, int minargs, int maxargs)
unexpectedCallback to summary
public PyException unexpectedCall(int nargs, boolean keywords)

Implements org.python.core.PyBuiltinCallable.Info.unexpectedCall.

org.python.core back to summary

public Interface PyBuiltinCallable.Info

extends Serializable
Known Direct Implementers
org.python.core.PyBuiltinCallable.DefaultInfo, org.python.core.PyMethodDescr

Method Summary

Modifier and TypeMethod and Description
public int
public int
public String
public PyException
unexpectedCall(int nargs, boolean keywords)

Method Detail

getMaxargsback to summary
public int getMaxargs()
getMinargsback to summary
public int getMinargs()
getNameback to summary
public String getName()
unexpectedCallback to summary
public PyException unexpectedCall(int nargs, boolean keywords)