parameters: (self, iface_releases, comments=True)
return_statement: return ''.join(result)
docstring: Return a string representing the code for each wrapper method
      (using a string rather than writing to the file directly for testing.)
docstring_summary: Return a string representing the code for each wrapper method
      (using a string rather than writing to the file directly for testing.)
docstring_tokens: Return a string representing the code for each wrapper method ( using a string rather than writing to the file directly for testing . )
function: def GenerateWrapperForMethods(self, iface_releases, comments=True):
      """Return a string representing the code for each wrapper method
      (using a string rather than writing to the file directly for testing.)
      """
      result = []
      for iface in iface_releases:
        if not iface.needs_wrapping:
          if comments:
            result.append('/* Not generating wrapper methods for %s */\n\n' %
                          iface.struct_name)
          continue
        if comments:
          result.append('/* Begin wrapper methods for %s */\n\n' %
                        iface.struct_name)
        generator =  PPKind.ChoosePPFunc(iface,
                                         self.GenerateWrapperForPPBMethod,
                                         self.GenerateWrapperForPPPMethod)
        for member in iface.node.GetListOf('Member'):
          # Skip the method if it's not actually in the release.
          if not member.InReleases([iface.release]):
            continue
          result.extend(generator(iface, member))
        if comments:
          result.append('/* End wrapper methods for %s */\n\n' %
                        iface.struct_name)
      return ''.join(result)
function_tokens: def GenerateWrapperForMethods ( self , iface_releases , comments = True ) : result = [ ] for iface in iface_releases : if not iface . needs_wrapping : if comments : result . append ( '/* Not generating wrapper methods for %s */\n\n' % iface . struct_name ) continue if comments : result . append ( '/* Begin wrapper methods for %s */\n\n' % iface . struct_name ) generator = PPKind . ChoosePPFunc ( iface , self . GenerateWrapperForPPBMethod , self . GenerateWrapperForPPPMethod ) for member in iface . node . GetListOf ( 'Member' ) : # Skip the method if it's not actually in the release. if not member . InReleases ( [ iface . release ] ) : continue result . extend ( generator ( iface , member ) ) if comments : result . append ( '/* End wrapper methods for %s */\n\n' % iface . struct_name ) return '' . join ( result )