Generation of Java Help documentation

Source: Internet
Author: User

  1. You first need to annotate the code with documentation, such as the following:
  2. Package ? wz.learning;??
  3. ???
  4. /**?
  5. ?*? Title:person<br>?
  6. ?*? Description:?
  7. ?*? COMPANY:SKJP?
  8. ? *[email Protected]?xiashengwang?
  9. ? *[email protected]?1.0?
  10. ?*/??
  11. Public ? class? Personwz? {??
  12. ???? /**?
  13. ????? *? This is the constructor for person ?
  14. ????? *[email protected]?name? person 's name -?
  15. ????? */??
  16. ???? Public ? PERSONWZ (string?name) {??
  17. ???????????
  18. ????}??
  19. ???????
  20. ???? /**?
  21. ????? *? This is the Read method ?
  22. ????? *[email protected]?bookname? title ?
  23. ????? *[email protected]?time? the time of reading ?
  24. ????? *[email protected]? return Number of readings ?
  25. ????? */??
  26. ???? Public ? int ? Read (String?bookname,? int ? time) {??
  27. ???????? return? 0;??
  28. ????}??
  29. }??

    2, through Eclipse generation is the simplest, in the project in the project list, right-click, select Export (Export), and then in the Export dialog box, select Javadoc under Java, submit to the next step.

    There are two places to note in the Javadoc Generation dialog box:
    Javadoc command: The bin/javadoc.exe of the JDK should be selected
    Destination: To create a saved path for a document, you can choose freely.
    Press Finish to submit to start generating the document.

    Note that the resulting document may be garbled and can be resolved as follows:

    Export the JavaDoc in Eclipse and fill in the parameters in extra JavaDoc Options on the last page of the wizard
    For example, the project uses the UTF-8 code to fill:-encoding UTF-8-charset UTF-8

    The document structure after the build is as follows:

    Click on the index, you can see our comments.

Generation of Java Help documentation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.