Title :
Enforcing Constraints Between Documentary Comments and Source Code
Author :
Shearer, C. Dylan ; Collard, Michael L.
Author_Institution :
Dept. of Comput. Sci., Kent State Univ., Kent, OH
Abstract :
An approach for enforcing constraints between program entities and their documentary comments is presented. The approach uses srcML to represent Java source code and introduces an XML format, namely srcDoc, for marking up Javadoc-style comments. The enforced constraints are specified with a combination of XML and XQuery. An Eclipse plugin is described that demonstrates the use of XML and related technologies to express and enforce constraints on documentary comments. Examples of constraints enforcing design rationale for methods in an API are shown.
Keywords :
Java; XML; application program interfaces; source coding; API; Eclipse plugin; Java source code; Javadoc-style comments; XML; XQuery; documentary comments; Code standards; Computer science; Design methodology; Documentation; Information analysis; Information resources; Java; Markup languages; Standards development; XML;
Conference_Titel :
Program Comprehension, 2007. ICPC '07. 15th IEEE International Conference on
Conference_Location :
Banff, Alberta, BC
Print_ISBN :
0-7695-2860-0
DOI :
10.1109/ICPC.2007.20