期刊文献+

基于变更块的代码重构模式展示—以抽取方法为例 被引量:1

Code refactoring pattern display based on hunks-take the extract method as an example
下载PDF
导出
摘要 代码变更的理解一般基于文本差异化工具,其处理输出的基本对象是一个变更块(hunk)。许多重构都掺杂在日常的bug修改、功能特征的增加等代码变更中,将重构与其它工作隔离有利于对代码变更的理解。现有的代码可视化方法仅展示变更文本,未进行代码变更前后重构模式的展示,没有发挥出可视化技术的优越性。本文基于变更块对代码重构模式进行展示,以抽取方法为例,在4个开源项目中进行实验,并取得了理想的展示效果。 The understanding of code changes is generally based on text differentiation tools,whose basic object for processing output is a hunk.Many refactoring are incorporated into code changes such as daily bug fixes and functional features.Separating refactoring from other work facilitates understanding of code changes.The text differentiation tool only displays the changed text,and does not show the refactoring pattern before and after the code change,and does not play the superiority of the visualization technology.In this paper,code refactoring pattern is demonstrated based on hunks.Taking the extract method as an example,the experiment is carried out in four open source projects,and the ideal display effect is achieved.
作者 石伟 杨春花 SHI Wei;YANG Chunhua(School of Computer Science and Technology,Qilu University of Technology (Shandong Academy of Sciences),Jinan 250353,China)
出处 《智能计算机与应用》 2019年第3期85-88,共4页 Intelligent Computer and Applications
关键词 变更块 重构 抽取方法 重构模式展示 hunk refactoring extract method refactoring pattern display
  • 相关文献

参考文献5

二级参考文献21

  • 1林治.软件重构在软件开发中的作用分析[J].扬州教育学院学报,2007,25(3):21-24. 被引量:8
  • 2Mens T,Tourwe T. A survey of software refactoring [J]. IEEE Transactions on Software Engineering, 2004,30 (2) : 126-139.
  • 3Opdyke W F. Refactoring object-oriented frameworks[D]. Llli- nois: University of Illinois at Urbana-Champaign, 1992.
  • 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.
  • 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.
  • 6Weissgerber P, Diehl S. Identifying refactorings from source- code changes[C]//21st IEEE/ACM International Conference on Automated Software Engineering. 2006:231-240.
  • 7Murphy G,Kersten M, Findlater L. How are Java software de- velopers using the eclipse IDE[J]. Software IEEE, 2006,23(4): 76-83.
  • 8http ://code. google, com/p/java-diff-utils/.
  • 9刘石,李合,王啸吟,张路,谢冰.基于语法与语义分析的代码搜索结果优化[J].计算机科学,2009,36(8):165-168. 被引量:6
  • 10于冬琦,彭鑫,赵文耘.使用抽象语法树和静态分析的克隆代码自动重构方法[J].小型微型计算机系统,2009,30(9):1752-1760. 被引量:14

共引文献9

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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