Top Fields Constructors Methods
org.python.core

public Class PyBuiltinMethodSet

extends PyBuiltinFunctionSet
implements Cloneable, Traverseproc
Class Inheritance
All Implemented Interfaces
org.python.core.Traverseproc, java.lang.Cloneable
Known Direct Subclasses
com.ziclix.python.sql.ConnectionFunc, com.ziclix.python.sql.CursorFunc, com.ziclix.python.sql.ExtendedCursorFunc, com.ziclix.python.sql.util.BCPFunc

Field Summary

Modifier and TypeField and Description
protected PyObject
private Class<?>
Inherited from org.python.core.PyBuiltinFunctionSet:
index

Constructor Summary

AccessConstructor and Description
public
PyBuiltinMethodSet(String name, int index, int minargs, int maxargs, String doc, Class<?> type)

Method Summary

Modifier and TypeMethod and Description
public PyObject
__get__(PyObject
- the instance accessing this descriptor. Can be null if this is being accessed by a type.
obj
,
PyObject
- the type accessing this descriptor. Will be null if obj exists as obj is of the type accessing the descriptor.
type
)

Overrides org.python.core.PyObject.__get__.

Get descriptor for this PyObject.

public PyBuiltinCallable
bind(PyObject bindTo)

Overrides org.python.core.PyBuiltinFunction.bind.

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

public PyObject
public boolean
public boolean
public String
toString()

Overrides org.python.core.PyBuiltinFunction.toString.

Returns a string representation of the object.

public int
traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Field Detail

__self__back to summary
protected PyObject __self__
typeback to summary
private Class<?> type

Constructor Detail

PyBuiltinMethodSetback to summary
public PyBuiltinMethodSet(String name, int index, int minargs, int maxargs, String doc, Class<?> type)

Method Detail

__get__back to summary
public PyObject __get__(PyObject obj, PyObject type)

Overrides org.python.core.PyObject.__get__.

Doc from org.python.core.PyObject.__get__.

Get descriptor for this PyObject.

Parameters
obj:PyObject

- the instance accessing this descriptor. Can be null if this is being accessed by a type.

type:PyObject

- the type accessing this descriptor. Will be null if obj exists as obj is of the type accessing the descriptor.

Returns:PyObject

- the object defined for this descriptor for the given obj and type.

Annotations
@Override

bindback to summary
public PyBuiltinCallable bind(PyObject bindTo)

Overrides org.python.core.PyBuiltinFunction.bind.

Doc from org.python.core.PyBuiltinCallable.bind.

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

Annotations
@Override
getSelfback to summary
public PyObject getSelf()

Overrides org.python.core.PyBuiltinCallable.getSelf.

Annotations
@Override
implementsDescrGetback to summary
public boolean implementsDescrGet()

Overrides org.python.core.PyObject.implementsDescrGet.

Annotations
@Override
refersDirectlyToback to summary
public boolean refersDirectlyTo(PyObject ob)

Implements org.python.core.Traverseproc.refersDirectlyTo.

Doc from org.python.core.Traverseproc.refersDirectlyTo.

Optional operation. Should only be implemented if it is more efficient than calling traverse(Visitproc, Object) with a visitproc that just watches out for ob. Must return false if ob is null.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.python.core.PyBuiltinFunction.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

traverseback to summary
public int traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Doc from org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects. Like in CPython, arg must be passed unmodified to visit as its second parameter. If Visitproc#visit(PyObject, Object) returns nonzero, this return value must be returned immediately by traverse. Visitproc#visit(PyObject, Object) must not be called with a null PyObject-argument.

Annotations
@Override