Information About

Javadoc




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


JAVADOC TAGS


  • --- 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.



EXAMPLE


An example of using Javadoc to document 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




EXTERNAL LINKS