A meta-model for language-independent refactoring
A meta-model for language-independent refactoring
复制标题
独立于语言的重构的元模型
DOI:
10.1109/ispse.2000.913233
复制
发表时间:
2000
期刊:
影响因子:
--
通讯作者:
Oscar Nierstrasz
中科院分区:
文献类型:
--
作者:
S. Tichelaar;Stéphane Ducasse;S. Demeyer;Oscar Nierstrasz
Refactoring-transforming code while preserving behaviour-is considered a key approach for improving object-oriented software systems. Unfortunately, all of the current refactoring tools depend on language-dependent refactoring engines, which prevents a smooth integration with mainstream development environments. We investigate the similarities between refactorings for Smalltalk and Java, derive a language-independent meta-model and show that it is feasible to build a language-independent refactoring engine on top of this meta-model. Our feasibility study is validated by means of a tool prototype which uses the same engine to refactor both Smalltalk and Java code. Using our approach we minimize the language-dependent part of refactoring tools, providing a standard way for programmers and tools to perform refactorings no matter what language they work in.