24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.doclets.internal.toolkit.builders; |
26 package com.sun.tools.doclets.internal.toolkit.builders; |
27 |
27 |
28 import java.io.*; |
28 import java.io.*; |
29 import java.util.*; |
|
30 |
29 |
31 import com.sun.javadoc.*; |
30 import com.sun.javadoc.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
31 import com.sun.tools.doclets.internal.toolkit.*; |
33 import com.sun.tools.doclets.internal.toolkit.util.*; |
|
34 |
32 |
35 /** |
33 /** |
36 * Builds the summary for a given class. |
34 * Builds the summary for a given class. |
37 * |
35 * |
38 * <p><b>This is NOT part of any supported API. |
36 * <p><b>This is NOT part of any supported API. |
274 !configuration.packages.contains(containingPackage)) && |
272 !configuration.packages.contains(containingPackage)) && |
275 ! containingPackagesSeen.contains(containingPackage)){ |
273 ! containingPackagesSeen.contains(containingPackage)){ |
276 //Only copy doc files dir if the containing package is not |
274 //Only copy doc files dir if the containing package is not |
277 //documented AND if we have not documented a class from the same |
275 //documented AND if we have not documented a class from the same |
278 //package already. Otherwise, we are making duplicate copies. |
276 //package already. Otherwise, we are making duplicate copies. |
279 Util.copyDocFiles(configuration, containingPackage); |
277 utils.copyDocFiles(configuration, containingPackage); |
280 containingPackagesSeen.add(containingPackage); |
278 containingPackagesSeen.add(containingPackage); |
281 } |
279 } |
282 } |
280 } |
283 |
281 |
284 /** |
282 /** |
294 modifiers.append("enum "); |
292 modifiers.append("enum "); |
295 int index; |
293 int index; |
296 if ((index = modifiers.indexOf("abstract")) >= 0) { |
294 if ((index = modifiers.indexOf("abstract")) >= 0) { |
297 modifiers.delete(index, index + "abstract".length()); |
295 modifiers.delete(index, index + "abstract".length()); |
298 modifiers = new StringBuilder( |
296 modifiers = new StringBuilder( |
299 Util.replaceText(modifiers.toString(), " ", " ")); |
297 utils.replaceText(modifiers.toString(), " ", " ")); |
300 } |
298 } |
301 if ((index = modifiers.indexOf("final")) >= 0) { |
299 if ((index = modifiers.indexOf("final")) >= 0) { |
302 modifiers.delete(index, index + "final".length()); |
300 modifiers.delete(index, index + "final".length()); |
303 modifiers = new StringBuilder( |
301 modifiers = new StringBuilder( |
304 Util.replaceText(modifiers.toString(), " ", " ")); |
302 utils.replaceText(modifiers.toString(), " ", " ")); |
305 } |
303 } |
306 //} else if (classDoc.isAnnotationType()) { |
304 //} else if (classDoc.isAnnotationType()) { |
307 //modifiers.append("@interface "); |
305 //modifiers.append("@interface "); |
308 } else if (! isInterface) { |
306 } else if (! isInterface) { |
309 modifiers.append("class "); |
307 modifiers.append("class "); |