parameters: (contents, ptr_type)
return_statement: return natives
docstring: Returns a list of dict containing information about a native method.
docstring_summary: Returns a list of dict containing information about a native method.
docstring_tokens: Returns a list of dict containing information about a native method .
function: def ExtractNatives(contents, ptr_type):
    """Returns a list of dict containing information about a native method."""
    contents = contents.replace('\n', '')
    natives = []
    re_native = re.compile(r'(@NativeClassQualifiedName'
                           '\(\"(?P<native_class_name>.*?)\"\)\s+)?'
                           '(@NativeCall(\(\"(?P<java_class_name>.*?)\"\))\s+)?'
                           '(?P<qualifiers>\w+\s\w+|\w+|\s+)\s*native '
                           '(?P<return_type>\S*) '
                           '(?P<name>native\w+)\((?P<params>.*?)\);')
    for match in re.finditer(re_native, contents):
      native = NativeMethod(
          static='static' in match.group('qualifiers'),
          java_class_name=match.group('java_class_name'),
          native_class_name=match.group('native_class_name'),
          return_type=match.group('return_type'),
          name=match.group('name').replace('native', ''),
          params=JniParams.Parse(match.group('params')),
          ptr_type=ptr_type)
      natives += [native]
    return natives
function_tokens: def ExtractNatives ( contents , ptr_type ) : contents = contents . replace ( '\n' , '' ) natives = [ ] re_native = re . compile ( r'(@NativeClassQualifiedName' '\(\"(?P<native_class_name>.*?)\"\)\s+)?' '(@NativeCall(\(\"(?P<java_class_name>.*?)\"\))\s+)?' '(?P<qualifiers>\w+\s\w+|\w+|\s+)\s*native ' '(?P<return_type>\S*) ' '(?P<name>native\w+)\((?P<params>.*?)\);' ) for match in re . finditer ( re_native , contents ) : native = NativeMethod ( static = 'static' in match . group ( 'qualifiers' ) , java_class_name = match . group ( 'java_class_name' ) , native_class_name = match . group ( 'native_class_name' ) , return_type = match . group ( 'return_type' ) , name = match . group ( 'name' ) . replace ( 'native' , '' ) , params = JniParams . Parse ( match . group ( 'params' ) ) , ptr_type = ptr_type ) natives += [ native ] return natives