java - Expand inline tags in custom Javadoc taglet -


i wrote custom javadoc taglet adds new note tag:

 ...  public boolean isinlinetag() { return false; }    public string tostring(tag tag) {       return "<pre class='note'>" + tag.text() + "</pre>";    } 

it works far, inline tags not expanded. here example comment:

/**  * @note test note {@link someclass} // @link tag not expanded  * @param name - here {@link someclass} works // works standard 'param' tag  */ 

the {@link} inline tag not expanded. however, works fine built-in param javadoc tag.

is there way expand nested inline tags in custom javadoc taglet?

thanks!

the taglet overview says:

taglets can written either block tags, such @todo, or inline tags, such {@underline}. block taglets not support inline tags in text.

in fact, taglet api bit minimal, supports tostring() method.

you inside method retrieve subtags of parameter tag (with .inlinetags()), have format them yourself, since don't have access normal machinery of standard doclet taglet.

so, looks out of luck here, if don't want reimplement (or copy) parts of standard doclet in own taglet. (but then, same directly extend standard doclet instead of patching taglets.)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -