利便性の高いリファクタリングの取り消しメカニズム

書誌事項

タイトル別名
  • リベンセイ ノ タカイ リファクタリング ノ トリケシ メカニズム
  • A Convenient Undo Mechanism for Refactorings
  • 開発支援環境・自動化技術

この論文をさがす

抄録

リファクタリングを導入することで,既存ソースコードの外部から見た振舞いを変えずに,理解性や再利用性を改善することが可能である.しかしながら,実際に変換を繰り返し適用してみなければ,リファクタリングによる改善の効果を確認することは難しい.このため,ソフトウェア開発や保守作業を支援する自動化ツールにおいて,リファクタリングの適用とその取り消し機能の提供は不可欠である.本論文では,開発中の個々のソースファイルに対して,過去に適用されたリファクタリングの履歴を鎖で表現し,その鎖の最後に記録されたリファクタリングを監視することで,どのリファクタリングが取り消し可能であるのかを判定するメカニズムを提案する.提案メカニズムは,たとえリファクタリングにより複数のソースファイルが同時かつ連続的に変更されていたとしても,過去のリファクタリングを取り消すことができる.このメカニズムの実装は,我々の開発したリファクタリングツールに組み込まれている.

Refactoring makes existing source code more understandable and reusable without changing external behavior. However, the effect of the improvement cannot be observed without many applications of various kinds of refactorings. Therefore, applying refactorings to existing source code and reversing the effects of past refactorings are inseparable from automated tool support to software development and maintenance. This paper proposes a powerful undo mechanism that uses a chain of past refactorings for each source file and determines which refactoring is undoable by monitoring the last refactoring in every chain. The proposed undo mechanism can make an undesired refactoring undone although the refactoring has consecutively and/or coincidentally affected multiple source files. A running implementation of the mechanism has been integrated into our developed refactoring tool.

収録刊行物

被引用文献 (1)*注記

もっと見る

参考文献 (19)*注記

もっと見る

詳細情報 詳細情報について

問題の指摘

ページトップへ