author | ksrini |
Sun, 15 Jun 2014 08:41:57 -0700 | |
changeset 25454 | 376a52c9540c |
parent 22163 | 3651128c74eb |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
2 |
* Copyright (c) 1998, 2014, 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.tools.doclets.internal.toolkit.util; |
|
27 |
||
14258 | 28 |
import java.util.*; |
29 |
||
10 | 30 |
import com.sun.javadoc.*; |
14258 | 31 |
import com.sun.tools.doclets.internal.toolkit.*; |
10 | 32 |
|
33 |
/** |
|
34 |
* Build Class Hierarchy for all the Classes. This class builds the Class |
|
35 |
* Tree and the Interface Tree separately. |
|
36 |
* |
|
14260
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
37 |
* <p><b>This is NOT part of any supported API. |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
38 |
* If you write code that depends on this, you do so at your own risk. |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
39 |
* This code and its internal interfaces are subject to change or |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
40 |
* deletion without notice.</b> |
10 | 41 |
* |
42 |
* @see java.util.HashMap |
|
43 |
* @see java.util.List |
|
44 |
* @see com.sun.javadoc.Type |
|
45 |
* @see com.sun.javadoc.ClassDoc |
|
46 |
* @author Atul M Dambalkar |
|
47 |
*/ |
|
48 |
public class ClassTree { |
|
49 |
||
50 |
/** |
|
51 |
* List of baseclasses. Contains only java.lang.Object. Can be used to get |
|
52 |
* the mapped listing of sub-classes. |
|
53 |
*/ |
|
22163 | 54 |
private List<ClassDoc> baseclasses = new ArrayList<>(); |
10 | 55 |
|
56 |
/** |
|
57 |
* Mapping for each Class with their SubClasses |
|
58 |
*/ |
|
22163 | 59 |
private Map<ClassDoc,List<ClassDoc>> subclasses = new HashMap<>(); |
10 | 60 |
|
61 |
/** |
|
62 |
* List of base-interfaces. Contains list of all the interfaces who do not |
|
63 |
* have super-interfaces. Can be used to get the mapped listing of |
|
64 |
* sub-interfaces. |
|
65 |
*/ |
|
22163 | 66 |
private List<ClassDoc> baseinterfaces = new ArrayList<>(); |
10 | 67 |
|
68 |
/** |
|
69 |
* Mapping for each Interface with their SubInterfaces |
|
70 |
*/ |
|
22163 | 71 |
private Map<ClassDoc,List<ClassDoc>> subinterfaces = new HashMap<>(); |
10 | 72 |
|
22163 | 73 |
private List<ClassDoc> baseEnums = new ArrayList<>(); |
74 |
private Map<ClassDoc,List<ClassDoc>> subEnums = new HashMap<>(); |
|
10 | 75 |
|
22163 | 76 |
private List<ClassDoc> baseAnnotationTypes = new ArrayList<>(); |
77 |
private Map<ClassDoc,List<ClassDoc>> subAnnotationTypes = new HashMap<>(); |
|
10 | 78 |
|
79 |
/** |
|
80 |
* Mapping for each Interface with classes who implement it. |
|
81 |
*/ |
|
22163 | 82 |
private Map<ClassDoc,List<ClassDoc>> implementingclasses = new HashMap<>(); |
10 | 83 |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
84 |
private final Configuration configuration; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
85 |
private final Utils utils; |
10 | 86 |
/** |
87 |
* Constructor. Build the Tree using the Root of this Javadoc run. |
|
88 |
* |
|
89 |
* @param configuration the configuration of the doclet. |
|
90 |
* @param noDeprecated Don't add deprecated classes in the class tree, if |
|
91 |
* true. |
|
92 |
*/ |
|
93 |
public ClassTree(Configuration configuration, boolean noDeprecated) { |
|
94 |
configuration.message.notice("doclet.Building_Tree"); |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
95 |
this.configuration = configuration; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
96 |
this.utils = configuration.utils; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
97 |
buildTree(configuration.root.classes()); |
10 | 98 |
} |
99 |
||
100 |
/** |
|
101 |
* Constructor. Build the Tree using the Root of this Javadoc run. |
|
102 |
* |
|
103 |
* @param root Root of the Document. |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
104 |
* @param configuration The current configuration of the doclet. |
10 | 105 |
*/ |
106 |
public ClassTree(RootDoc root, Configuration configuration) { |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
107 |
this.configuration = configuration; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
108 |
this.utils = configuration.utils; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
109 |
buildTree(root.classes()); |
10 | 110 |
} |
111 |
||
112 |
/** |
|
113 |
* Constructor. Build the tree for the given array of classes. |
|
114 |
* |
|
115 |
* @param classes Array of classes. |
|
116 |
* @param configuration The curren configuration of the doclet. |
|
117 |
*/ |
|
118 |
public ClassTree(ClassDoc[] classes, Configuration configuration) { |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
119 |
this.configuration = configuration; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
120 |
this.utils = configuration.utils; |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
121 |
buildTree(classes); |
10 | 122 |
} |
123 |
||
124 |
/** |
|
125 |
* Generate mapping for the sub-classes for every class in this run. |
|
126 |
* Return the sub-class list for java.lang.Object which will be having |
|
127 |
* sub-class listing for itself and also for each sub-class itself will |
|
128 |
* have their own sub-class lists. |
|
129 |
* |
|
130 |
* @param classes all the classes in this run. |
|
131 |
* @param configuration the current configuration of the doclet. |
|
132 |
*/ |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
133 |
private void buildTree(ClassDoc[] classes) { |
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
134 |
for (ClassDoc aClass : classes) { |
9606
e5a619cb5dd3
6492694: @deprecated tag doesn't work in package-info files.
bpatel
parents:
5520
diff
changeset
|
135 |
// In the tree page (e.g overview-tree.html) do not include |
e5a619cb5dd3
6492694: @deprecated tag doesn't work in package-info files.
bpatel
parents:
5520
diff
changeset
|
136 |
// information of classes which are deprecated or are a part of a |
e5a619cb5dd3
6492694: @deprecated tag doesn't work in package-info files.
bpatel
parents:
5520
diff
changeset
|
137 |
// deprecated package. |
10 | 138 |
if (configuration.nodeprecated && |
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
139 |
(utils.isDeprecated(aClass) || |
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
140 |
utils.isDeprecated(aClass.containingPackage()))) { |
10 | 141 |
continue; |
142 |
} |
|
16319
e586bfeb39c5
7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
14260
diff
changeset
|
143 |
|
e586bfeb39c5
7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
14260
diff
changeset
|
144 |
if (configuration.javafx |
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
145 |
&& aClass.tags("treatAsPrivate").length > 0) { |
16319
e586bfeb39c5
7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
14260
diff
changeset
|
146 |
continue; |
e586bfeb39c5
7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
14260
diff
changeset
|
147 |
} |
e586bfeb39c5
7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
14260
diff
changeset
|
148 |
|
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
149 |
if (aClass.isEnum()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
150 |
processType(aClass, configuration, baseEnums, subEnums); |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
151 |
} else if (aClass.isClass()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
152 |
processType(aClass, configuration, baseclasses, subclasses); |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
153 |
} else if (aClass.isInterface()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
154 |
processInterface(aClass); |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
155 |
List<ClassDoc> list = implementingclasses.get(aClass); |
10 | 156 |
if (list != null) { |
157 |
Collections.sort(list); |
|
158 |
} |
|
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
159 |
} else if (aClass.isAnnotationType()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
160 |
processType(aClass, configuration, baseAnnotationTypes, |
10 | 161 |
subAnnotationTypes); |
162 |
} |
|
163 |
} |
|
164 |
||
165 |
Collections.sort(baseinterfaces); |
|
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
166 |
for (List<ClassDoc> docs : subinterfaces.values()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
167 |
Collections.sort(docs); |
10 | 168 |
} |
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
169 |
for (List<ClassDoc> docs : subclasses.values()) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
170 |
Collections.sort(docs); |
10 | 171 |
} |
172 |
} |
|
173 |
||
174 |
/** |
|
175 |
* For the class passed map it to it's own sub-class listing. |
|
176 |
* For the Class passed, get the super class, |
|
177 |
* if superclass is non null, (it is not "java.lang.Object") |
|
178 |
* get the "value" from the hashmap for this key Class |
|
179 |
* if entry not found create one and get that. |
|
180 |
* add this Class as a sub class in the list |
|
181 |
* Recurse till hits java.lang.Object Null SuperClass. |
|
182 |
* |
|
183 |
* @param cd class for which sub-class mapping to be generated. |
|
184 |
* @param configuration the current configurtation of the doclet. |
|
185 |
*/ |
|
186 |
private void processType(ClassDoc cd, Configuration configuration, |
|
868 | 187 |
List<ClassDoc> bases, Map<ClassDoc,List<ClassDoc>> subs) { |
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
188 |
ClassDoc superclass = utils.getFirstVisibleSuperClassCD(cd, configuration); |
10 | 189 |
if (superclass != null) { |
190 |
if (!add(subs, superclass, cd)) { |
|
191 |
return; |
|
192 |
} else { |
|
193 |
processType(superclass, configuration, bases, subs); |
|
194 |
} |
|
195 |
} else { // cd is java.lang.Object, add it once to the list |
|
196 |
if (!bases.contains(cd)) { |
|
197 |
bases.add(cd); |
|
198 |
} |
|
199 |
} |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
22163
diff
changeset
|
200 |
List<Type> intfacs = utils.getAllInterfaces(cd, configuration); |
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
201 |
for (Type intfac : intfacs) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
202 |
add(implementingclasses, intfac.asClassDoc(), cd); |
10 | 203 |
} |
204 |
} |
|
205 |
||
206 |
/** |
|
207 |
* For the interface passed get the interfaces which it extends, and then |
|
208 |
* put this interface in the sub-interface list of those interfaces. Do it |
|
209 |
* recursively. If a interface doesn't have super-interface just attach |
|
210 |
* that interface in the list of all the baseinterfaces. |
|
211 |
* |
|
212 |
* @param cd Interface under consideration. |
|
213 |
*/ |
|
214 |
private void processInterface(ClassDoc cd) { |
|
215 |
ClassDoc[] intfacs = cd.interfaces(); |
|
216 |
if (intfacs.length > 0) { |
|
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
217 |
for (ClassDoc intfac : intfacs) { |
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
218 |
if (!add(subinterfaces, intfac, cd)) { |
10 | 219 |
return; |
220 |
} else { |
|
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
221 |
processInterface(intfac); // Recurse |
10 | 222 |
} |
223 |
} |
|
224 |
} else { |
|
225 |
// we need to add all the interfaces who do not have |
|
226 |
// super-interfaces to baseinterfaces list to traverse them |
|
227 |
if (!baseinterfaces.contains(cd)) { |
|
228 |
baseinterfaces.add(cd); |
|
229 |
} |
|
230 |
} |
|
231 |
} |
|
232 |
||
233 |
/** |
|
234 |
* Adjust the Class Tree. Add the class interface in to it's super-class' |
|
235 |
* or super-interface's sub-interface list. |
|
236 |
* |
|
237 |
* @param map the entire map. |
|
238 |
* @param superclass java.lang.Object or the super-interface. |
|
239 |
* @param cd sub-interface to be mapped. |
|
240 |
* @returns boolean true if class added, false if class already processed. |
|
241 |
*/ |
|
868 | 242 |
private boolean add(Map<ClassDoc,List<ClassDoc>> map, ClassDoc superclass, ClassDoc cd) { |
243 |
List<ClassDoc> list = map.get(superclass); |
|
10 | 244 |
if (list == null) { |
22163 | 245 |
list = new ArrayList<>(); |
10 | 246 |
map.put(superclass, list); |
247 |
} |
|
248 |
if (list.contains(cd)) { |
|
249 |
return false; |
|
250 |
} else { |
|
251 |
list.add(cd); |
|
252 |
} |
|
253 |
return true; |
|
254 |
} |
|
255 |
||
256 |
/** |
|
257 |
* From the map return the list of sub-classes or sub-interfaces. If list |
|
258 |
* is null create a new one and return it. |
|
259 |
* |
|
260 |
* @param map The entire map. |
|
261 |
* @param cd class for which the sub-class list is requested. |
|
262 |
* @returns List Sub-Class list for the class passed. |
|
263 |
*/ |
|
868 | 264 |
private List<ClassDoc> get(Map<ClassDoc,List<ClassDoc>> map, ClassDoc cd) { |
265 |
List<ClassDoc> list = map.get(cd); |
|
10 | 266 |
if (list == null) { |
22163 | 267 |
return new ArrayList<>(); |
10 | 268 |
} |
269 |
return list; |
|
270 |
} |
|
271 |
||
272 |
/** |
|
273 |
* Return the sub-class list for the class passed. |
|
274 |
* |
|
275 |
* @param cd class whose sub-class list is required. |
|
276 |
*/ |
|
868 | 277 |
public List<ClassDoc> subclasses(ClassDoc cd) { |
10 | 278 |
return get(subclasses, cd); |
279 |
} |
|
280 |
||
281 |
/** |
|
282 |
* Return the sub-interface list for the interface passed. |
|
283 |
* |
|
284 |
* @param cd interface whose sub-interface list is required. |
|
285 |
*/ |
|
868 | 286 |
public List<ClassDoc> subinterfaces(ClassDoc cd) { |
10 | 287 |
return get(subinterfaces, cd); |
288 |
} |
|
289 |
||
290 |
/** |
|
291 |
* Return the list of classes which implement the interface passed. |
|
292 |
* |
|
293 |
* @param cd interface whose implementing-classes list is required. |
|
294 |
*/ |
|
868 | 295 |
public List<ClassDoc> implementingclasses(ClassDoc cd) { |
296 |
List<ClassDoc> result = get(implementingclasses, cd); |
|
297 |
List<ClassDoc> subinterfaces = allSubs(cd, false); |
|
10 | 298 |
|
299 |
//If class x implements a subinterface of cd, then it follows |
|
300 |
//that class x implements cd. |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
301 |
Iterator<ClassDoc> implementingClassesIter, subInterfacesIter = subinterfaces.listIterator(); |
10 | 302 |
ClassDoc c; |
303 |
while(subInterfacesIter.hasNext()){ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
304 |
implementingClassesIter = implementingclasses( |
10 | 305 |
subInterfacesIter.next()).listIterator(); |
306 |
while(implementingClassesIter.hasNext()){ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
307 |
c = implementingClassesIter.next(); |
10 | 308 |
if(! result.contains(c)){ |
309 |
result.add(c); |
|
310 |
} |
|
311 |
} |
|
312 |
} |
|
313 |
Collections.sort(result); |
|
314 |
return result; |
|
315 |
} |
|
316 |
||
317 |
/** |
|
318 |
* Return the sub-class/interface list for the class/interface passed. |
|
319 |
* |
|
320 |
* @param cd class/interface whose sub-class/interface list is required. |
|
321 |
* @param isEnum true if the subclasses should be forced to come from the |
|
322 |
* enum tree. |
|
323 |
*/ |
|
868 | 324 |
public List<ClassDoc> subs(ClassDoc cd, boolean isEnum) { |
10 | 325 |
if (isEnum) { |
326 |
return get(subEnums, cd); |
|
327 |
} else if (cd.isAnnotationType()) { |
|
328 |
return get(subAnnotationTypes, cd); |
|
329 |
} else if (cd.isInterface()) { |
|
330 |
return get(subinterfaces, cd); |
|
331 |
} else if (cd.isClass()) { |
|
332 |
return get(subclasses, cd); |
|
333 |
} else { |
|
334 |
return null; |
|
335 |
} |
|
336 |
||
337 |
} |
|
338 |
||
339 |
/** |
|
340 |
* Return a list of all direct or indirect, sub-classes and subinterfaces |
|
341 |
* of the ClassDoc argument. |
|
342 |
* |
|
343 |
* @param cd ClassDoc whose sub-classes or sub-interfaces are requested. |
|
344 |
* @param isEnum true if the subclasses should be forced to come from the |
|
345 |
* enum tree. |
|
346 |
*/ |
|
868 | 347 |
public List<ClassDoc> allSubs(ClassDoc cd, boolean isEnum) { |
348 |
List<ClassDoc> list = subs(cd, isEnum); |
|
10 | 349 |
for (int i = 0; i < list.size(); i++) { |
868 | 350 |
cd = list.get(i); |
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
351 |
List<ClassDoc> tlist = subs(cd, isEnum); |
22159
682da512ec17
8030253: Update langtools to use strings-in-switch
briangoetz
parents:
16319
diff
changeset
|
352 |
for (ClassDoc tcd : tlist) { |
10 | 353 |
if (!list.contains(tcd)) { |
354 |
list.add(tcd); |
|
355 |
} |
|
356 |
} |
|
357 |
} |
|
358 |
Collections.sort(list); |
|
359 |
return list; |
|
360 |
} |
|
361 |
||
362 |
/** |
|
363 |
* Return the base-classes list. This will have only one element namely |
|
364 |
* thw classdoc for java.lang.Object, since this is the base class for all |
|
365 |
* classes. |
|
366 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
367 |
public List<ClassDoc> baseclasses() { |
10 | 368 |
return baseclasses; |
369 |
} |
|
370 |
||
371 |
/** |
|
372 |
* Return the list of base interfaces. This is the list of interfaces |
|
373 |
* which do not have super-interface. |
|
374 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
375 |
public List<ClassDoc> baseinterfaces() { |
10 | 376 |
return baseinterfaces; |
377 |
} |
|
378 |
||
379 |
/** |
|
380 |
* Return the list of base enums. This is the list of enums |
|
381 |
* which do not have super-enums. |
|
382 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
383 |
public List<ClassDoc> baseEnums() { |
10 | 384 |
return baseEnums; |
385 |
} |
|
386 |
||
387 |
/** |
|
388 |
* Return the list of base annotation types. This is the list of |
|
389 |
* annotation types which do not have super-annotation types. |
|
390 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
1264
diff
changeset
|
391 |
public List<ClassDoc> baseAnnotationTypes() { |
10 | 392 |
return baseAnnotationTypes; |
393 |
} |
|
394 |
} |