author | mli |
Wed, 23 May 2018 14:21:14 +0800 | |
changeset 50230 | cae567ae015d |
parent 49415 | 56a5f899e882 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
48840
5e2d2067da48
8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5520 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.javadoc; |
|
27 |
||
28 |
/** |
|
29 |
* Represents a java package. Provides access to information |
|
30 |
* about the package, the package's comment and tags, and the |
|
31 |
* classes in the package. |
|
32 |
* <p> |
|
33 |
* Each method whose return type is an array will return an empty |
|
34 |
* array (never null) when there are no objects in the result. |
|
35 |
* |
|
36 |
* @since 1.2 |
|
37 |
* @author Kaiyang Liu (original) |
|
38 |
* @author Robert Field (rewrite) |
|
38617 | 39 |
* |
40 |
* @deprecated |
|
41 |
* The declarations in this package have been superseded by those |
|
42 |
* in the package {@code jdk.javadoc.doclet}. |
|
43 |
* For more information, see the <i>Migration Guide</i> in the documentation for that package. |
|
10 | 44 |
*/ |
48840
5e2d2067da48
8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents:
47216
diff
changeset
|
45 |
@Deprecated(since="9", forRemoval=true) |
5e2d2067da48
8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents:
47216
diff
changeset
|
46 |
@SuppressWarnings("removal") |
10 | 47 |
public interface PackageDoc extends Doc { |
48 |
||
49 |
/** |
|
50 |
* Get all classes and interfaces in the package, filtered to the specified |
|
49415
56a5f899e882
8199902: {@docRoot} references need to be updated to reflect new module/package structure
jjg
parents:
48840
diff
changeset
|
51 |
* <a href="{@docRoot}/jdk.javadoc/com/sun/javadoc/package-summary.html#included">access |
10 | 52 |
* modifier option</a>. |
53 |
* |
|
54 |
* @return filtered classes and interfaces in this package |
|
55 |
* @param filter Specifying true filters according to the specified access |
|
56 |
* modifier option. |
|
57 |
* Specifying false includes all classes and interfaces |
|
58 |
* regardless of access modifier option. |
|
59 |
* @since 1.4 |
|
60 |
*/ |
|
61 |
ClassDoc[] allClasses(boolean filter); |
|
62 |
||
63 |
/** |
|
64 |
* Get all |
|
49415
56a5f899e882
8199902: {@docRoot} references need to be updated to reflect new module/package structure
jjg
parents:
48840
diff
changeset
|
65 |
* <a href="{@docRoot}/jdk.javadoc/com/sun/javadoc/package-summary.html#included">included</a> |
10 | 66 |
* classes and interfaces in the package. Same as allClasses(true). |
67 |
* |
|
68 |
* @return all included classes and interfaces in this package. |
|
69 |
*/ |
|
70 |
ClassDoc[] allClasses(); |
|
71 |
||
72 |
/** |
|
73 |
* Get included |
|
49415
56a5f899e882
8199902: {@docRoot} references need to be updated to reflect new module/package structure
jjg
parents:
48840
diff
changeset
|
74 |
* <a href="{@docRoot}/jdk.javadoc/com/sun/javadoc/package-summary.html#class">ordinary</a> |
10 | 75 |
* classes (that is, exclude exceptions, errors, enums, interfaces, and |
76 |
* annotation types) |
|
77 |
* in this package. |
|
78 |
* |
|
79 |
* @return included ordinary classes in this package. |
|
80 |
*/ |
|
81 |
ClassDoc[] ordinaryClasses(); |
|
82 |
||
83 |
/** |
|
84 |
* Get included Exception classes in this package. |
|
85 |
* |
|
86 |
* @return included Exceptions in this package. |
|
87 |
*/ |
|
88 |
ClassDoc[] exceptions(); |
|
89 |
||
90 |
/** |
|
91 |
* Get included Error classes in this package. |
|
92 |
* |
|
93 |
* @return included Errors in this package. |
|
94 |
*/ |
|
95 |
ClassDoc[] errors(); |
|
96 |
||
97 |
/** |
|
98 |
* Get included enum types in this package. |
|
99 |
* |
|
100 |
* @return included enum types in this package. |
|
101 |
* @since 1.5 |
|
102 |
*/ |
|
103 |
ClassDoc[] enums(); |
|
104 |
||
105 |
/** |
|
106 |
* Get included interfaces in this package, omitting annotation types. |
|
107 |
* |
|
108 |
* @return included interfaces in this package. |
|
109 |
*/ |
|
110 |
ClassDoc[] interfaces(); |
|
111 |
||
112 |
/** |
|
113 |
* Get included annotation types in this package. |
|
114 |
* |
|
115 |
* @return included annotation types in this package. |
|
116 |
* @since 1.5 |
|
117 |
*/ |
|
118 |
AnnotationTypeDoc[] annotationTypes(); |
|
119 |
||
120 |
/** |
|
121 |
* Get the annotations of this package. |
|
122 |
* Return an empty array if there are none. |
|
123 |
* |
|
124 |
* @return the annotations of this package. |
|
125 |
* @since 1.5 |
|
126 |
*/ |
|
127 |
AnnotationDesc[] annotations(); |
|
128 |
||
129 |
/** |
|
130 |
* Lookup a class or interface within this package. |
|
131 |
* |
|
23136
aa8958a4c8f4
8035877: javadoc classes are missing @return and @param tags
jjg
parents:
5520
diff
changeset
|
132 |
* @param className A String containing the name of the class to look up. |
10 | 133 |
* @return ClassDoc of found class or interface, |
134 |
* or null if not found. |
|
135 |
*/ |
|
136 |
ClassDoc findClass(String className); |
|
137 |
} |