parameters: (self)
return_statement: return rtn
docstring: Convert class to a string
docstring_summary: Convert class to a string
docstring_tokens: Convert class to a string
function: def __repr__(self):
          """Convert class to a string"""
          namespace_prefix = ""
          if self["namespace"]: namespace_prefix = self["namespace"] + "::"
          rtn = "%s %s"%(self["declaration_method"], namespace_prefix + self["name"])
          if self['abstract']: rtn += '    (abstract)\n'
          else: rtn += '\n'
  
          if 'doxygen' in list(self.keys()): rtn += self["doxygen"] + '\n'
          if 'parent' in list(self.keys()) and self['parent']: rtn += 'parent class: ' + self['parent'] + '\n'
  
          if "inherits" in list(self.keys()) and len(self["inherits"]):
              rtn += "Inherits: "
              for inheritClass in self["inherits"]:
                  if inheritClass.get("virtual", False): rtn += "virtual "
                  rtn += "%s %s, "%(inheritClass["access"], inheritClass["class"])
              rtn += "\n"
          rtn += "{\n"
          for accessSpecifier in supportedAccessSpecifier:
              rtn += "%s\n"%(accessSpecifier)
              #Enums
              if (len(self["enums"][accessSpecifier])):
                  rtn += "    // Enums\n"
              for enum in self["enums"][accessSpecifier]:
                  rtn += "    %s\n"%(repr(enum))
              #Properties
              if (len(self["properties"][accessSpecifier])):
                  rtn += "    // Properties\n"
              for property in self["properties"][accessSpecifier]:
                  rtn += "    %s\n"%(repr(property))
              #Methods
              if (len(self["methods"][accessSpecifier])):
                  rtn += "    // Methods\n"
              for method in self["methods"][accessSpecifier]:
                  rtn += "   %s\n"%(repr(method))
          rtn += "}\n"
          return rtn
function_tokens: def __repr__ ( self ) : namespace_prefix = "" if self [ "namespace" ] : namespace_prefix = self [ "namespace" ] + "::" rtn = "%s %s" % ( self [ "declaration_method" ] , namespace_prefix + self [ "name" ] ) if self [ 'abstract' ] : rtn += '    (abstract)\n' else : rtn += '\n' if 'doxygen' in list ( self . keys ( ) ) : rtn += self [ "doxygen" ] + '\n' if 'parent' in list ( self . keys ( ) ) and self [ 'parent' ] : rtn += 'parent class: ' + self [ 'parent' ] + '\n' if "inherits" in list ( self . keys ( ) ) and len ( self [ "inherits" ] ) : rtn += "Inherits: " for inheritClass in self [ "inherits" ] : if inheritClass . get ( "virtual" , False ) : rtn += "virtual " rtn += "%s %s, " % ( inheritClass [ "access" ] , inheritClass [ "class" ] ) rtn += "\n" rtn += "{\n" for accessSpecifier in supportedAccessSpecifier : rtn += "%s\n" % ( accessSpecifier ) #Enums if ( len ( self [ "enums" ] [ accessSpecifier ] ) ) : rtn += "    // Enums\n" for enum in self [ "enums" ] [ accessSpecifier ] : rtn += "    %s\n" % ( repr ( enum ) ) #Properties if ( len ( self [ "properties" ] [ accessSpecifier ] ) ) : rtn += "    // Properties\n" for property in self [ "properties" ] [ accessSpecifier ] : rtn += "    %s\n" % ( repr ( property ) ) #Methods if ( len ( self [ "methods" ] [ accessSpecifier ] ) ) : rtn += "    // Methods\n" for method in self [ "methods" ] [ accessSpecifier ] : rtn += "   %s\n" % ( repr ( method ) ) rtn += "}\n" return rtn