StandardDocletpublic interface Doclet
init method with an appropriate locale and reporter. getSupportedOptions, and getSupportedSourceVersion. These methods are only called once. run method on the doclet object, giving it a DocletEnvironment object, from which the doclet can determine the elements to be included in the documentation. If a doclet object is created and used without the above protocol being followed, then the doclet's behavior is not defined by this interface specification.
To start the doclet, pass -doclet followed by the fully-qualified name of the entry point class (i.e. the implementation of this interface) on the javadoc tool command line.
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
Doclet.Option |
An encapsulation of option name, aliases, parameters and descriptions as used by the Doclet. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getName() |
Returns a name identifying the doclet. |
Set |
getSupportedOptions() |
Returns all the supported options. |
SourceVersion |
getSupportedSourceVersion() |
Returns the version of the Java Programming Language supported by this doclet. |
void |
init |
Initializes this doclet with the given locale and error reporter. |
boolean |
run |
The entry point of the doclet. |
void init(Locale locale, Reporter reporter)
locale - the locale to be usedreporter - the reporter to be usedString getName()
Set<? extends Doclet.Option> getSupportedOptions()
SourceVersion getSupportedSourceVersion()
boolean run(DocletEnvironment environment)
environment - from which essential information can be extracted
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.javadoc/jdk/javadoc/doclet/Doclet.html