JBUILDER2005 Create a development document Javadoc

Source: Internet
Author: User
Tags documentation inheritance

Although the detailed design is regarded as an important stage of software project in software engineering, it is often not implemented in practice. Not this stage is not important, but the implementation of a great deal of difficulty, because the software requirements are born with ADHD patients, finally detailed design, the demand has been different from the original version, and the cost of a huge, fine carved detailed design has become yesterday's yellow. On the other hand, some functional implementations often have to wait until the real code to think of a better method, after all, design is "out of thin air", and coding is "practice", so in the code when the original design adjustment is often unavoidable.

The detailed design document is a description of the source code implementation, but it is physically separated from the source code file, and the consistency between the two is easily broken, and the cost of maintaining both consistency is often unbearable for the normal cycle of the project. Various "from the document" or "direct document" technology came into being, Javadoc is the Java document technology, that is, through the "parasitic" in the source code file annotation information generated help documents, this help document itself is a detailed design document. Because the program code and the annotation information are in the same file, it is easy to adjust the annotation when changing the program, and the consistency between the two can be easily ensured.

As a Java programmer, you must have seen the JDK API help documentation, JBuilder's JDK1.4 help documentation is located in the <jbuilder installation directory >/doc/jdk_ Docs.jar, which contains the JDK's Javadoc documentation, you can extract the Jdk_doc.jar to a directory with uncompressed software such as WinRAR, and the documentation in the JDK_DOCS/JAVA/API directory is the JDK documentation for your document. Double-click the index.html file in the Open directory and you will see the following page

Figure 1 Javadoc documentation for JDK

The page is divided into three frames, the upper-left frame is the list of packages, the lower-left frame is the list of classes in the package, and the right main window frame is the API description page for the class.

Class API Description The top of the page has a navigation bar to facilitate links to a number of commonly used pages, these common pages include:

· Overview: A description List of all packages, one row in each package corresponding table.

· Package: A description List of all classes or interfaces in a package, one row in each class or interface table.

· Class: Marked as current class with no links on it.

· Use: all associated classes of a class: including inheritance relationships, dependencies, association relationships, and so on.

· Tree: In the hierarchy to list the class-level relationship in the package, through this list, you can trace the origin of the class, the following is the Java.applet package applet class inheritance with implementation trees.

Figure 2 listing the classes in the package in a hierarchy

· Deprecated: All outdated classes, interfaces, range, methods, constructors.

· Index: Indexing page, which indexes all classes, interfaces, constants, and methods in the JDK, so that you can quickly navigate to the Help content you want, and the page is as follows:

Figure 3 Organizing in an indexed way

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.