期刊文献+
共找到2篇文章
< 1 >
每页显示 20 50 100
试谈《莺》中的两处语句错误
1
作者 黄海云 《语文教学通讯(初中)(B)》 北大核心 2002年第3期27-27,共1页
关键词 《莺》 法国 布封 语句错误 初中 语文
下载PDF
Automated pattern-directed refactoring for complex conditional statements
2
作者 刘伟 胡志刚 +1 位作者 刘宏韬 杨柳 《Journal of Central South University》 SCIE EI CAS 2014年第5期1935-1945,共11页
Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional s... Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional statements are selected, and they are the factory method pattern and the strategy pattem. Two pattern-directed refactoring approaches based on the two design patterns are proposed. Each approach contains a refactoring opportunities identification algorithm and an automated refactoring algorithm. After parsing the abstract syntax tree generated from source code, the refactoring opportunities are identified effectively and automatically. Then, for candidate code, refactoring algorithms are executed automatically, which are used to simplify or remove complex conditional statements. By empirical analysis and quality assessment, the code after refactoring has better maintainability and extensibility, and the proposed approach for automated pattern-directed refactoring succeeds to reduce code size and complexity of classes. 展开更多
关键词 REFACTORING abstract syntax tree complex conditional statements design patterns factory method pattem strategypattem
下载PDF
上一页 1 下一页 到第
使用帮助 返回顶部