langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java
equal
deleted
inserted
replaced
138 public boolean keywords = false; |
138 public boolean keywords = false; |
139 |
139 |
140 /** |
140 /** |
141 * The meta tag keywords instance. |
141 * The meta tag keywords instance. |
142 */ |
142 */ |
143 public final MetaKeywords metakeywords = new MetaKeywords(this); |
143 public final MetaKeywords metakeywords; |
144 |
144 |
145 /** |
145 /** |
146 * The list of doc-file subdirectories to exclude |
146 * The list of doc-file subdirectories to exclude |
147 */ |
147 */ |
148 protected Set<String> excludedDocFileDirs; |
148 protected Set<String> excludedDocFileDirs; |
155 /** |
155 /** |
156 * The Root of the generated Program Structure from the Doclet API. |
156 * The Root of the generated Program Structure from the Doclet API. |
157 */ |
157 */ |
158 public RootDoc root; |
158 public RootDoc root; |
159 |
159 |
|
160 /** |
|
161 * An utility class for commonly used helpers |
|
162 */ |
|
163 public Utils utils; |
160 /** |
164 /** |
161 * Destination directory name, in which doclet will generate the entire |
165 * Destination directory name, in which doclet will generate the entire |
162 * documentation. Default is current directory. |
166 * documentation. Default is current directory. |
163 */ |
167 */ |
164 public String destDirName = ""; |
168 public String destDirName = ""; |
308 new MessageRetriever(this, |
312 new MessageRetriever(this, |
309 "com.sun.tools.doclets.internal.toolkit.resources.doclets"); |
313 "com.sun.tools.doclets.internal.toolkit.resources.doclets"); |
310 excludedDocFileDirs = new HashSet<>(); |
314 excludedDocFileDirs = new HashSet<>(); |
311 excludedQualifiers = new HashSet<>(); |
315 excludedQualifiers = new HashSet<>(); |
312 setTabWidth(DocletConstants.DEFAULT_TAB_STOP_LENGTH); |
316 setTabWidth(DocletConstants.DEFAULT_TAB_STOP_LENGTH); |
|
317 utils = new Utils(); |
|
318 metakeywords = new MetaKeywords(this); |
313 } |
319 } |
314 |
320 |
315 /** |
321 /** |
316 * Return the builder factory for this doclet. |
322 * Return the builder factory for this doclet. |
317 * |
323 * |
395 Map<Profile, List<PackageDoc>> interimResults = new EnumMap<>(Profile.class); |
401 Map<Profile, List<PackageDoc>> interimResults = new EnumMap<>(Profile.class); |
396 for (Profile p: Profile.values()) |
402 for (Profile p: Profile.values()) |
397 interimResults.put(p, new ArrayList<PackageDoc>()); |
403 interimResults.put(p, new ArrayList<PackageDoc>()); |
398 |
404 |
399 for (PackageDoc pkg: packages) { |
405 for (PackageDoc pkg: packages) { |
400 if (nodeprecated && Util.isDeprecated(pkg)) { |
406 if (nodeprecated && utils.isDeprecated(pkg)) { |
401 continue; |
407 continue; |
402 } |
408 } |
403 // the getProfile method takes a type name, not a package name, |
409 // the getProfile method takes a type name, not a package name, |
404 // but isn't particularly fussy about the simple name -- so just use * |
410 // but isn't particularly fussy about the simple name -- so just use * |
405 int i = profiles.getProfile(pkg.name().replace(".", "/") + "/*"); |
411 int i = profiles.getProfile(pkg.name().replace(".", "/") + "/*"); |
931 */ |
937 */ |
932 public boolean isGeneratedDoc(ClassDoc cd) { |
938 public boolean isGeneratedDoc(ClassDoc cd) { |
933 if (!nodeprecated) { |
939 if (!nodeprecated) { |
934 return true; |
940 return true; |
935 } |
941 } |
936 return !(Util.isDeprecated(cd) || Util.isDeprecated(cd.containingPackage())); |
942 return !(utils.isDeprecated(cd) || utils.isDeprecated(cd.containingPackage())); |
937 } |
943 } |
938 |
944 |
939 /** |
945 /** |
940 * Return the doclet specific instance of a writer factory. |
946 * Return the doclet specific instance of a writer factory. |
941 * @return the {@link WriterFactory} for the doclet. |
947 * @return the {@link WriterFactory} for the doclet. |