parameters: (params, use_proxy_types=False)
return_statement: return ret
docstring: Parses the params into a list of Param objects.
docstring_summary: Parses the params into a list of Param objects.
docstring_tokens: Parses the params into a list of Param objects .
function: def Parse(params, use_proxy_types=False):
      """Parses the params into a list of Param objects."""
      if not params:
        return []
      ret = []
      params = _StripGenerics(params)
      for p in params.split(','):
        items = p.split()
  
        if 'final' in items:
          items.remove('final')
  
        # Remove @Annotations from parameters.
        annotations = []
        while items[0].startswith('@'):
          annotations.append(items[0])
          del items[0]
  
        param = Param(
            annotations=annotations,
            datatype=items[0],
            name=(items[1] if len(items) > 1 else 'p%s' % len(ret)),
        )
  
        if use_proxy_types:
          param.datatype = JavaTypeToProxyCast(param.datatype)
  
        ret += [param]
      return ret
function_tokens: def Parse ( params , use_proxy_types = False ) : if not params : return [ ] ret = [ ] params = _StripGenerics ( params ) for p in params . split ( ',' ) : items = p . split ( ) if 'final' in items : items . remove ( 'final' ) # Remove @Annotations from parameters. annotations = [ ] while items [ 0 ] . startswith ( '@' ) : annotations . append ( items [ 0 ] ) del items [ 0 ] param = Param ( annotations = annotations , datatype = items [ 0 ] , name = ( items [ 1 ] if len ( items ) > 1 else 'p%s' % len ( ret ) ) , ) if use_proxy_types : param . datatype = JavaTypeToProxyCast ( param . datatype ) ret += [ param ] return ret