Reusing and converting code clones to aspects - An algorithmic approach

Samuel A. Ajila, Angad S. Gakhar, Chung Horng Lung, Marzia Zaman · 2012

In this research we have developed an algorithmic approach to convert source code clones to aspects. Code cloning is the process of duplicating code or creating replication of code fragments. In this work, we use an existing code-clone detection tool to identify code clones in a source code. Secondly, we design algorithms to convert the code clones into aspects and do aspect composition with the original source code. Thirdly, we implement a prototype based on the algorithms. Fourthly, we carry out a performance analysis on the aspects composed source code and our analysis shows that the aspect composed code performs as well as the original code and even better in terms of execution times.

Read the paper · More papers on PaperTik