rope.refactor.encapsulate_field =============================== .. py:module:: rope.refactor.encapsulate_field Classes ------- .. autoapisummary:: rope.refactor.encapsulate_field.EncapsulateField rope.refactor.encapsulate_field.GetterSetterRenameInModule Module Contents --------------- .. py:class:: EncapsulateField(project, resource, offset) .. py:attribute:: project .. py:attribute:: name .. py:attribute:: pyname .. py:attribute:: resource .. py:method:: get_changes(getter=None, setter=None, resources=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Get the changes this refactoring makes If `getter` is not `None`, that will be the name of the getter, otherwise ``get_${field_name}`` will be used. The same is true for `setter` and if it is None set_${field_name} is used. `resources` can be a list of `rope.base.resource.File` that the refactoring should be applied on; if `None` all python files in the project are searched. .. py:method:: get_field_name() Get the name of the field to be encapsulated .. py:class:: GetterSetterRenameInModule(project, name, pyname, getter, setter) .. py:attribute:: project .. py:attribute:: name .. py:attribute:: finder .. py:attribute:: getter .. py:attribute:: setter .. py:method:: get_changed_module(resource=None, pymodule=None, skip_start=0, skip_end=0)