Towards automating source-consistent UML refactorings

TitleTowards automating source-consistent {UML} refactorings
Publication TypeConference Paper
Year of Publication2003
AuthorsVan Gorp, P, Stenten H, Mens T, Demeyer S
EditorStevens, P, Whittle J, Booch G
Conference NameProceedings {UML}'03 ((The Sixth International Conference on The Unified Modeling Language))
PublisherSpringer-{V}erlag
Abstract

With the increased interest in refactoring, UML tool vendors seek ways to support software developers in applying a (sequence of) refactoring(s). The problem with such tools is that the UML metamodel – on which their repository is based – is inadequate to maintain the consistency between the model and the code while one of them gets refactored. Therefore, we propose a set of minimal extensions to the UML metamodel, which is sufficient to reason about refactoring for all common OO languages. For instance, by specifying pre- and postconditions in OCL, we are able to compose primitive refactorings, verify preservation of program behavior, and trigger refactorings based on code smells. This way, we provide future MDA tools with the ability to improve existing UML designs, yet keeping them in synch with the underlying code base.