diff paraspace/dexfile.py @ 55:6e4cf6905729

Seeking parents in reversed order for _build_associations()
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 24 Jun 2011 00:33:08 +0800
parents 870312703ba1
children fa8fe7d714b9
line wrap: on
line diff
--- a/paraspace/dexfile.py	Thu Jun 23 09:32:51 2011 +0800
+++ b/paraspace/dexfile.py	Fri Jun 24 00:33:08 2011 +0800
@@ -366,6 +366,21 @@
     #
     def build_associations(self, left, right):
         raise NotImplementedError, 'build_associations is not implemented'
+
+    def parse(self, parent, data, off):
+        return self
+
+    def sizeof(self, obj):
+        return 0
+
+    def to_str(self):
+        return ''
+
+    def compute_size(self):
+        pass
+
+    def children(self):
+        return []
     pass
 
 
@@ -1061,7 +1076,7 @@
     child_names = \
         'registersSize insSize outsSize triesSize debugInfoOff ' \
         'insnsSize insns padding try_items handlers_size ' \
-        'catch_handler_items padding2'.split()
+        'catch_handler_items try_catch_asso padding2'.split()
     pass