Automatic method refactoring using weighted dependence graphs

24Citations
Citations of this article
18Readers
Mendeley users who have this article in their library.

Abstract

While refactoring makes frameworks more reusable, it is complex to do by hand. This paper presents a mechanism that automatically refactors methods in object-oriented frameworks by using weighted dependence graphs, whose edges are weighted based on the modification histories of the methods. To find the appropriate boundary between frozen spots and hot spots in the methods, the value of the weight varies based on whether the dependence in the original methods has been repeatedly preserved or destroyed in the methods of applications created by programmers. The mechanism constructs both template methods that contain the invariant dependence and hook methods that are separated by eliminating the variant dependence. The new template methods and hook methods tailored to each programmer save him/her from writing superfluous code when reusing a framework. Experimental results show a reduction rate of up to 22% in the number of statements a programmer has to write when creating several applications; this percentage is double that achievable by a conventional refactoring technique.

Cite

CITATION STYLE

APA

Maruyama, K., & Shima, K. ichi. (1999). Automatic method refactoring using weighted dependence graphs. Proceedings - International Conference on Software Engineering, 236–245. https://doi.org/10.1145/302405.302627

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free