Language-independent detection of object-oriented design patterns

  • Authors:
  • Johan Fabry;Tom Mens

  • Affiliations:
  • Programming Technology Laboratory, Vrije Universiteit Brussel, Pleinlaan 2, Brussel 1050, Belgium;Service de Génie Logiciel, Université de Mons-Hainaut 6, Avenue du Champs de Mars, Mons 7000, Belgium

  • Venue:
  • Computer Languages, Systems and Structures
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper shows that one can reason at a meta level about the structure of object-oriented source code in a language-independent way. To achieve this, we propose a language-independent meta-level interface to extract complex information about the structure of the source code. This approach is validated by defining a set of logic queries to detect object-oriented best practice patterns and design patterns in two different languages: Smalltalk and Java. The queries were applied to two similar medium-sized applications available for each language, and the results were confirmed by manually investigating the source code and available documentation.