PCART  v1.4
Automated Repair of Python API Parameter Compatibility Issues
Classes | Namespaces | Functions
changeAnalyze.py File Reference

Go to the source code of this file.

Classes

class  Update
 Update class for parameter change analysis 参数变更分析类 More...
 

Namespaces

 changeAnalyze
 Analyze API parameter changes and compatibility.
 

Functions

def addValueForAPI (callAPI, projName, runPath, runCommand, currentEnv, targetEnv, errLst, callKey, *runtimePaths)
 Add values stored by pkl file for API parameters 为API参数添加保存至pkl文件中的值 More...
 
def analyzeCompatibility (oldPara, newPara)
 Analyze the compatibility of two APIs 判断两个重载API是否兼容 More...
 
def findDiffer (oldPara, newPara)
 Determine difference of two parameters 输入两个api参数部分,判断参数部分有何不同 More...
 
def isCompatible (current, target)
 Determine the compatibility of APIs from current and target versions 判断起始版本和目标版本API的兼容性 More...
 
def isDifferType (oldType, newType)
 Determine parameter type change: compatible type means no type change
判断两个参数的类型是否发生了变更: 只要兼容,就认为相同 More...
 
def para2Obj (paraStr)
 Convert parameter string to positional and keyword parameter objects 将参数字符串转换为位置和关键字参数对象 More...
 
def querySharedDict (callAPI, sharedDict)
 Query API mapping dictionary 查询API映射字典 More...
 
def updateErrorLst (errorLog, errorLst)
 Save error messages 保存错误信息 More...
 
def updateSharedDict (callAPI, currentDict, targetDict, sharedDict)
 Update API mapping dictionary: add and revise 更新API映射字典: 添加和修改 More...