parameters: (self)
return_statement: return WrapOutput(template.substitute(values))
docstring: Returns the content of the JNI binding file.
docstring_summary: Returns the content of the JNI binding file.
docstring_tokens: Returns the content of the JNI binding file .
function: def GetContent(self):
      """Returns the content of the JNI binding file."""
      template = Template("""\
  // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  
  // This file is autogenerated by
  //     ${SCRIPT_NAME}
  // For
  //     ${FULLY_QUALIFIED_CLASS}
  
  #ifndef ${HEADER_GUARD}
  #define ${HEADER_GUARD}
  
  #include <jni.h>
  
  #include "base/android/jni_android.h"
  #include "base/android/scoped_java_ref.h"
  #include "base/basictypes.h"
  #include "base/logging.h"
  
  using base::android::ScopedJavaLocalRef;
  
  // Step 1: forward declarations.
  namespace {
  $CLASS_PATH_DEFINITIONS
  }  // namespace
  $FORWARD_DECLARATIONS
  
  // Step 2: method stubs.
  $METHOD_STUBS
  
  // Step 3: GetMethodIDs and RegisterNatives.
  $OPEN_NAMESPACE
  
  static void GetMethodIDsImpl(JNIEnv* env) {
  $GET_METHOD_IDS_IMPL
  }
  
  static bool RegisterNativesImpl(JNIEnv* env) {
    ${NAMESPACE}GetMethodIDsImpl(env);
  $REGISTER_NATIVES_IMPL
    return true;
  }
  $CLOSE_NAMESPACE
  #endif  // ${HEADER_GUARD}
  """)
      script_components = os.path.abspath(sys.argv[0]).split(os.path.sep)
      base_index = script_components.index('base')
      script_name = os.sep.join(script_components[base_index:])
      values = {
          'SCRIPT_NAME': script_name,
          'FULLY_QUALIFIED_CLASS': self.fully_qualified_class,
          'CLASS_PATH_DEFINITIONS': self.GetClassPathDefinitionsString(),
          'FORWARD_DECLARATIONS': self.GetForwardDeclarationsString(),
          'METHOD_STUBS': self.GetMethodStubsString(),
          'OPEN_NAMESPACE': self.GetOpenNamespaceString(),
          'NAMESPACE': self.GetNamespaceString(),
          'GET_METHOD_IDS_IMPL': self.GetMethodIDsImplString(),
          'REGISTER_NATIVES_IMPL': self.GetRegisterNativesImplString(),
          'CLOSE_NAMESPACE': self.GetCloseNamespaceString(),
          'HEADER_GUARD': self.header_guard,
      }
      return WrapOutput(template.substitute(values))
function_tokens: def GetContent ( self ) : template = Template ( """\
  // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  
  // This file is autogenerated by
  //     ${SCRIPT_NAME}
  // For
  //     ${FULLY_QUALIFIED_CLASS}
  
  #ifndef ${HEADER_GUARD}
  #define ${HEADER_GUARD}
  
  #include <jni.h>
  
  #include "base/android/jni_android.h"
  #include "base/android/scoped_java_ref.h"
  #include "base/basictypes.h"
  #include "base/logging.h"
  
  using base::android::ScopedJavaLocalRef;
  
  // Step 1: forward declarations.
  namespace {
  $CLASS_PATH_DEFINITIONS
  }  // namespace
  $FORWARD_DECLARATIONS
  
  // Step 2: method stubs.
  $METHOD_STUBS
  
  // Step 3: GetMethodIDs and RegisterNatives.
  $OPEN_NAMESPACE
  
  static void GetMethodIDsImpl(JNIEnv* env) {
  $GET_METHOD_IDS_IMPL
  }
  
  static bool RegisterNativesImpl(JNIEnv* env) {
    ${NAMESPACE}GetMethodIDsImpl(env);
  $REGISTER_NATIVES_IMPL
    return true;
  }
  $CLOSE_NAMESPACE
  #endif  // ${HEADER_GUARD}
  """ ) script_components = os . path . abspath ( sys . argv [ 0 ] ) . split ( os . path . sep ) base_index = script_components . index ( 'base' ) script_name = os . sep . join ( script_components [ base_index : ] ) values = { 'SCRIPT_NAME' : script_name , 'FULLY_QUALIFIED_CLASS' : self . fully_qualified_class , 'CLASS_PATH_DEFINITIONS' : self . GetClassPathDefinitionsString ( ) , 'FORWARD_DECLARATIONS' : self . GetForwardDeclarationsString ( ) , 'METHOD_STUBS' : self . GetMethodStubsString ( ) , 'OPEN_NAMESPACE' : self . GetOpenNamespaceString ( ) , 'NAMESPACE' : self . GetNamespaceString ( ) , 'GET_METHOD_IDS_IMPL' : self . GetMethodIDsImplString ( ) , 'REGISTER_NATIVES_IMPL' : self . GetRegisterNativesImplString ( ) , 'CLOSE_NAMESPACE' : self . GetCloseNamespaceString ( ) , 'HEADER_GUARD' : self . header_guard , } return WrapOutput ( template . substitute ( values ) )