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
Interface RootDoc

All Superinterfaces:
  Comparable, Doc, DocErrorReporter

public interface RootDoc
extends Doc, DocErrorReporter

This class holds the information from one run of javadoc. Particularly the packages, classes and options specified by the user.

Since:
  JDK1.2

Method Summary
`ClassDoc[]` | `classes()` Return the classes and interfaces to be documented.
`ClassDoc` | `classNamed(String qualifiedName)` Return a ClassDoc for the specified class/interface name
`String[][]` | `options()` Command line options.
`PackageDoc` | `packageNamed(String name)` Return a PackageDoc for the specified package name
`ClassDoc[]` | `specifiedClasses()` Return the classes and interfaces specified on the command line.
`PackageDoc[]` | `specifiedPackages()` Return the packages specified on the command line.

Methods inherited from interface com.sun.javadoc.Doc
`commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isClass, isConstructor, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, name, position, seeTags, setRawCommentText, tags, tags`

Methods inherited from interface com.sun.javadoc.DocErrorReporter
`printError, printError, printNotice, printNotice, printWarning, printWarning`

Method Detail

### options

    public String[][] options()

  Command line options.

       For example, given:
           javadoc -foo this that -bar other ...

       This method will return:
            options()[0][0] = "-foo"
            options()[0][1] = "this"
            options()[0][2] = "that"
            options()[1][0] = "-bar"
            options()[1][1] = "other"

  Returns:
    an array of arrays of String.

### specifiedPackages

    public PackageDoc[] specifiedPackages()

  Return the packages specified on the command line.

  Returns:
    packages specified on the command line.

### specifiedClasses

    public ClassDoc[] specifiedClasses()

  Return the classes and interfaces specified on the command line.

  Returns:
    classes and interfaces specified on the command line.

### classes

    public ClassDoc[] classes()

  Return the classes and interfaces to be documented.

  Returns:
    classes and interfaces to be documented.

### packageNamed

    public PackageDoc packageNamed(String name)

  Return a PackageDoc for the specified package name

  Parameters:
    `name` - package name
  Returns:
    a PackageDoc holding the specified package, null if this package is not referenced.

### classNamed

    public ClassDoc classNamed(String qualifiedName)

  Return a ClassDoc for the specified class/interface name

  Parameters:
    `qualifiedName` - qualified class name (i.e. includes package name).
  Returns:
    a ClassDoc holding the specified class, null if this class is not referenced.

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.