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

Go to the source code of this file.

Classes

class  RegexMatch
 Regular expression match class 正则表达式匹配类 More...
 

Namespaces

 getDef
 Extract API definitions from lib source code.
 

Functions

def getAssign (root_node)
 Extract all assign node from a .py file's AST 通过AST获取.py文件的Assign语句 More...
 
def getClass (lst, root, prefix, fileDict, pyiFlag=0, importCache=None)
 Extract class method definitions from a give class. More...
 
def getDefFunction (args)
 Extract all lib API definitions from a specified version 抽取给定版本的库API定义 More...
 
def getPublicAliasLine (line, sourceRoot, publicRoot)
 Return a public alias line for source-root API lines 为源码根路径API行生成公开路径别名 More...
 
def shortenPath (lst, fileDict, importCache=None)
 Shorten the API path based on init.py and import alias 通过解析__init__.py和import别名,把源码中的部分API路径缩短 More...
 
def task (codeText, libApi, prefix, fileDict, pyiFlag=0, importCache=None)
 Extract all lib API definitions from a source file 抽取库源码API定义任务 More...
 
def writeApiLine (fw, line, sourceRoot='', publicRoot='')
 Write one lib API line and its public alias if needed 写出一行库API,并按需写出公开路径别名 More...