@ericbouwers

Exploiting the Correspondence between Micro Patterns and Class Names

, and . Source Code Analysis and Manipulation, IEEE International Workshop on, (2008)
DOI: http://doi.ieeecomputersociety.org/10.1109/SCAM.2008.23

Abstract

This paper argues that semantic information encoded in natural language identifiers is a largely neglected resource for program analysis.First we show that words in Java class names relate to class properties, expressed using the recently developed micro patterns language.We analyze a large corpus of Java programs to create a database that links common class name words with micro patterns. Finally we report on prototype tools integrated with the Eclipse development environment. These tools use the database to inform programmers of particular problems or optimization opportunities in their code.

Description

Using 9 project with 29398 classes to find a relation between micro patterns and class names. Only the last noun (the suffix) of the class name is used. Even though the number of nouns shared between projects is small (66 percent of nouns are not shared), the authors extracted 3 example rules which they argue are valid.

Links and resources

Tags

community

  • @sjbutler
  • @ericbouwers
  • @dblp
@ericbouwers's tags highlighted