DocumentCode
2544077
Title
Generating Parameter Comments and Integrating with Method Summaries
Author
Sridhara, Giriprasad ; Pollock, Lori ; Vijay-Shanker, K.
Author_Institution
Dept. of Comput. & Inf. Sci., Univ. of Delaware, Newark, DE, USA
fYear
2011
fDate
22-24 June 2011
Firstpage
71
Lastpage
80
Abstract
An important part of the leading comments for a method are the comments for the formal parameters of the method. According to the Java documentation writing guidelines, developers should write a summary of the method´sactions followed by comments for each parameter. In this paper, we describe a novel technique to automatically generate descriptive comments for parameters of Java methods. Such generated comments can help alleviate the lack of developer written parameter comments. In addition, they can help a programmer in ensuring that a parameter comment is current with the code. We present heuristics to generate comments that provide a high-level overview of the role of a parameter in a method. We ensure that sufficient context is provided such that a developer can understand the role of the parameter in achieving the computational intent of the method. In the opinion of nine experienced developers, the automatically generated parameter comments for methods are accurate and provide a quick synopsis of the role of the parameter in achieving the desired functionality of the method.
Keywords
Java; formal specification; formal verification; Java documentation writing guidelines; formal parameter; method summary; parameter comments generation; Context; Documentation; Java; Joining processes; Pragmatics; Servers; Software; documentation; software maintenance;
fLanguage
English
Publisher
ieee
Conference_Titel
Program Comprehension (ICPC), 2011 IEEE 19th International Conference on
Conference_Location
Kingston, ON
ISSN
1092-8138
Print_ISBN
978-1-61284-308-7
Electronic_ISBN
1092-8138
Type
conf
DOI
10.1109/ICPC.2011.28
Filename
5970165
Link To Document