Sciweavers

CSMR
2009
IEEE

Identification of Extract Method Refactoring Opportunities

13 years 11 months ago
Identification of Extract Method Refactoring Opportunities
Extract Method has been recognized as one of the most important refactorings, since it decomposes large methods and can be used in combination with other refactorings for fixing a variety of design problems. However, existing tools and methodologies support extraction of methods based on a set of statements selected by the user in the original method. The goal of the proposed methodology is to automatically identify Extract Method refactoring opportunities and present them as suggestions to the designer of an objectoriented system. The suggested refactorings adhere to three principles: the extracted code should contain the complete computation of a given variable declared in the original method, the behavior of the program should be preserved after the application of the refactoring, and the extracted code should not be excessively duplicated in the original method. The proposed approach is based on the union of static slices that result from the application of a block-based slicing t...
Nikolaos Tsantalis, Alexander Chatzigeorgiou
Added 20 May 2010
Updated 20 May 2010
Type Conference
Year 2009
Where CSMR
Authors Nikolaos Tsantalis, Alexander Chatzigeorgiou
Comments (0)