Class PyMethodDescr

    • Method Detail

      • getDoc

        public java.lang.String getDoc()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PyObject
      • __call__

        public PyObject __call__​(PyObject[] args,
                                 java.lang.String[] kwargs)
        Description copied from class: PyObject
        The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.
        Overrides:
        __call__ in class PyObject
        Parameters:
        args - all arguments to the function (including keyword arguments).
        kwargs - the keywords used for all keyword arguments.
      • __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.
      • getName

        public java.lang.String getName()
        Return the name this descriptor is exposed as.
        Specified by:
        getName in interface PyBuiltinCallable.Info
        Returns:
        a name String
      • getObjClass

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