| CS 261 | University of Puget Sound | Spring, 2020 |
|
Computer Science II
|
||
|
Abstract Data Types and their Implementations,
Some Basic Algorithms,
Object-oriented Problem Solving, and Efficiency |
||
Warning:
This course is under development.
Although the basic structure of this course is largely established,
nothing on this Web site should be considered official or even possibly
correct.
DO NOT MAKE PLANS BASED ON THE CONTENTS OF THIS SITE UNTIL JANUARY, 2020.
This reading provides a highl-level overview of the documentation system, called Javadoc that is included in the Java environment.
The Javadoc documentation system is included within the Java software development environment. Extensive notes on this system may be found in How to Write Doc Comments for the Javadoc Tool. What follows are some comments to get you going.
Although the javadoc system includes a wide range of capabilities, the basic approach is reasonably straight forward:
A javadoc comment starts with /** (note the two asterisks rather
than one), and ends with */ (the same as any comment). Often,
multi-line comments begin with an asterisk to show continuity of the
comment. Altogether, Javadoc comments can be on one line or several lines:
/** this Javadoc comment is on one line */
/**
* this Javadoc comment extends
* over several lines.
*/
Javadoc comments in other locations are ignored, as are multiple Javadoc comments before classes, interfaces, etc.
In a general software development setting, a program Javadoc can be used to extract Javadoc information into a unified collection of Web pages.
Within Eclipse, you can generate Javadoc materials for a project, package, or class as follows:
src
subdirectory, so you might want to click on that triangle as well
to identify what package(s) you want included.
java directory located on your Desktop, as
that might be easily accessible.
The standard documentation for the Java class library is generated using the Javadoc system and may be found by accessing by the Java 9 API Specification site
This documentation shows the main layout of most Javadoc-generated documentation. A list of packages and/or classes appears on the left. When you click on a package, the classes for that package appear in the window below. When you click on a class, the documentation (e.g., for constructors, methods) appears in a window on the right.
To view your documentation, go to the directory you identified when you generated the Javadocs, and click on the name of a package.
|
created 10 February 2012 by Henry M. Walker revised 24 September 2014 revised 16 September 2018 revised 19 January 2020 |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |