parameters: (self)
return_statement: return '\n'.join(ret)
docstring: Returns the imlementation of FindClass for all known classes.
docstring_summary: Returns the imlementation of FindClass for all known classes.
docstring_tokens: Returns the imlementation of FindClass for all known classes .
function: def GetFindClasses(self):
      """Returns the imlementation of FindClass for all known classes."""
      if self.init_native:
        if self.options.native_exports:
          template = Template("""\
    base::subtle::Release_Store(&g_${JAVA_CLASS}_clazz,
        static_cast<base::subtle::AtomicWord>(env->NewWeakGlobalRef(clazz));""")
        else:
          template = Template("""\
    g_${JAVA_CLASS}_clazz = static_cast<jclass>(env->NewWeakGlobalRef(clazz));""")
      else:
        if self.options.native_exports:
          return '\n'
        template = Template("""\
    g_${JAVA_CLASS}_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
        base::android::GetClass(env, k${JAVA_CLASS}ClassPath).Get()));""")
      ret = []
      for clazz in self.GetUniqueClasses(self.called_by_natives):
        values = {'JAVA_CLASS': clazz}
        ret += [template.substitute(values)]
      return '\n'.join(ret)
function_tokens: def GetFindClasses ( self ) : if self . init_native : if self . options . native_exports : template = Template ( """\
    base::subtle::Release_Store(&g_${JAVA_CLASS}_clazz,
        static_cast<base::subtle::AtomicWord>(env->NewWeakGlobalRef(clazz));""" ) else : template = Template ( """\
    g_${JAVA_CLASS}_clazz = static_cast<jclass>(env->NewWeakGlobalRef(clazz));""" ) else : if self . options . native_exports : return '\n' template = Template ( """\
    g_${JAVA_CLASS}_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
        base::android::GetClass(env, k${JAVA_CLASS}ClassPath).Get()));""" ) ret = [ ] for clazz in self . GetUniqueClasses ( self . called_by_natives ) : values = { 'JAVA_CLASS' : clazz } ret += [ template . substitute ( values ) ] return '\n' . join ( ret )