期刊文献+

基于代码克隆检测的抽取方法重构模式识别 被引量:1

IDENTIFICATION OF EXTRACT METHOD REFACTORING PATTERN BASED ON CODE CLONE DETECTION
下载PDF
导出
摘要 抽取方法是一种常用的代码重构手段,被广泛应用到软件开发和维护中。提出一个基于克隆检测的抽取方法重构模式的识别算法。以代码变更块hunk为单位,用代码克隆检测工具simian对候选的hunk进行筛选,用语法分析对该模式进行判定。在4个开源项目上进行实验,结果表明该算法具有较高的准确率。 Extract method is a common way to refactor code, which is widely used in software development and maintenance. This paper proposed a recognition algorithm of pattern refactoring based on clone detection. In the unit of code change block hunk, the candidate hunk was screened by code clone detection tool simian, and the pattern was determined by grammar analysis. Experiments on four open source projects show that the algorithm has high accuracy.
作者 张志浩 杨春花 Zhang Zhihao;Yang Chunhua(School of Computer Science and Technology, Qilu University of Technology(Shandong Academy of Science), Jinan 250000, Shandong, China)
出处 《计算机应用与软件》 北大核心 2019年第9期12-15,20,共5页 Computer Applications and Software
基金 国家自然科学基金项目(61502259)
关键词 重构模式 重构模式识别 代码克隆检测 代码变更 抽取方法 Refactoring pattern Refactoring pattern identification Code clone detection Code changes Extract method
  • 相关文献

参考文献6

二级参考文献17

  • 1王映龙,杨炳儒,宋泽锋,陈卓,唐建军.基因序列相似程度的LCS算法研究[J].计算机工程与应用,2007,43(31):45-47. 被引量:14
  • 2Mens T,Tourwe T. A survey of software refactoring [J]. IEEE Transactions on Software Engineering, 2004,30 (2) : 126-139. 被引量:1
  • 3Opdyke W F. Refactoring object-oriented frameworks[D]. Llli- nois: University of Illinois at Urbana-Champaign, 1992. 被引量:1
  • 4Dig D, Comertoglu C, Marinov D, et al. Automatic detection of refactorings in evolving components[C]//European Conference on Object Oriented Programming. 2006:404-428. 被引量:1
  • 5Xing Z, Stroulia E. UMLDiff. an algorithm for object-oriented design differencing[C],//Proceedings of the 20th IEEE/ACM International Conference on Automated Software Engineering. 2005 : 54-65. 被引量:1
  • 6Weissgerber P, Diehl S. Identifying refactorings from source- code changes[C]//21st IEEE/ACM International Conference on Automated Software Engineering. 2006:231-240. 被引量:1
  • 7Murphy G,Kersten M, Findlater L. How are Java software de- velopers using the eclipse IDE[J]. Software IEEE, 2006,23(4): 76-83. 被引量:1
  • 8http ://code. google, com/p/java-diff-utils/. 被引量:1
  • 9刘石,李合,王啸吟,张路,谢冰.基于语法与语义分析的代码搜索结果优化[J].计算机科学,2009,36(8):165-168. 被引量:6
  • 10王伟,苏小红,马培军,王甜甜.标识符重命名不一致性缺陷的检测[J].哈尔滨工业大学学报,2011,43(1):89-94. 被引量:4

共引文献9

同被引文献4

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部