def _get_method_params(self, match):
        nb_params = type_params = None
        if match.group(3) == None:
            # First argument
            nb_params = 0
        elif match.group(4) == None:
            # Other arguments
            nb_params = 1
            type_params = [match.group(3)]
        else:
            text = match.string[match.end(2):]
            eindex = text.index(')')
            sindex = text.index('(')
            params_text = text[sindex + 1:eindex]
            if len(params_text) == 0:
                # This means that there was no parameter, so no ','
                nb_params = 0
            else:
                params = params_text.split(',')
                nb_params = len(params)
                type_params = [param.strip() for param in params]

        return (nb_params, type_params)
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py/JavaMethodLinker._get_method_params/original