Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
service
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
Freenet DSL
Who's Online
12 user(s) are online (7 user(s) are browsing encyclopedia)

Members: 0
Guests: 12

more...
partner

Javadoc

Javadoc is a computer software tool from Sun Microsystems for generating Application programming interface documentation into HTML format from Java programming language source code.

Javadoc is the industry standard for documenting Java classes. Most IDEs will automatically generate Javadoc HTML.

Developers use certain commenting styles and Javadoc tags when documenting source code. A Java block comment starting with /** will begin a Javadoc comment block which will be included in the generated HTML. A Javadoc tag begins with an @ (at sign). Some tags are provided in the following table.

An example for a method follows.

/** * Validates a chess move. * @author John Doe * @param theFromFile File of piece being moved * @param theFromRank Rank of piece being moved * @param theToFile File of destination square * @param theToRank Rank of destination square * @return true if a valid chess move or false if invalid */ boolean isValidMove(int theFromFile, int theFromRank, int theToFile, int theToRank) { ... }

Javadoc also provides an API for creating doclets and taglets, which allows you to analyze the structure of a Java application. This is how JDiff can generate reports of what changed between two versions of an API.

=See also=

*List of documentation generators *Comparison of documentation generators

=External links=

  • [http://java.sun.com/j2se/javadoc/ Javadoc tool web site]
  • [http://today.java.net/pub/a/today/2004/08/26/ashkelon.html Improve on Javadocs with ashkelon]
  • [http://doclet.com A collection of Javadoc doclets]
  • [http://www.getahead.ltd.uk/doctree/ An index to many Javadoc generated websites]