Javadoc and the Doclet API are closely related. Javadoc is a documentation tool, and the Doclet API provides functionality so that we can inspect the Javadoc comments embedded at the source levels of libraries and programs. In this section, we will review the earlier status of the Doclet API (pre-Java 9) and then explore the changes introduced to the Doclet API in the current Java platform. Finally, we will review Javadoc.
Understanding Javadoc and the Doclet API
The pre-Java 9 Doclet API
The pre-Java 9 Doclet API, or the com.sun.javadoc package, gives us access to look at Javadoc comments located in the source code. Invoking a Doclet is accomplished by using the start method. This method's signature is public static...