Automated Generalization and Refinement of Code Templates with Ekeko/X. Molderez, T. & De Roover, C. In Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016), pages 669–672, 2016. IEEE Computer Society Press.
abstract   bibtex   
Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.
@inproceedings{9439cbd58d6a4aed8c2fb281595a8417,
  title     = "Automated Generalization and Refinement of Code Templates with Ekeko/X",
  abstract  = "Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.",
  keywords  = "program search and transformation tools, source code templates, search-based software engineering, genetic algorithms",
  author    = "Tim Molderez and {De Roover}, Coen",
  year      = "2016",
  language  = "English",
  isbn      = "978-1-5090-1855-0",
  pages     = "669--672",
  booktitle = "Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016)",
  publisher = "IEEE Computer Society Press",
}

Downloads: 0