How can one set javadoc options in a wrapper of the standard doclet?
The UMLGraph doclet UmlGraphDoc first runs the standard Java doclet with code like the following:
public static boolean start(RootDoc root) {
com.sun.tools.doclets.standard.Standard.start(root);
and then modifies the result to add UML class diagrams.
The UMLGraph doclets introduce a number of custom tags, such as @depend
and @has
. Custom tags can be specified using the Taglet interface and passed to javadoc with the -taglet
and -tagletpath
options. My question is: how can these options can be specified to the standard doclet when it is invoked from another doclet?
Here are some things I have explored:
addCustomTag
method, but this is not a public API. com.sun.tools.doclets.Configuration
class could allow the specification of options. There are hints in an old implementation I've found that this could work, but this, again, does not seem to be part of the javadoc public API. 上一篇: 如何为一个读取的Java类创建两个接口