期刊文献+

即时重构系统下的switch语句检测算法

Switch Statements Detection Algorithm Based on Real-time Reconstruction System
下载PDF
导出
摘要 软件重构是在不改变软件外部特性的前提下重新组织其内部结构从而提高软件的可维护性、可扩展性以及可重用性的技术统称。代码坏味是程序中存在的需要进行重构的代码部分,是软件的设计缺陷。软件重构就是不断进行坏味查找和修改的过程。基于监控的即时重构系统通过后台运行的监控机制分析处理代码的变化,并可选择合适的检测时机对代码进行坏味检测,并将检测结果反馈给程序员,提醒其重构。Switch语句是在软件开发过程中使用较多的一种分支结构语句,但大量使用该语句则会造成代码冗余。本文将结合基于监控的即时重构特点,对代码中的Switch语句进行查寻,并设计相应的检测算法,寻找冗余部分。将该检测算法应用于即时重构系统可显著提高重构效率。 Software reconstruction means to reconstruct the inside of the organization to improve the maitainability, extendibility and reusability without changing the outside of software. Bad smell, the design defect of software, is the code needed to be reconstructed existing in the program. Software reconstruction is a process to look for and modify the bad smell continually. Real-time reconstruction system analyzes the changes of code through monitoring mechanism of background operation, tests the bad smell at a proper time, gives the feedback to programmer and informs them to reconstruct.Switch statements are used frequently in the development of software, however, using too much can cause code redundance.This paper, based on the real-time reconstruction of monitoring, looked up the Switch statements in code, designed the detection algorithm, found the redundance. To apply the detection alforithm in the real-time reconstruction system can improve the efficiency of reconstruction.
作者 郭雪
出处 《山西大同大学学报(自然科学版)》 2015年第5期9-12,共4页 Journal of Shanxi Datong University(Natural Science Edition)
关键词 软件重构 坏味 即时重构 SWITCH语句 software reconstruction bad smell real-time reconstruction Switch statements
  • 相关文献

参考文献4

  • 1DANIEL Gorenstein, RICHARD Lyons, RONALD Solomon. The classification of the simple groups [J]. American Mathematical Soci- ety, Mathematical Surveys and Monographs, 2000, 40(1): 55 - 56.
  • 2ZI-IANG Qinhai, CAO Jianji. FINITE groups whose nontrival normal subgroups have the same order [J]] Mathematical Reaserch Ex- position, 2008, 28(4): 807 - 812.
  • 3张勤海,曹建基,徐明曜.有限超特殊p-群的一个注记(英文)[J].数学进展,2008,37(4):494-498. 被引量:2
  • 4DANIEL Gorenstein. Finite Groups [M]. New York: Chelesa Publishiing Company, 1980:203 - 204.

二级参考文献3

  • 1Berkovich, Y. and Janko, Z., Groups of Prime Power Order, Part 3, In press, 2004.
  • 2Huppert, B., Endliche Gruppen I, Springer-Verlag, 1967.
  • 3Gorenstein, D., Finite Groups, New York, Chelesa Publishing Company, 1980.

共引文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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