Now that you have a good handle on the Doclet API as it existed prior to Java 9, let's look at what changes have been made and delivered with the Java 9 platform. The new Doclet API is in the jdk.javadoc.doclet package.
At a high level, the changes to the Doclet API are as follows:
- Updates the com.sun.javadoc Doclet API to take advantage of several Java SE and JDK APIs
- Updates the com.sun.tools.doclets.standard.Standard Doclet to use the new API
- Supports the updated Taglet API that is used to create custom javadoc tags
In addition to the changes listed earlier, the new API uses the two APIs listed here:
- Compiler tree API
- Language model API
Let's explore each of these in the following sections.