講演名 2012/7/20
動的解析を用いたコード移動リファクタリングの支援(一般)
木村 秀平, 肥後 芳樹, 井垣 宏, 楠本 真二,
PDFダウンロードページ PDFダウンロードページへ
抄録(和) あるモジュールの凝集度を高め結合度を下げるために,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
資料番号 KBSE2012-28,SS2012-26
発行日

研究会情報
研究会 KBSE
開催期間 2012/7/20(から1日開催)
開催地(和)
開催地(英)
テーマ(和)
テーマ(英)
委員長氏名(和)
委員長氏名(英)
副委員長氏名(和)
副委員長氏名(英)
幹事氏名(和)
幹事氏名(英)
幹事補佐氏名(和)
幹事補佐氏名(英)

講演論文情報詳細
申込み研究会 Knowledge-Based Software Engineering (KBSE)
本文の言語 JPN
タイトル(和) 動的解析を用いたコード移動リファクタリングの支援(一般)
サブタイトル(和)
タイトル(英) Supporting Code Moving Refactoring Based on Dynamic Analysis
サブタイトル(和)
キーワード(1)(和/英) リファクタリンク / refactoring
キーワード(2)(和/英) 動的解析 / dynamic analysis
キーワード(3)(和/英) メソッド移動リファクタリング / Move Method refactoring
キーワード(4)(和/英) メソッド抽出リファクタリング / Extract Method refactoring
キーワード(5)(和/英) ソフトウェア保守 / software maintenance
第 1 著者 氏名(和/英) 木村 秀平 / Shuhei KIMURA
第 1 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
第 2 著者 氏名(和/英) 肥後 芳樹 / Yoshiki HIGO
第 2 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
第 3 著者 氏名(和/英) 井垣 宏 / Hiroshi IGAKI
第 3 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
第 4 著者 氏名(和/英) 楠本 真二 / Shinji KUSUMOTO
第 4 著者 所属(和/英) 大阪大学大学院情報科学研究科
Graduate School of Information Science and Technology, Osaka University
発表年月日 2012/7/20
資料番号 KBSE2012-28,SS2012-26
巻番号(vol) vol.112
号番号(no) 165
ページ範囲 pp.-
ページ数 6
発行日