def get_fields(self):
l = []<EOL>for i in self.classes.class_def:<EOL><INDENT>for j in i.get_fields():<EOL><INDENT>l.append(j)<EOL><DEDENT><DEDENT>return l<EOL>
Return all field objects

:rtype: a list of :class:`EncodedField` objects