.. title:: PropertyWrapper lisa.wlgen.rta.PropertyWrapper ============================== .. autoclass:: lisa.wlgen.rta::PropertyWrapper :no-members: :no-inherited-members: :no-undoc-members: :no-private-members: :no-special-members: .. rubric:: Classes .. list-table:: :align: left * - :class:`~lisa.wlgen.rta.PropertyBase.__class__` :sup:`inherited` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyBase.__class__ Metaclass for properties. .. rubric:: Attributes .. list-table:: :align: left * - :attr:`~lisa.wlgen.rta.PropertyWrapper.KEY` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyBase Subclasses can override this attribute so that :meth:`PropertyBase.from_key` knows that it can call their :meth:`~PropertyBase._from_key` method for that key. .. rubric:: Properties .. list-table:: :align: left * - :attr:`~lisa.wlgen.rta.PropertyWrapper.val` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper Value "payload" of the property. * - :attr:`~lisa.wlgen.rta.PropertyBase.key` :sup:`inherited` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyBase Key of the instance. .. rubric:: Methods .. list-table:: :align: left * - :meth:`~lisa.wlgen.rta.PropertyWrapper.__copy__` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper * - :meth:`~lisa.wlgen.rta.PropertyWrapper.__getattr__` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper Be as transparent as possible, so that this sort of call would work: ``self.__prop.__and__(self)``. * - :meth:`~lisa.wlgen.rta.PropertyWrapper.__rand__` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper * - :meth:`~lisa.wlgen.rta.PropertyWrapper.from_key` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper Alternative constructor that is available with the same signature for all properties. * - :meth:`~lisa.wlgen.rta.PropertyWrapper.with_wrapped` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyWrapper Build a new instance with modified wrapped property. * - :meth:`~lisa.utils.SimpleHash.HASH_COERCE` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.SimpleHash Used to coerce the values of ``self.__dict__`` to hashable values. * - :meth:`~lisa.wlgen.rta.PropertyBase.__and__` :sup:`inherited` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyBase Combine two instances of the same property together. * - :meth:`~lisa.wlgen.rta.PropertyBase.find_cls` :sup:`inherited` - .. withrefctx:: :module: lisa.wlgen.rta :class: lisa.wlgen.rta.PropertyBase Find which subclass can handle ``key``. Classes ------- .. autoclass:: lisa.wlgen.rta::PropertyWrapper.__class__ Attributes ---------- .. autoattribute:: lisa.wlgen.rta::PropertyWrapper.KEY Properties ---------- .. autoproperty:: lisa.wlgen.rta::PropertyWrapper.val .. autoproperty:: lisa.wlgen.rta::PropertyWrapper.key Methods ------- .. automethod:: lisa.wlgen.rta::PropertyWrapper.__copy__ .. automethod:: lisa.wlgen.rta::PropertyWrapper.__getattr__ .. automethod:: lisa.wlgen.rta::PropertyWrapper.__rand__ .. automethod:: lisa.wlgen.rta::PropertyWrapper.from_key .. automethod:: lisa.wlgen.rta::PropertyWrapper.with_wrapped .. automethod:: lisa.wlgen.rta::PropertyWrapper.HASH_COERCE .. automethod:: lisa.wlgen.rta::PropertyWrapper.__and__ .. automethod:: lisa.wlgen.rta::PropertyWrapper.find_cls