def attribute_rewrite_map(self):
rewrite_map = dict()<EOL>token_rewrite_map = self.generate_attribute_token_rewrite_map()<EOL>for attribute_name, type_instance in self.getmembers():<EOL><INDENT>if isinstance(type_instance, DataType):<EOL><INDENT>attribute_tokens = attribute_name.split('<STR_LIT:_>')<EOL>rewritten_attribute_name = '<STR_LIT>'<EOL>for token in attribute_tokens:<EOL><INDENT>rewritten_attribute_name += token_rewrite_map[token] + "<STR_LIT:_>"<EOL><DEDENT>rewritten_attribute_name = rewritten_attribute_name[:-<NUM_LIT:1>]<EOL>rewrite_map[attribute_name] = rewritten_attribute_name<EOL><DEDENT><DEDENT>return rewrite_map<EOL>
Example: long_name -> a_b

:return: the rewrite map
:rtype: dict