• DocumentCode
    3128336
  • Title

    Identification of Extract Method Refactoring Opportunities

  • Author

    Tsantalis, Nikolaos ; Chatzigeorgiou, Alexander

  • Author_Institution
    Dept. of Appl. Inf., Univ. of Macedonia, Thessaloniki
  • fYear
    2009
  • fDate
    24-27 March 2009
  • Firstpage
    119
  • Lastpage
    128
  • Abstract
    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 object-oriented 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 technique. The soundness of the identified refactoring opportunities has been evaluated by an independent designer on the system that he developed.
  • Keywords
    object-oriented methods; code extraction; object-oriented system; refactoring extract method; static slices; Amorphous materials; Application software; Debugging; Employment; Informatics; Runtime; Software engineering; Software maintenance; Software measurement; Software testing; Extract Method Refactoring; Long Method Bad Smell; Object-Oriented Design; Program Slicing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance and Reengineering, 2009. CSMR '09. 13th European Conference on
  • Conference_Location
    Kaiserslautern
  • ISSN
    1534-5351
  • Print_ISBN
    978-0-7695-3589-0
  • Type

    conf

  • DOI
    10.1109/CSMR.2009.23
  • Filename
    4812745