public class SunDoclet extends Object
At Java 8 and below, the com.sun.javadoc
API is the
standard/only way to parse javadocs.
At Java 9 it is deprecated in favour of the
jdk.javadoc.doclet
API, and at Java 17 it is withdrawn
altogether.
If the target build platform is ever moved to Java 9 or later,
this class should be retired in favour of JdkDoclet
.
JdkDoclet}
Modifier and Type | Class and Description |
---|---|
static class |
SunDoclet.Html
Class for use with
javadoc tool that writes
MethodBrowser-friendly HTML output. |
static class |
SunDoclet.Xml
Class for use with
javadoc tool that writes
SUN-friendly XML output. |
Constructor and Description |
---|
SunDoclet(RootDoc root,
DocletOutput output)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static LanguageVersion |
languageVersion()
This magic static method appears to be required on Doclet classes
to make the
isVarArgs() method on
com.sun.javadoc.ExecutableMemberDoc report variable
argument status. |
boolean |
process()
Works through the root document invoking the various protected methods
to produce output.
|
public SunDoclet(RootDoc root, DocletOutput output)
root
- document tree rootoutput
- output destinationpublic boolean process() throws IOException
IOException
public static LanguageVersion languageVersion()
isVarArgs()
method on
com.sun.javadoc.ExecutableMemberDoc
report variable
argument status. I don't know whether or where that's documented,
but I found out from
StackOverflow.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.