2024-03-28T21:16:45Zhttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_oaipmhoai:ipsj.ixsq.nii.ac.jp:001131742022-10-21T05:24:51Z00581:07706:07708
API呼び出しとメソッド周辺の識別子の実績に基づいたAPI集合推薦手法Recommending API Sets for a New Method Based on Surrounding Identifiers and API Usage Historyjpn[特集:ソフトウェア工学] API,メソッド本体,相関ルールマイニング,コード補完http://id.nii.ac.jp/1001/00113149/Journal Articlehttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_action_common_download&item_id=113174&item_no=1&attribute_id=1&file_no=1Copyright (c) 2015 by the Information Processing Society of Japan筑波大学システム情報系大阪大学大学院情報科学研究科日本大学工学部情報工学科大阪大学大学院情報科学研究科大阪大学大学院情報科学研究科早瀬, 康裕鬼塚, 勇弥山本, 哲男石尾, 隆井上, 克郎現代の多くのソフトウェア開発では,膨大なライブラリから必要なAPIを選び出し,それをどのように組み合わせればよいかを調べなければならない.本研究では,開発者が新規作成したいメソッドの名前を記述したときに,そのメソッド本体で使用される可能性のあるAPIの集合を推薦することで,APIの選択を支援する手法を提案する.使用される可能性のあるAPIの推薦には大規模なソースコード集合から抽出した相関ルールを使用する.相関ルールには,メソッド名などの識別子から得た情報と,使用されたAPIとの関係が記録されている.本手法によって開発者に有用なAPI集合を推薦できるかを調査したところ,推薦の上位に適切なAPIが含まれていることを確認した一方,手法に改善の余地があることも分かった.In modern software development, developers have to select and combine appropriate APIs from vast amount of software libraries to implement features. This paper proposes an approach that takes as input a method name which a developer is attempting to create, and suggests APIs that are likely used as a template of method body. By using the template as a reference and/or editing the template, the developer can write the method body. Our approach generates templates from association rules that associate APIs with identifiers such as method names, class names, and field names included in a large set of source files.AN00116647情報処理学会論文誌5626927002015-02-151882-77642015-02-10