講演抄録/キーワード |
講演名 |
2012-07-28 11:40
動的解析を用いたコード移動リファクタリングの支援 ○木村秀平・肥後芳樹・井垣 宏・楠本真二(阪大) SS2012-26 KBSE2012-28 |
抄録 |
(和) |
あるモジュールの凝集度を高め結合度を下げるために,Move MethodリファクタリングやExtract Methodリファクタリングといった,コード片を適切な位置に移動させるリファクタリングが行われる.このようなリファクタリングの候補を検出するために,従来の手法では,静的解析を用いてソースコードから導き出したクラスやメソッドの関係を利用していた.しかし,静的解析を用いる手法は,繰り返し回数,動的束縛や実際に実行される経路などの実行時に定まる情報を反映することができないため,検出できないリファクタリング候補があると考えられる.本論文では,動的解析を用いてリファクタリング候補の検出を支援する手法を提案する.実験の結果,提案手法を用いて実際のソフトウェアから複数の有効なリファクタリング候補を検出することができた. |
(英) |
Software refactoring is the process of reorganizing the internal structure of code while preserving the external behavior. It is performed to reduce coupling and increase cohesion of modules. Move Method and Extract Method refactorings are a kind of refactoring techniques that move a piece of code to another place. Previous approaches detect refactoring candidates based on static analysis. However, these approaches cannot detect some refactoring opportunities, because static analysis cannot obtain runtime information. This paper proposes a technique to detect refactoring candidates based on dynamic analysis. Our technique detects refactoring candidates by using method traces. The evaluation of our technique showed that our technique can detect appropriate refactoring candidates from actual software. |
キーワード |
(和) |
リファクタリング / 動的解析 / メソッド移動リファクタリング / メソッド抽出リファクタリング / ソフトウェア保守 / / / |
(英) |
refactoring / dynamic analysis / Move Method refactoring / Extract Method refactoring / software maintenance / / / |
文献情報 |
信学技報, vol. 112, no. 164, SS2012-26, pp. 97-102, 2012年7月. |
資料番号 |
SS2012-26 |
発行日 |
2012-07-20 (SS, KBSE) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2012-26 KBSE2012-28 |