首页 | 官方网站   微博 | 高级检索  
     


Rule-based detection of design patterns in program code
Authors:Awny Alnusair  Tian Zhao  Gongjun Yan
Affiliation:1. Indiana University, Kokomo, IN, 46904, USA
2. University of Wisconsin-Milwaukee, Milwaukee, WI, 53201, USA
3. University of Southern Indiana, Evansville, IN, 47712, USA
Abstract:The process of understanding and reusing software is often time-consuming, especially in legacy code and open-source libraries. While some core code of open-source libraries may be well-documented, it is frequently the case that open-source libraries lack informative API documentation and reliable design information. As a result, the source code itself is often the sole reliable source of information for program understanding activities. In this article, we propose a reverse-engineering approach that can provide assistance during the process of understanding software through the automatic recovery of hidden design patterns in software libraries. Specifically, we use ontology formalism to represent the conceptual knowledge of the source code and semantic rules to capture the structures and behaviors of the design patterns in the libraries. Several software libraries were examined with this approach and the evaluation results show that effective and flexible detection of design patterns can be achieved without using hard-coded heuristics.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号