Class PySlot

All Implemented Interfaces:
Serializable, Traverseproc

public class PySlot extends PyDescriptor
See Also:
  • Constructor Details

    • PySlot

      public PySlot(PyType dtype, String name, int index)
  • Method Details

    • implementsDescrSet

      public boolean implementsDescrSet()
      Overrides:
      implementsDescrSet in class PyObject
    • isDataDescr

      public boolean isDataDescr()
      Overrides:
      isDataDescr in class PyObject
    • __get__

      public PyObject __get__(PyObject obj, PyObject type)
      Description copied from class: PyObject
      Get descriptor for this PyObject.
      Overrides:
      __get__ in class PyObject
      Parameters:
      obj - - the instance accessing this descriptor. Can be null if this is being accessed by a type.
      type - - the type accessing this descriptor. Will be null if obj exists as obj is of the type accessing the descriptor.
      Returns:
      - the object defined for this descriptor for the given obj and type.
    • member_descriptor___get__

      public PyObject member_descriptor___get__(PyObject obj, PyObject type)
    • __set__

      public void __set__(PyObject obj, PyObject value)
      Overrides:
      __set__ in class PyObject
    • member_descriptor___set__

      public void member_descriptor___set__(PyObject obj, PyObject value)
    • __delete__

      public void __delete__(PyObject obj)
      Overrides:
      __delete__ in class PyObject
    • member_descriptor___delete__

      public void member_descriptor___delete__(PyObject obj)
    • toString

      public String toString()
      Overrides:
      toString in class PyObject
    • getName

      public String getName()
      Return the name this descriptor is exposed as.
      Returns:
      a name String
    • getObjClass

      public PyObject getObjClass()
      Return the owner class of this descriptor.
      Returns:
      this descriptor's owner