mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 11:17:38 +02:00
Add additional docstrings and refactor/rearrange the entire codebase.
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
from abc import abstractmethod, ABCMeta
|
||||
|
||||
from volatility.framework import validity
|
||||
|
||||
|
||||
__author__ = 'mike'
|
||||
|
||||
class Renderer(validity.ValidityRoutines):
|
||||
|
||||
class Renderer(validity.ValidityRoutines):
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
def __init__(self, options):
|
||||
"""Accepts an options object to configure the renderers"""
|
||||
#FIXME: Once the config option objects are in place, put the type_check in place
|
||||
# FIXME: Once the config option objects are in place, put the type_check in place
|
||||
|
||||
@abstractmethod
|
||||
def get_render_options(self):
|
||||
|
||||
@@ -52,7 +52,7 @@ class SymbolTableInterface(validity.ValidityRoutines):
|
||||
"""Returns None or a symbol_space for handling space specific native types"""
|
||||
return self._native_structures
|
||||
|
||||
### Functions for overriding classes
|
||||
# ## Functions for overriding classes
|
||||
|
||||
def set_structure_class(self, name, clazz):
|
||||
"""Overrides the object class for a specific structure symbol
|
||||
@@ -74,7 +74,7 @@ class SymbolTableInterface(validity.ValidityRoutines):
|
||||
#
|
||||
# def __len__(self):
|
||||
# """Returns the number of items in the symbol list"""
|
||||
# return len(self.structures)
|
||||
# return len(self.structures)
|
||||
#
|
||||
# def __getitem__(self, key):
|
||||
# """Resolves a symbol name into an object template
|
||||
|
||||
Reference in New Issue
Block a user