def dump(self, f=sys.stdout):
    f.write(('\nclass: %s\n' % self.get_name()))
    dex = self.get_dex()
    class_def_offset = self.class_def.get_offset()
    class_def_idx = dex.get_class_def_index_from_offset(class_def_offset)
    f.write(('    class_def[%u] @ %#8.8x:\n' % (class_def_idx, class_def_offset)))
    self.class_def.dump(f=f, flat=False, prefix='        ')
    f.write(('    class_data_item @ %#8.8x:\n' % self.class_def.class_data.get_offset()))
    self.class_def.class_data.dump(f=f, flat=False, prefix='        ')
    f.write('\n')
def dump(self, f=sys.stdout):
    f.write(('\nclass: %s\n' % self.get_name()))
    dex = self.get_dex()
    class_def_offset = self.class_def.get_offset()
    class_def_idx = dex.get_class_def_index_from_offset(class_def_offset)
    f.write(('    class_def[%u] @ %#8.8x:\n' % (class_def_idx, class_def_offset)))
    self.class_def.dump(f=f, flat=False, prefix='        ')
    f.write(('    class_data_item @ %#8.8x:\n' % self.class_def.class_data.get_offset()))
    self.class_def.class_data.dump(f=f, flat=False, prefix='        ')
    f.write('\n')