Title :
GraPacc: A graph-based pattern-oriented, context-sensitive code completion tool
Author :
Nguyen, Anh Tuan ; Nguyen, Hoan Anh ; Nguyen, Tung Thanh ; Nguyen, Tien N.
Author_Institution :
Electr. & Comput. Eng. Dept., Iowa State Univ., Ames, IA, USA
Abstract :
Code completion tool plays an important role in daily development activities. It helps developers by auto-completing tedious and detailed code during an editing session. However, existing code completion tools are limited to recommending only context-free code templates and a single method call of the variable under editing. We introduce GraPacc, an advanced, context-sensitive code completion tool that is based on frequent API usage patterns. It extracts the context-sensitive features from the code under editing, for example, the API elements on focus and the current editing point, and their relations to other code elements. It then ranks the relevant API usage patterns and auto-completes the current code with the proper elements according to the chosen pattern.
Keywords :
application program interfaces; software tools; API usage pattern; GraPacc; context-free code templates; context-sensitive code completion tool; editing session; graph-based pattern-oriented code completion tool; Context; Feature extraction; Indexes; Programming; Switches; Vectors; Pattern-oriented Code Completion; Usage Pattern;
Conference_Titel :
Software Engineering (ICSE), 2012 34th International Conference on
Conference_Location :
Zurich
Print_ISBN :
978-1-4673-1066-6
Electronic_ISBN :
0270-5257
DOI :
10.1109/ICSE.2012.6227236