Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/src/share/classes/com/sun/javadoc/PackageDoc.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 a java package. Provides access to information29* about the package, the package's comment and tags, and the30* classes in the package.31* <p>32* Each method whose return type is an array will return an empty33* array (never null) when there are no objects in the result.34*35* @since 1.236* @author Kaiyang Liu (original)37* @author Robert Field (rewrite)38*/39public interface PackageDoc extends Doc {4041/**42* Get all classes and interfaces in the package, filtered to the specified43* <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access44* modifier option</a>.45*46* @return filtered classes and interfaces in this package47* @param filter Specifying true filters according to the specified access48* modifier option.49* Specifying false includes all classes and interfaces50* regardless of access modifier option.51* @since 1.452*/53ClassDoc[] allClasses(boolean filter);5455/**56* Get all57* <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>58* classes and interfaces in the package. Same as allClasses(true).59*60* @return all included classes and interfaces in this package.61*/62ClassDoc[] allClasses();6364/**65* Get included66* <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">ordinary</a>67* classes (that is, exclude exceptions, errors, enums, interfaces, and68* annotation types)69* in this package.70*71* @return included ordinary classes in this package.72*/73ClassDoc[] ordinaryClasses();7475/**76* Get included Exception classes in this package.77*78* @return included Exceptions in this package.79*/80ClassDoc[] exceptions();8182/**83* Get included Error classes in this package.84*85* @return included Errors in this package.86*/87ClassDoc[] errors();8889/**90* Get included enum types in this package.91*92* @return included enum types in this package.93* @since 1.594*/95ClassDoc[] enums();9697/**98* Get included interfaces in this package, omitting annotation types.99*100* @return included interfaces in this package.101*/102ClassDoc[] interfaces();103104/**105* Get included annotation types in this package.106*107* @return included annotation types in this package.108* @since 1.5109*/110AnnotationTypeDoc[] annotationTypes();111112/**113* Get the annotations of this package.114* Return an empty array if there are none.115*116* @return the annotations of this package.117* @since 1.5118*/119AnnotationDesc[] annotations();120121/**122* Lookup a class or interface within this package.123*124* @return ClassDoc of found class or interface,125* or null if not found.126*/127ClassDoc findClass(String className);128}129130131