Code Analyses for Refactoring by Source Code Patterns and Logical Queries.
Daniel Speicher, Malte Appeltauer, Günter Kniesel · 2007
Preconditions of refactorings often comprise complex analyses that require a solid formal basis. The bigger the gap between the level of abstraction of the formalism and the actual implementation is, the harder the coding and maintenance of the analysis will be. In this paper we describe a subset of GenTL, a generic analysis and transformation language. It balances the need for expressiveness, high abstractness and ease of use by combining the full power of a logic language with easily accessible definitions of source code patterns. We demonstrate the advantages of GenTL by implementing the analyses developed by Tip, Kiezun and Baumer for generalizing type constraints [11]. Our implementation needs just a few lines of code that can be directly traced back to the formal rules.
Cited by 6 works.
Authors
References
- Identifying refactoring opportunities using logic meta programming
- Refactoring for generalization using type constraints
- Static composition of refactorings
- A comparison of logic-based infrastructures for concern detection and extraction
- Fine-Grained Generic Aspects
- An Analysis of the Correctness and Completeness of Aspect Weaving
- Towards Concrete Syntax Patterns for Logic-based Transformation Rules