Package | Class | Use | Tree | Deprecated | Index | Help
| Doclet API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.javadoc
Class Doclet

    java.lang.Object
      |
      +--com.sun.javadoc.Doclet

public abstract class Doclet
extends Object

This class documents the entry-point methods in a Doclet. It may be used as the superclass of a doclet but this is not required.

Constructor Summary
`Doclet()`

Method Summary
`static int` | `optionLength(String option)` Check for doclet added options here.
`static boolean` | `start(RootDoc root)` Generate documentation here.
`static boolean` | `validOptions(String[][] options, DocErrorReporter reporter)` Check that options have the correct arguments here.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Doclet

    public Doclet()

Method Detail

### start

    public static boolean start(RootDoc root)

  Generate documentation here. This method is required for all doclets.

  Returns:
    true on success.

### optionLength

    public static int optionLength(String option)

  Check for doclet added options here.

  This method is not required and will default gracefully (to zero) if absent.

  Returns:
    number of arguments to option. Zero return means option not known. Negative value means error occurred.

### validOptions

    public static boolean validOptions(String[][] options,
                                       DocErrorReporter reporter)

  Check that options have the correct arguments here.

  This method is not required and will default gracefully (to true) if absent.

  Printing option related error messages (using the provided DocErrorReporter) is the responsibility of this method.

  Returns:
    true if the options are valid.

Package | Class | Use | Tree | Deprecated | Index | Help
| Doclet API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.