Top Fields Constructors Methods
org.python.core

public Class PySlot

extends PyDescriptor
Class Inheritance
Annotations
@Untraversable
@ExposedType
name:member_descriptor
base:PyObject
isBaseType:false
Imports
org.python.expose.ExposedGet, .ExposedMethod, .ExposedType

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.python.core.PyDescriptor:
dtypename

Constructor Summary

AccessConstructor and Description
public
PySlot(PyType dtype, String name, int index)

Method Summary

Modifier and TypeMethod and Description
public void
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 void
public String

Returns:

a name String
getName
()

Return the name this descriptor is exposed as.

public PyObject

Returns:

this descriptor's owner
getObjClass
()

Return the owner class of this descriptor.

public boolean
public boolean
public void
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.PyDescriptor:
checkCallerTypecheckGetterTyperefersDirectlyTotraverse

Field Detail

indexback to summary
private int index

Constructor Detail

PySlotback to summary
public PySlot(PyType dtype, String name, int index)

Method Detail

__delete__back to summary
public void __delete__(PyObject obj)

Overrides org.python.core.PyObject.__delete__.

Annotations
@Override
__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

__set__back to summary
public void __set__(PyObject obj, PyObject value)

Overrides org.python.core.PyObject.__set__.

Annotations
@Override
getNameback to summary
public String getName()

Return the name this descriptor is exposed as.

Returns:String

a name String

Annotations
@ExposedGet
name:__name__

getObjClassback to summary
public PyObject getObjClass()

Return the owner class of this descriptor.

Returns:PyObject

this descriptor's owner

Annotations
@ExposedGet
name:__objclass__

implementsDescrSetback to summary
public boolean implementsDescrSet()

Overrides org.python.core.PyObject.implementsDescrSet.

Annotations
@Override
isDataDescrback to summary
public boolean isDataDescr()

Overrides org.python.core.PyObject.isDataDescr.

Annotations
@Override
member_descriptor___delete__back to summary
public void member_descriptor___delete__(PyObject obj)
Annotations
@ExposedMethod
member_descriptor___get__back to summary
public PyObject member_descriptor___get__(PyObject obj, PyObject type)
Annotations
@ExposedMethod
defaults:null
member_descriptor___set__back to summary
public void member_descriptor___set__(PyObject obj, PyObject value)
Annotations
@ExposedMethod
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