版权说明 操作指南
首页 > 成果 > 详情

基于类关联关系的源代码重构时机识别

认领
导出
Link by 中国知网学术期刊 Link by 万方学术期刊
反馈
分享
QQ微信 微博
成果类型:
期刊论文
论文标题(中文):
Identification of refactoring opportunities for source code based on class association relationships
作者:
Liu, Wei*;Yang, Na;Huang, Xin-di;Hu, Wei;Hu, Zhi-gang
通讯作者:
Liu, Wei
作者机构:
[Liu, Wei; Hu, Wei; Huang, Xin-di] Hunan Univ Chinese Med, Sch Informat, Changsha 410208, Peoples R China.
[Yang, Na; Hu, Zhi-gang; Liu, Wei] Cent South Univ, Sch Comp Sci & Engn, Changsha 410083, Peoples R China.
通讯机构:
[Liu, Wei] H
[Liu, Wei] C
Hunan Univ Chinese Med, Sch Informat, Changsha 410208, Peoples R China.
Cent South Univ, Sch Comp Sci & Engn, Changsha 410083, Peoples R China.
语种:
英文
关键词:
identification of refactoring opportunities;abstract syntax tree;class association relationships;common association classes;source code
关键词(中文):
重构时机识别;抽象语法树;类关联关系;公共关联类;源代码
期刊:
中南大学学报(英文版)
ISSN:
2095-2899
年:
2020
卷:
27
期:
12
页码:
3768-3778
机构署名:
本校为第一且通讯机构
摘要:
In order to deal with the complex association relationships between classes in an object-oriented software system, a novel approach for identifying refactoring opportunities is proposed. The approach can be used to detect complex and duplicated many-to-many association relationships in source code, and to provide guidance for further refactoring. In the approach, source code is first transformed to an abstract syntax tree from which all data members of each class are extracted, then each class is characterized in connection with a set of association classes saving its data members. Next, class...
摘要(中文):
针对面向对象软件系统中类与类之间存在的复杂关联关系,提出了一种基于类关联关系的代码重构时机识别方法,可用于探测代码中存在的重复多对多关联关系,为进一步实施重构提供指导。该方法首先将源代码转换成抽象语法树,然后提取每一个类的成员变量,得到每一个类的关联类集,再寻找类之间的公共关联类,最后根据设定的阈值,保存并输出满足预定条件的候选重构类集以及它们的公共关联类。通过对四个项目进行重构时机识别实验,结果表明,当阈值为3时,方法的精确率超过96%,当阈值为4时精确率达到100%。同时,方法具有较好的执行效率,对于超过500个类的项目,识别程序的执行时间不到4 s,说明该方法可有效应用...

反馈

验证码:
看不清楚,换一个
确定
取消

成果认领

标题:
用户 作者 通讯作者
请选择
请选择
确定
取消

提示

该栏目需要登录且有访问权限才可以访问

如果您有访问权限,请直接 登录访问

如果您没有访问权限,请联系管理员申请开通

管理员联系邮箱:yun@hnwdkj.com