• DocumentCode
    639601
  • Title

    Transformations between Composite and Visitor Implementations in Java

  • Author

    Ajouli, Akram ; Cohen, Johanne ; Royer, Jean-Claude

  • Author_Institution
    LINA, INRIA, Nantes, France
  • fYear
    2013
  • fDate
    4-6 Sept. 2013
  • Firstpage
    25
  • Lastpage
    32
  • Abstract
    Basic automated refactoring operations can be chained toper form complex structure transformations. This is useful for recovering the initial architecture of a source code which has been degenerated with successive evolutions during its maintenance lifetime. This is also useful for changing the structure of a program so that a maintenance task at hand becomes modular when it would be initially crosscutting. We focus on programs structured according to Composite and Visitor design patterns, which have dual properties with respect to modularity. We consider a refactoring-based round-trip transformation between these two structures and we study how that transformation is impacted by four variations in the implementation of these patterns. We validate that study by computing the smallest preconditions for the resulting transformations. We also automate the transformation and apply it to JHotDraw, where the studied variations occur.
  • Keywords
    Java; object-oriented programming; software maintenance; JHotDraw; Java; automated refactoring operations; complex structure transformations; composite design patterns; refactoring-based roundtrip transformation; visitor design patterns; Abstracts; Business; Color; Complexity theory; Java; Maintenance engineering; Switches; design patterns; refactoring;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering and Advanced Applications (SEAA), 2013 39th EUROMICRO Conference on
  • Conference_Location
    Santander
  • Type

    conf

  • DOI
    10.1109/SEAA.2013.53
  • Filename
    6619484