DocumentCode :
584466
Title :
Research on Detecting and Validating Design Pattern Instances from Source Code
Author :
Li, Wenjin ; Chen, Guangping ; Pan, Julong
Author_Institution :
Coll. of Inf. Eng., China Jiliang Univ., Hangzhou, China
fYear :
2012
fDate :
11-13 Aug. 2012
Firstpage :
1499
Lastpage :
1503
Abstract :
Identifying design patterns from source code is one of the most promising methods for improving software maintainability, reusing experience and facilitating software refactoring. In this paper, an approach that combines static and dynamic analysis on detecting design patterns from java source code is presented. Static structure analysis of identifying pattern instances is illustrated. Especially, to improve the detecting precision, multiplicity analysis of object creation is executed to validate creational pattern candidates and dynamic analysis which is the process of monitoring sequence of method calls in pattern candidates and judging if it is consistent to the expected pattern behavior is executed to validate behavior pattern candidates. After the validation of behavior candidates, those instances belong to patterns which have similar structure but different behavior are distinguished successfully. Finally, a tool of extracting design pattern from java source code is implemented and the feasibility of this approach is verified through the results of applying it on an open source software.
Keywords :
Java; object-oriented methods; program diagnostics; software maintenance; software reusability; Java source code; behavior pattern candidate validation; creational pattern candidates; design pattern instances; dynamic analysis; method calls; object creation; open source software; software maintainability; software refactoring; software reusability; static structure analysis; Algorithm design and analysis; Instruments; Java; Monitoring; Pattern matching; Software; Unified modeling language; design pattern; dynamic analysis; multiplicity analysis; reverse engineering;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Computer Science & Service System (CSSS), 2012 International Conference on
Conference_Location :
Nanjing
Print_ISBN :
978-1-4673-0721-5
Type :
conf
DOI :
10.1109/CSSS.2012.376
Filename :
6394614
Link To Document :
بازگشت