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 条
  • [1] Constraint-Based Refactoring with Foresight
    Steimann, Friedrich
    von Pilgrim, Jens
    [J]. ECOOP 2012 - OBJECT-ORIENTED PROGRAMMING, 2012, 7313 : 535 - 559
  • [2] Constraint-Based Model Refactoring
    Steimann, Friedrich
    [J]. MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, 2011, 6981 : 440 - 454
  • [3] Constraint-based agents
    Nareyek, A
    [J]. CONSTRAINT-BASED AGENTS: AN ARCHITECTURE FOR CONSTRAINT-BASED MODELING AND LOCAL-SEARCH-BASED REASONING FOR PLANNING AND SCHEDULING IN OPEN AND DYNAMIC WORLDS, 2001, 2062 : 1 - +
  • [4] CONSTRAINT-BASED REASONING
    KASIF, S
    [J]. IEEE EXPERT-INTELLIGENT SYSTEMS & THEIR APPLICATIONS, 1991, 6 (06): : 55 - 55
  • [5] Constraint-Based Metrics
    Chris Golston
    [J]. Natural Language & Linguistic Theory, 1998, 16 : 719 - 770
  • [6] Constraint-based metrics
    Golston, C
    [J]. NATURAL LANGUAGE & LINGUISTIC THEORY, 1998, 16 (04) : 719 - 770
  • [7] Constraint-based reachability
    Gotlieb, Arnaud
    Denmat, Tristan
    Lazaar, Nadjib
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2013, (107): : 25 - 43
  • [8] Constraint-based lexica
    Bouma, G
    Van Eynde, F
    Flickinger, D
    [J]. LEXICON DEVELOPMENT FOR SPEECH AND LANGUAGE PROCESSING, 2000, 12 : 43 - +
  • [9] CONSTRAINT-BASED MODELING
    MUNDY, JL
    VROBEL, P
    JOYNSON, R
    [J]. IMAGE UNDERSTANDING WORKSHOP /, 1989, : 425 - 442
  • [10] Constraint-based scheduling
    Fromherz, MPJ
    [J]. PROCEEDINGS OF THE 2001 AMERICAN CONTROL CONFERENCE, VOLS 1-6, 2001, : 3231 - 3244