Class PyDataDescr

  • All Implemented Interfaces:
    java.io.Serializable, Traverseproc

    public abstract class PyDataDescr
    extends PyDescriptor
    Implements type checking and return type coercion for a data descriptor. A subclass must at least implement invokeGet which is called in __get__ operations. If the descriptor supports setting and deleting, the subclass must also override invokeSet and invokeDel respectively. When implementing those methods, their respective implementsDescr* methods should be overriden as well.
    See Also:
    Serialized Form
    • Constructor Detail

      • PyDataDescr

        public PyDataDescr​(PyType onType,
                           java.lang.String name,
                           java.lang.Class ofType,
                           java.lang.String doc)
        Parameters:
        onType - - the type the descriptor belongs to
        name - - the name of the descriptor on descriptor type
        ofType - - the type returned by the descriptor>
<