Mercurial > paraspace
comparison paraspace/dexfile.py @ 101:b2db11aed6b8
Provide method of insert class definition in DEXFile_linked class.
- Gather APIs about linked DEX at DEXFile_linked class to make a focus,
and make it easy to be understood and managed.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 26 Jul 2011 12:46:24 +0800 |
parents | c0c127c7b37e |
children | 7fcd555d802b |
comparison
equal
deleted
inserted
replaced
100:355986e5cfbd | 101:b2db11aed6b8 |
---|---|
1730 pass | 1730 pass |
1731 | 1731 |
1732 restore_dependencies(unlinked, self._dep_decls) | 1732 restore_dependencies(unlinked, self._dep_decls) |
1733 | 1733 |
1734 return unlinked | 1734 return unlinked |
1735 | |
1736 ## \brief Insert a linked class definition into the DEX file. | |
1737 def insert_class(self, classdef): | |
1738 from paraspace.injection import dexfile_insert_class | |
1739 | |
1740 assert isinstance(classdef, _DEX_ClassDef) | |
1741 | |
1742 clone = dexfile_insert_class(self, classdef) | |
1743 return clone | |
1735 pass | 1744 pass |
1736 | 1745 |
1737 | 1746 |
1738 if __name__ == '__main__': | 1747 if __name__ == '__main__': |
1739 import sys | 1748 import sys |