diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-06-08 23:46:19 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-06-08 23:46:19 -0400 |
| commit | 3c7a00172b3b86add668257ca35b873fc85a7017 (patch) | |
| tree | 73fa2eadacb5b8722258c159076bf48082eb607e /python/lineardisassembly.py | |
| parent | ef4e70f68d8c0855bcc64ad49f8f47a78dd3552a (diff) | |
final refactor for missing parameters
Diffstat (limited to 'python/lineardisassembly.py')
| -rw-r--r-- | python/lineardisassembly.py | 94 |
1 files changed, 83 insertions, 11 deletions
diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py index d88c1e8f..517e64c4 100644 --- a/python/lineardisassembly.py +++ b/python/lineardisassembly.py @@ -21,27 +21,99 @@ class LinearDisassemblyPosition(object): """ - ``class LinearDisassemblyPosition`` is a helper object containing the position of the current Linear Disassembly. + ``class LinearDisassemblyPosition`` is a helper object containing the position of the current Linear Disassembly .. note:: This object should not be instantiated directly. Rather call \ :py:meth:`get_linear_disassembly_position_at` which instantiates this object. """ def __init__(self, func, block, addr): - self.function = func - self.block = block - self.address = addr + self._function = func + self._block = block + self._address = addr + + @property + def function(self): + """ """ + return self._function + + @function.setter + def function(self, value): + self._function = value + + @property + def block(self): + """ """ + return self._block + + @block.setter + def block(self, value): + self._block = value + + @property + def address(self): + """ """ + return self._address + + @address.setter + def address(self, value): + self._address = value class LinearDisassemblyLine(object): def __init__(self, line_type, func, block, line_offset, contents): - self.type = line_type - self.function = func - self.block = block - self.line_offset = line_offset - self.contents = contents + self._type = line_type + self._function = func + self._block = block + self._line_offset = line_offset + self._contents = contents def __str__(self): - return str(self.contents) + return str(self._contents) def __repr__(self): - return repr(self.contents) + return repr(self._contents) + + @property + def type(self): + """ """ + return self._type + + @type.setter + def type(self, value): + self._type = value + + @property + def function(self): + """ """ + return self._function + + @function.setter + def function(self, value): + self._function = value + + @property + def block(self): + """ """ + return self._block + + @block.setter + def block(self, value): + self._block = value + + @property + def line_offset(self): + """ """ + return self._line_offset + + @line_offset.setter + def line_offset(self, value): + self._line_offset = value + + @property + def contents(self): + """ """ + return self.contents + + @contents.setter + def contents(self, value): + self.contents = value |
