public abstract class JdkDoclet extends Object
Two concrete implementations are provided as inner classes,
 using different DocletOutput backends.
 
The jdk.javadoc.doclet API is available only at
 Java 9 and later, so this class will not compile at earlier
 JDK versions.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
JdkDoclet.Html
Class for use with  
javadoc tool that writes
 MethodBrowser-friendly HTML output. | 
static class  | 
JdkDoclet.Xml
Class for use with  
javadoc tool that writes
 SUN-friendly XML output. | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
JdkDoclet(String name)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract DocletOutput | 
createOutput()
Must provide a format-specific output backend. 
 | 
String | 
getName()  | 
javax.lang.model.SourceVersion | 
getSupportedSourceVersion()  | 
void | 
init(Locale locale,
    Reporter reporter)  | 
boolean | 
run(DocletEnvironment env)  | 
protected JdkDoclet(String name)
name - doclet namepublic String getName()
public javax.lang.model.SourceVersion getSupportedSourceVersion()
public void init(Locale locale, Reporter reporter)
protected abstract DocletOutput createOutput() throws IOException
run(DocletEnvironment) method,
 after option configuration.IOExceptionpublic boolean run(DocletEnvironment env)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.