arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1803.06235cs.SE
收藏

基于动态分析的面向对象API组件识别

Identifying Components from Object-Oriented APIs Based on Dynamic Analysis

Anas Shatnawi, Hudhaifa Shatnawi, Mohamed Aymen Saied, Zakarea Al Shara, Houari Sahraoui, Abdelhak Seriai

摘要:

组件级的重用通常比面向对象类级的重用更有效。这是由于粒度级别,与细粒度的面向对象类相比,组件在抽象级别上公开其功能。此外,组件通过其提供的和所需的接口以显式的方式清楚地定义了它们的依赖关系,这有助于理解如何重用这些组件。因此,在分析面向对象软件应用的基础上,提出了几种构件识别方法。然而,大多数现有的组件识别方法没有考虑API类之间的共同使用依赖关系,以识别可以重用的类/方法来实现特定的场景。在本文中,我们提出了一种方法来识别可重用的软件组件在面向对象的API,客户端应用程序和目标API之间的交互的基础上。当我们处理使用API的实际客户端时,动态分析允许更好地捕获API使用的实例。使用静态分析的方法通常受到处理动态特性(如多态性和类加载)的困难的限制。我们评估我们的方法,将其应用到三个Java API与八个客户端应用程序从DaCapo基准。DaCapo提供了一组预定义的使用场景。实验结果表明,该方法具有很高的识别精度。

英文摘要:

The reuse at the component level is generally more effective than the one at the object-oriented class level. This is due to the granularity level where components expose their functionalities at an abstract level compared to the fine-grained object-oriented classes. Moreover, components clearly define their dependencies through their provided and required interfaces in an explicit way that facilitates the understanding of how to reuse these components. Therefore, several component identification approaches have been proposed to identify components based on the analysis object-oriented software applications. Nevertheless, most of the existing component identification approaches did not consider co-usage dependencies between API classes to identify classes/methods that can be reused to implement a specific scenario. In this paper, we propose an approach to identify reusable software components in object-oriented APIs, based on the interactions between client applications and the targeted API. As we are dealing with actual clients using the API, dynamic analysis allows to better capture the instances of API usage. Approaches using static analysis are usually limited by the difficulty of handling dynamic features such as polymorphism and class loading. We evaluate our approach by applying it to three Java APIs with eight client applications from the DaCapo benchmark. DaCapo provides a set of pre-defined usage scenarios. The results show that our component identification approach has a very high precision.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑