首页    期刊浏览 2024年11月26日 星期二
登录注册

文章基本信息

  • 标题:Research on Detecting Design Pattern Variants from Source Code Based on Constraints
  • 本地全文:下载
  • 作者:Li Wen-Jin ; Pan Ju-long ; Wang Kang-Jian
  • 期刊名称:International Journal of Hybrid Information Technology
  • 印刷版ISSN:1738-9968
  • 出版年度:2015
  • 卷号:8
  • 期号:5
  • 页码:63-72
  • DOI:10.14257/ijhit.2015.8.5.07
  • 出版社:SERSC
  • 摘要:Identifying design patterns from source code is one of the most promising methods for improving software maintainability, reusing experience and facilitating software refactoring In the process of design pattern application, different methods of instantiation usually lead to generation of pattern variants. The detection of these variants from source code is a key point and a challenge of reverse engineering. In this paper, we propose an approach of detecting design pattern variants from source code based on constraints. More specifically, we first propose the method to describe the design pattern variants based on constraints, input the constraint conditions of design patterns into the library of pattern features, conduct static analysis on source code including analysis of control flow and data flow to obtain representations of pattern participants in the source code, conduct matching with the predicate matching tool, and then merge the instances by clustering analysis and obtain the final collection of pattern instances. Finally, a tool of extracting design pattern variants from source code is implemented and the feasibility of our approach is verified through the results of running it on three open source software.
  • 关键词:design pattern; variants; constraints; clustering analysis
国家哲学社会科学文献中心版权所有