Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/src/share/classes/com/sun/javadoc/RootDoc.java
38890 views
/*1* Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package com.sun.javadoc;2627/**28* Represents the root of the program structure information29* for one run of javadoc. From this root all other program30* structure information can be extracted.31* Also represents the command line information -- the32* packages, classes and options specified by the user.33*34* @since 1.235* @author Robert Field36*/37public interface RootDoc extends Doc, DocErrorReporter {3839/**40* Command line options.41* <p>42* For example, given:43* <pre>44* javadoc -foo this that -bar other ...</pre>45*46* this method will return:47* <pre>48* options()[0][0] = "-foo"49* options()[0][1] = "this"50* options()[0][2] = "that"51* options()[1][0] = "-bar"52* options()[1][1] = "other"</pre>53*54* @return an array of arrays of String.55*/56String[][] options();5758/**59* Return the packages60* <a href="package-summary.html#included">specified</a>61* on the command line.62* If <code>-subpackages</code> and <code>-exclude</code> options63* are used, return all the non-excluded packages.64*65* @return packages specified on the command line.66*/67PackageDoc[] specifiedPackages();6869/**70* Return the classes and interfaces71* <a href="package-summary.html#included">specified</a>72* as source file names on the command line.73*74* @return classes and interfaces specified on the command line.75*/76ClassDoc[] specifiedClasses();7778/**79* Return the80* <a href="package-summary.html#included">included</a>81classes and interfaces in all packages.82*83* @return included classes and interfaces in all packages.84*/85ClassDoc[] classes();8687/**88* Return a PackageDoc for the specified package name.89*90* @param name package name91*92* @return a PackageDoc holding the specified package, null if93* this package is not referenced.94*/95PackageDoc packageNamed(String name);9697/**98* Return a ClassDoc for the specified class or interface name.99*100* @param qualifiedName101* <a href="package-summary.html#qualified">qualified</a>102* class or package name103*104* @return a ClassDoc holding the specified class, null if105* this class is not referenced.106*/107ClassDoc classNamed(String qualifiedName);108}109110111