DocumentCode
570170
Title
Reusing and converting code clones to aspects - An algorithmic approach
Author
Ajila, Samuel A. ; Gakhar, Angad S. ; Lung, Chung H. ; Zaman, Marzia
Author_Institution
Dept. of Syst. & Comput. Eng., Carleton Univ., Ottawa, ON, Canada
fYear
2012
fDate
8-10 Aug. 2012
Firstpage
9
Lastpage
16
Abstract
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.
Keywords
aspect-oriented programming; security of data; software reusability; algorithmic approach; aspect composed code; code clone conversion; code clone reuse; code duplication; code fragments; code-clone detection tool; source code; Algorithm design and analysis; Arrays; Cloning; Measurement; Software systems; Syntactics; Algorithm; Aspects; Code Clones; Performance Analysis; Reuse;
fLanguage
English
Publisher
ieee
Conference_Titel
Information Reuse and Integration (IRI), 2012 IEEE 13th International Conference on
Conference_Location
Las Vegas, NV
Print_ISBN
978-1-4673-2282-9
Electronic_ISBN
978-1-4673-2283-6
Type
conf
DOI
10.1109/IRI.2012.6302984
Filename
6302984
Link To Document