作者
Dongjin Yu, Yanyan Zhang, Zhenli Chen
发表日期
2015/5/1
期刊
Journal of Systems and Software
卷号
103
页码范围
1-16
出版商
Elsevier
简介
Design patterns are formalized best practices that address concerns related to high-level structures for applications being developed. The efficient recovery of design pattern instances significantly facilitates program comprehension and software reengineering. However, the recovery of design pattern instances is not a straightforward task. In this paper, we present a novel comprehensive approach to the recovery of instances of 23 GoF design patterns from source codes. The key point of the approach lies in that we consider different design pattern instances consist of some commonly recurring sub-patterns that are easier to be detected. In addition, we focus not only on the class relationship, but also on the characteristics of underlying method signatures in classes. We first transform the source codes and predefined GoF patterns into graphs, with the classes as nodes and the relationships as edges. We then identify …
引用总数
2015201620172018201920202021202220231691188788