

def _get_method_params(self, match):
    nb_params = type_params = None
    if (match.group(3) == None):
        nb_params = 0
    elif (match.group(4) == None):
        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):param]
        if (len(params_text) == 0):
            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/VarMisuse@114/136 `eindex`->`param`