Class PyProperty

java.lang.Object
org.python.core.PyObject
org.python.core.PyProperty
All Implemented Interfaces:
Serializable, PyType.Newstyle
Direct Known Subclasses:
PyPropertyDerived

public class PyProperty extends PyObject implements PyType.Newstyle
See Also:
  • Field Details

  • Constructor Details

    • PyProperty

      public PyProperty()
    • PyProperty

      public PyProperty(PyType subType)
  • Method Details

    • typeSetup

      public static void typeSetup(PyObject dict, PyType.Newstyle marker)
    • getDoc

      public PyObject getDoc()
      Overrides:
      getDoc in class PyObject
    • getFdel

      public PyObject getFdel()
    • getFset

      public PyObject getFset()
    • getFget

      public PyObject getFget()
    • setFget

      public void setFget(PyObject py)
    • setFset

      public void setFset(PyObject py)
    • setFdel

      public void setFdel(PyObject py)
    • setDoc

      public void setDoc(PyObject py)
    • property_init

      public void property_init(PyObject[] args, String[] keywords)
    • __call__

      public PyObject __call__(PyObject arg1, PyObject[] args, String[] keywords)
      Description copied from class: PyObject
      A variant of the __call__ method with one extra initial argument. This variant is used to allow method invocations to be performed efficiently. The default behavior is to invoke __call__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.
      Overrides:
      __call__ in class PyObject
      Parameters:
      arg1 - the first argument to the function.
      args - the last arguments to the function (including keyword arguments).
      keywords - the keywords used for all keyword arguments.
    • __get__

      public PyObject __get__(PyObject obj, PyObject type)
      Overrides:
      __get__ in class PyObject
    • __set__

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

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