Title :
Code querying by UML
Author :
Noguera, Carlos ; De Roover, Coen ; Kellens, Andy ; Jonckers, Viviane
Author_Institution :
Software Languages Lab., Vrije Univ. Brussel, Brussels, Belgium
Abstract :
The need to identify source code that exhibits particular characteristics is essential to program comprehension. In this paper we introduce Arabica, a tool for querying Java code using UML class and sequence diagrams. Our use of UML diagrams avoids the need for developers to familiarize themselves with yet another language. In contrast to tools that rely on dedicated query languages, Arabica encodes querying semantics in a dedicated, minimal UML profile. Stereotyped class and sequence diagrams, characterizing structural and behavioral properties respectively, are translated into logic program queries. Using examples from the JHotDraw framework, we illustrate the utility of Arabica in validating design invariants, finding design pattern implementations and exploring extension points. We present a pre/post-test quasi experiment as a preliminary assessment of our approach.
Keywords :
Java; Unified Modeling Language; query processing; reverse engineering; Arabica; JHotDraw framework; Java code querying; UML class; behavioral properties; logic program queries; pre-posttest quasi experiment; program comprehension; sequence diagrams; source code identification; stereotyped class; structural properties; Concrete; Database languages; Java; Mice; Semantics; Syntactics; Unified modeling language;
Conference_Titel :
Program Comprehension (ICPC), 2012 IEEE 20th International Conference on
Conference_Location :
Passau
Print_ISBN :
978-1-4673-1213-4
Electronic_ISBN :
1092-8138
DOI :
10.1109/ICPC.2012.6240492