简体   繁体   中英

JavaDoc - Can I divide methods into groups?

I am currently creating the documentation for a class with many functions. Is there any way to organize the JavaDoc such that the methods in the overview are divided into a few categories?

Maybe try to refactor it so you don't have "many functions" inside one class. It is much better to divide code into small fractions that are easier for maintaining, readability, testing, debugging, documenting etc..

The JavaDoc tool does not have such a functionality. Even the JDK's methods aren't grouped in such a fashion.

I am afraid its not Javadoc - but doxygen supports grouping items in the output.

I've used doxygen in preference to Javadoc for personal projects, and for multi-language projects professionally. The documentation comment format is close enough to Javadoc for the most part, but I've found it much richer and extendable, and the output is just better.

Heck, for one project we published the Users Guide and API Guide as PDF through doxygen...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM