Hauptseite | Deutsche Enzyklopädie

JavaDoc

JavaDoc ist ein Software-Dokumentationswerkzeug, das aus Java-Quelltexten automatisch HTML-Dokumentationsdateien erstellt. Dazu müssen spezielle Kommentare im Quelltext eingefügt werden.

Kommentare können dabei für Interfaces, Klassen, Methoden und Felder über spezielle Doclet-Tags definiert werden. JavaDoc wurde ebenso wie Java von Sun Microsystems entwickelt und ist Bestandteil des Java 2 Software Development Kits (J2SDK).

Nach dem Vorbild JavaDocs entwickelte Microsoft XmlDoc für seine .NET-Plattform.

Inhaltsverzeichnis
1 Anwendungsgebiet
2 Funktionsweise
3 Siehe auch
4 Weblinks

Anwendungsgebiet

Java ist eine objektorientierte Programmiersprache. Die Kapselung und das Geheimnisprinzip werden als zentrale Elemente objektorientierten Programmierens angesehen, insbesondere in Java. Daraus folgt, dass zur Verwendung eines Symbols, z.B. einer Klasse oder einer Methode, seine öffentliche Schnittstelle und seine Spezifikation herangezogen werden sollten. Sich vor der Verwendung Kenntnisse über die interne Funktionsweise zu verschaffen, verstößt gegen das Geheimnisprinzip und macht außerdem unter Umständen von Änderungen in der Implementierung abhängig. Daher ist es notwendig, die Schnittstelle zu spezifizieren und dokumentieren. Das ist das Haupteinsatzgebiet von Javadoc.

Funktionsweise

JavaDoc erhält beim Aufruf Optionen mit Angaben über die zu dokumentierenden Java-Quelltexte. JavaDoc parst die Quelltexte nach allen JavaDoc-Kommentaren (beginnend mit /**) und den darauf folgenden, nicht-lokalen Symbolen. Jeder JavaDoc-Kommentar wird nach darin enthaltenen JavaDoc-Tags (beginnend mit @ oder {@) gescannt. Diese enthalten Metadaten mit dokumentativem Charakter über das jeweilige Symbol. Mit Hilfe sogenannter Taglets kann der bestehende Tag-Wortschatz von JavaDoc erweitert werden. Das Doclet erzeugt anschließend die Ausgabe. Das Standard-Doclet erzeugt eine Ausgabe in HTML. Es existieren aber auch weitere Doclets, um die Dokumentation in anderen Formaten wie RTF, XML, PDF, Framemaker, Windows Help und einigen mehr zu erzeugen.

Beispiel-Quelltext

/** Ein Hello-World-Programm in Java.
 * Dies ist ein JavaDoc-Kommentar.
 * @author John Doe
 * @version 1.0
 */
public final class Hello {

    /** Hauptprogramm.
     * @param args Kommandozeilenparameter (derzeit ignoriert)
     */
    public static final void main(final String... args) {
        System.out.println("Hallo, Welt!");
    }

} // class Hello

Beispiel-Ausgabe

Auch die Java-API-Dokumentation wurde mit Hilfe von JavaDoc erstellt. Sie ist meist die erste JavaDoc-Dokumentation, mit der ein Java-Programmierer konfrontiert wird. Sie ist zu finden unter [1].

Siehe auch

Weblinks



Limit search to: Body and Title Deutsche Seiten Path

Websites for JavaDoc
Showing page 1 (1 - 10 of 27 hits) Next »
"Official" JavaDoc style guidelines from Sun Microsystems. "Official" JavaDoc style guidelines from Sun Microsystems.
Includes tool documentation, specification, announcement mailing list, and custom doclets. Includes tool documentation, specification, announcement mailing list, and custom doclets.
An extended Javadoc Doclet engine. It's a generic Java tool that lets create custom Javadoc @tags and based on those @tags generate source ... it provides. [Open source, BSD license] An extended Javadoc Doclet engine. It's a generic Java tool that lets create custom Javadoc @tags and based on those @tags generate source ...
GUI tool that allows you to add JavaDoc comments to your source code easily. With DocWiz ... GPL] GUI tool that allows you to add JavaDoc comments to your source code easily. With DocWiz ...
Open source utility, analogous to javadoc, that generates PL/SQL code documentation in HTML ... Open source, LGPL] Open source utility, analogous to javadoc, that generates PL/SQL code documentation in HTML ...
... PHP scripts in an intelligent manner. Similar to javaDoc. A script for documentation PHP scripts in an intelligent manner. Similar to javaDoc.
Articles, example applets, javadoc and source code and a description of author's Decaf project. Articles, example applets, javadoc and source code and a description of author ...
API documentation in WinHelp and HTMLHelp format. API documentation in WinHelp and HTMLHelp format.
... class. Windows and Unix/Linus versions. Integrates with JavaDoc. Repository of code examples from open source projects ... class. Windows and Unix/Linus versions. Integrates with JavaDoc.
... code generation tool in the form of a Javadoc doclet. Generates a home interfaces, remote interfaces, CMP ... code generation tool in the form of a Javadoc doclet. Generates a home interfaces, remote interfaces, CMP ...

Next »

Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor
Free thumbnail preview by Thumbshots.org

Search for products at amazon.com:
Search:
Keywords:
amazon.com books on 'JavaDoc':
Search at Google.com:
Google
WebCalSky.com Enzyklopädie

Suchresultate aus unserem günstigen CalSky-Shop