2003 · 125 citations · 10 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSystems ProgrammingAbstract Syntax TreesControl-flow AnalysisSoftware DesignSoftware RefactoringType CheckingType SystemsBehavior-preserving RefactoringBehavior-preserving TransformationConstraintsInterprocedural AnalysisRefactoringRefactoring VerificationTransformationsType Constraints
Refactoring improves program design by applying behavior‑preserving transformations, with preconditions and source‑code modifications that depend on interprocedural type relationships, especially for generalization refactorings such as Extract Interface and Pull Up Members. The study proposes using type constraints to verify preconditions and determine allowable modifications for generalization refactorings. The approach applies type constraints to check preconditions and guide source‑code changes in Eclipse. This work is implemented in the standard distribution of Eclipse (see www.eclipse.org).
Refactoring is the process of applying behavior-preserving transformations (called "refactorings") in order to improve a program's design. Associated with a refactoring is a set of preconditions that must be satisfied to guarantee that program behavior is preserved, and a set of source code modifications. An important category of refactorings is concerned with generalization (e.g., Extract Interface for re-routing the access to a class via a newly created interface, and Pull Up Members for moving members into a superclass). For these refactorings, both the preconditions and the set of allowable source code modifications depend on interprocedural relationships between types of variables. We present an approach in which type constraints are used to verify the preconditions and to determine the allowable source code modifications for a number of generalization-related refactorings. This work is implemented in the standard distribution of Eclipse (see www.eclipse.org).
10
Refactoring object-oriented frameworks
William F. Opdyke · 1992 · 1K citations
Improving the Design of Existing Code
Martin Fowler · 2000 · 238 citations
Evolving Object-Oriented Designs with Refactorings
Lance Tokuda, Don Batory · Automated Software Engineering · 2001 · 232 citations
Reengineering class hierarchies using concept analysis
Gregor Snelting, Frank Tip · 1998 · 187 citations · Full text
Computing, Computer Science, Design +17
Creating abstract superclasses by refactoring
William F. Opdyke, Ralph E. Johnson · 1993 · 128 citations · Full text