Fast Extraction of High-Quality Framework-Specific Models from Application Code

TitleFast Extraction of High-Quality Framework-Specific Models from Application Code
Publication TypeJournal Article
Year of Publication2009
AuthorsAntkiewicz, M., T. Tonelli Bartolomei, and K. Czarnecki
JournalAutomated Software Engineering
Pagination101 - 144
Date Published03/2009

Framework-specific models represent the design of application code from the framework viewpoint by showing how framework-provided concepts are instantiated in the code. Retrieving such models quickly and precisely is necessary for practical model-supported software engineering, in which developers use design models for development tasks such as code understanding, verifying framework usage rules, and round-trip engineering. Also, comparing models extracted at different times of the software lifecycle supports software evolution tasks.

We describe an experimental study of the static analyses necessary to automatically retrieve framework-specific models from application code. We reverse engineer a number of applications based on three open-source frameworks and evaluate the quality of the retrieved models. The models are expressed using framework-specific modeling languages (FSMLs), each designed for an open-source framework. For reverse engineering, we use prototype implementations of the three FSMLs.

Our results show that for the considered frameworks and a large body of application code rather simple code analyses are sufficient for automatically retrieving framework-specific models with high precision and recall. Based on the initial results, we refine the static analyses and repeat the study on a larger set of applications to provide more evidence and confirm the results. The refined static analyses provide precision and recall of close to 100% for the analyzed applications.

Refereed DesignationRefereed
Full Text369.34 KB