IBM®
Skip to main content
    United States change      Terms of use
 
 
Select a scope:    
     Home      Products      Services & industry solutions      Support & downloads      My account     
alphaWorks  >  Java technology  >  

Documentation Enhancer for Java

A tool that enhances Javadoc documentation files with semantic information gathered by analyzing the corresponding class files.


Date Posted: October 7, 2002
Overview Requirements DownloadFAQsForum Reviews

1. For whom is Documentation Enhancer for Java intended?
2. How do I run the Documentation Enhancer on just a part of the HTML files?
3. Why does Documentation Enhancer for Java say it has failed on some of my files? What are the files it failed to enhance?
4. The Documentation Enhancer requires the following files:
5. Why does Documentation Enhancer for Java refer to methods and fields that do not exist?
6. Can Documentation Enhancer for Java handle large projects?
7. How can I enhance the tool in order to add my own information into the Javadocs?


1. For whom is Documentation Enhancer for Java intended?

This application is intended for Java developers. It provides them with extended information about libraries and applications that they obtain but don't have the source code for.

The application can also be used by Java library developers who wish to provide their clients with a richer documentation of the APIs they develop.

Back to top Back to top

2. How do I run the Documentation Enhancer on just a part of the HTML files?

Simply create a pruned version of your Javadoc documentation that contains only the classes and packages you care about. Run the Documentation Enhancer with the pruned version as source, and use the result to overwrite a copy of the source.

Back to top Back to top

3. Why does Documentation Enhancer for Java say it has failed on some of my files? What are the files it failed to enhance?

(From the file readme.html:) The main cause of failures is erroneous Javadoc HTML files. Errors in the Javadoc HTML files result from the fact that programmers can add their own HTML tags to the Javadoc comments (which are used to generate the Javadoc files), and this is not always done correctly (consider, for example, the documentation of the method toString(double d) of class java.lang.Double in Sun's JDK 1.2.2). Besides that, incorrect parsing may result from version variations in Javadoc's output format or simply (we hate to admit) from our bugs.

When the parsing of a Javadoc HTML file fails, the original (unenhanced) file is copied unchanged to the target location. The file errors.log in the destination folder contains the list of failed files.

Back to top Back to top

4. The Documentation Enhancer requires the following files:

The Documentation Enhancer requires the following files:
  • the analyzed component's Javadoc HTML files
  • the JAR file containing the analyzed component
  • the JAR and/or class files that are required by the analyzed component (such as files for classes that are superclasses of those in the analyzed component; files containing classes that are the types of fields in the analyzed component; and so forth.
  • the product's own libraries, including toad.jar and serveral other JAR files that are shipped with Documentation Enhancer.

Back to top Back to top

5. Why does Documentation Enhancer for Java refer to methods and fields that do not exist?

The information added by the Documentation Enhancer includes references to methods that could be private or could have package-level access only. These methods are normally not included in the Javadoc documentation, but they do exist.

Back to top Back to top

6. Can Documentation Enhancer for Java handle large projects?

We have successfully run the Documentation Enhancer on the entire JDK 1.4 run-time library (over 8,000 classes and interfaces, about 2,700 of them public). Realistically, this means that the product will correctly handle almost any existing Java class library.

Back to top Back to top

7. How can I enhance the tool in order to add my own information into the Javadocs?

To learn more about the extension capabilities of the framework, please refer to the framework.html documentation shipped with the tool.

Back to top Back to top
Download now Download now

Related technologies

For platform(s):
Windows

For topics:
semantics


Related resources

Integrated documentation a la Javadoc

developerWorks Java zone

Java tutorials

 

    About IBM Privacy Contact