parameters: (self, called_by_native)
return_statement: return template.substitute(values)
docstring: Returns the implementation of GetMethodID.
docstring_summary: Returns the implementation of GetMethodID.
docstring_tokens: Returns the implementation of GetMethodID .
function: def GetMethodIDImpl(self, called_by_native):
      """Returns the implementation of GetMethodID."""
      template = Template("""\
    g_${JAVA_CLASS}_${METHOD_ID_VAR_NAME} =
        base::android::Get${STATIC}MethodID(
            env, g_${JAVA_CLASS}_clazz,
            "${NAME}",
            ${JNI_SIGNATURE});
  """)
      values = {
          'JAVA_CLASS': called_by_native.java_class_name or self.class_name,
          'NAME': called_by_native.name,
          'METHOD_ID_VAR_NAME': called_by_native.method_id_var_name,
          'STATIC': 'Static' if called_by_native.static else '',
          'JNI_SIGNATURE': JniSignature(called_by_native.params,
                                        called_by_native.return_type,
                                        True)
      }
      return template.substitute(values)
function_tokens: def GetMethodIDImpl ( self , called_by_native ) : template = Template ( """\
    g_${JAVA_CLASS}_${METHOD_ID_VAR_NAME} =
        base::android::Get${STATIC}MethodID(
            env, g_${JAVA_CLASS}_clazz,
            "${NAME}",
            ${JNI_SIGNATURE});
  """ ) values = { 'JAVA_CLASS' : called_by_native . java_class_name or self . class_name , 'NAME' : called_by_native . name , 'METHOD_ID_VAR_NAME' : called_by_native . method_id_var_name , 'STATIC' : 'Static' if called_by_native . static else '' , 'JNI_SIGNATURE' : JniSignature ( called_by_native . params , called_by_native . return_type , True ) } return template . substitute ( values )