39 cnamelst=callAPI.split(
'.')
42 for libAPI
in libAPIs:
43 dname=libAPI.split(
'(')[0]
44 dnamelst=dname.split(
'.')
45 if cnamelst[-1]==dnamelst[-1]:
53 for it
in dir(str)+dir(list)+dir(dict):
56 if cnamelst[-1]
in buildIns
and len(cnamelst)!=2:
60 self.
aliasalias=callAPI
Static mapping class for lib API definitions 库API定义静态匹配类
def fmatch(self, callAPI, libAPIs)
Fuzzy match the called API against the library API definitions 将调用API与库API定义进行模糊匹配
def __init__(self)
Initialize the fuzzy matcher 初始化模糊匹配器
alias
The alias name used when no direct match is found 未找到直接匹配时使用的别名