Class JdkDoclet
java.lang.Object
uk.ac.starlink.ttools.build.JdkDoclet
- All Implemented Interfaces:
jdk.javadoc.doclet.Doclet
- Direct Known Subclasses:
JdkDoclet.Html, JdkDoclet.Xml
Doclet for documenting user-visible JEL library classes,
based on the jdk.javadoc.doclet API.
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.
- Since:
- 27 Jan 2023
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass for use withjavadoctool that writes MethodBrowser-friendly HTML output.static classClass for use withjavadoctool that writes SUN-friendly XML output.Nested classes/interfaces inherited from interface jdk.javadoc.doclet.Doclet
jdk.javadoc.doclet.Doclet.Option -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DocletOutputMust provide a format-specific output backend.getName()voidbooleanrun(jdk.javadoc.doclet.DocletEnvironment env) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jdk.javadoc.doclet.Doclet
getSupportedOptions
-
Constructor Details
-
JdkDoclet
-
-
Method Details
-
getName
- Specified by:
getNamein interfacejdk.javadoc.doclet.Doclet
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfacejdk.javadoc.doclet.Doclet
-
init
- Specified by:
initin interfacejdk.javadoc.doclet.Doclet
-
createOutput
Must provide a format-specific output backend. Called during the docletrun(DocletEnvironment)method, after option configuration.- Returns:
- output instance
- Throws:
IOException
-
run
public boolean run(jdk.javadoc.doclet.DocletEnvironment env) - Specified by:
runin interfacejdk.javadoc.doclet.Doclet
-