Constraint-Based Refactoring

被引:7
|
作者
Steimann, Friedrich [1 ]
机构
[1] Fernuniv, Lehrgebiet Programmiersyst, D-58084 Hagen, Germany
关键词
Refactoring; constraint-based repair; TOOLS;
D O I
10.1145/3156016
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Constraint-based refactoring generalizes constraint-based type refactoring as introduced by Tip et al. [61] by extending the coverage of change from types to names, locations, accessibilities, and other properties of program elements. Starting with a generic specification of refactoring tools, we systematically develop constraint-based refactoring as a generic solution to a certain class of refactoring problems and provide a condition under which constraint-based refactoring tools are proven correct for any given target language. Although compliance with this correctness condition is hard to prove for target languages whose semantics is not formally defined, we show how the condition gives rise to automated testing procedures. We present a novel algorithm based on constraint-logic programming for the generation of constraints from a program to be refactored, and demonstrate its time and space requirements by using it in the application of refactorings to open source programs. Summarizing earlier work, we show how the principles underlying constraint-based refactoring tools extend to ad hoc refactoring, cross-language refactoring, and model/code co-refactoring.
引用
收藏
页数:40
相关论文
共 50 条
  • [21] Constraint-based Dynamic Conversations
    Cacciagrano, Diletta
    Corradini, Flavio
    Culmone, Rosario
    Vito, Leonardo
    [J]. ICNS: 2009 FIFTH INTERNATIONAL CONFERENCE ON NETWORKING AND SERVICES, 2009, : 7 - 12
  • [22] Constraint-based clustering selection
    Van Craenendonck, Toon
    Blockeel, Hendrik
    [J]. MACHINE LEARNING, 2017, 106 (9-10) : 1497 - 1521
  • [23] A Constraint-Based Approach to Context
    van Wissen, Arlette
    Kamphorst, Bart
    van Eijk, Rob
    [J]. MODELING AND USING CONTEXT, CONTEXT 2013, 2013, 8175 : 171 - 184
  • [24] Constraint-based facial animation
    Ruttkay Z.
    [J]. Constraints, 2001, Kluwer Academic Publishers (06) : 85 - 113
  • [25] Constraint-based qualitative simulation
    Apt, KR
    Brand, S
    [J]. 12TH INTERNATIONAL SYMPOSIUM ON TEMPORAL REPRESENTATION AND REASONING, PROCEEDINGS, 2005, : 26 - 34
  • [26] Constraint-based landmark localization
    Stroupe, AW
    Sikorski, K
    Balch, T
    [J]. ROBOCUP 2002: ROBOT SOCCER WORLD CUP VI, 2003, 2752 : 8 - 24
  • [27] A distributed constraint-based scheduler
    Lamma, E
    Mello, P
    Milano, M
    [J]. ARTIFICIAL INTELLIGENCE IN ENGINEERING, 1997, 11 (02): : 91 - 105
  • [28] Constraint-Based Visual Generation
    Marra, Giuseppe
    Giannini, Francesco
    Diligenti, Michelangelo
    Gori, Marco
    [J]. ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING - ICANN 2019: IMAGE PROCESSING, PT III, 2019, 11729 : 565 - 577
  • [29] Quick and clean: Constraint-based
    Mackworth, AK
    [J]. INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, PROCEEDINGS - VOL II, 1996, : 789 - 792
  • [30] Constraint-based flexible workflows
    Wainer, J
    Bezerra, FD
    [J]. GROUPWARE: DESIGN, IMPLEMENTATION, AND USE, 2003, 2806 : 151 - 158