parameters: (self, template)
return_statement: return '\n' + '\n'.join(ret)
docstring: Substitutes JAVA_CLASS and KMETHODS in the provided template.
docstring_summary: Substitutes JAVA_CLASS and KMETHODS in the provided template.
docstring_tokens: Substitutes JAVA_CLASS and KMETHODS in the provided template .
function: def SubstituteNativeMethods(self, template):
      """Substitutes JAVA_CLASS and KMETHODS in the provided template."""
      ret = []
      all_classes = self.GetUniqueClasses(self.natives)
      all_classes[self.class_name] = self.fully_qualified_class
      for clazz in all_classes:
        kmethods = self.GetKMethodsString(clazz)
        if kmethods:
          values = {'JAVA_CLASS': clazz,
                    'KMETHODS': kmethods}
          ret += [template.substitute(values)]
      if not ret: return ''
      return '\n' + '\n'.join(ret)
function_tokens: def SubstituteNativeMethods ( self , template ) : ret = [ ] all_classes = self . GetUniqueClasses ( self . natives ) all_classes [ self . class_name ] = self . fully_qualified_class for clazz in all_classes : kmethods = self . GetKMethodsString ( clazz ) if kmethods : values = { 'JAVA_CLASS' : clazz , 'KMETHODS' : kmethods } ret += [ template . substitute ( values ) ] if not ret : return '' return '\n' + '\n' . join ( ret )