parameters: (self)
docstring: Add the content of the forward declaration to the dictionary.
docstring_summary: Add the content of the forward declaration to the dictionary.
docstring_tokens: Add the content of the forward declaration to the dictionary .
function: def _AddForwardDeclaration(self):
      """Add the content of the forward declaration to the dictionary."""
      template = string.Template("""\
  JNI_GENERATOR_EXPORT ${RETURN} ${STUB_NAME}(
      JNIEnv* env,
      ${PARAMS_IN_STUB});
  """)
      forward_declaration = ''
      for native in self.natives:
        value = {
            'RETURN': jni_generator.JavaDataTypeToC(native.return_type),
            'STUB_NAME': self.helper.GetStubName(native),
            'PARAMS_IN_STUB': jni_generator.GetParamsInStub(native),
        }
        forward_declaration += template.substitute(value)
      self._SetDictValue('FORWARD_DECLARATIONS', forward_declaration)
function_tokens: def _AddForwardDeclaration ( self ) : template = string . Template ( """\
  JNI_GENERATOR_EXPORT ${RETURN} ${STUB_NAME}(
      JNIEnv* env,
      ${PARAMS_IN_STUB});
  """ ) forward_declaration = '' for native in self . natives : value = { 'RETURN' : jni_generator . JavaDataTypeToC ( native . return_type ) , 'STUB_NAME' : self . helper . GetStubName ( native ) , 'PARAMS_IN_STUB' : jni_generator . GetParamsInStub ( native ) , } forward_declaration += template . substitute ( value ) self . _SetDictValue ( 'FORWARD_DECLARATIONS' , forward_declaration )