langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDocletWriter.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
75 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; |
75 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; |
76 import jdk.javadoc.internal.doclets.formats.html.markup.RawHtml; |
76 import jdk.javadoc.internal.doclets.formats.html.markup.RawHtml; |
77 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; |
77 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; |
78 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeWriter; |
78 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeWriter; |
79 import jdk.javadoc.internal.doclets.toolkit.ClassWriter; |
79 import jdk.javadoc.internal.doclets.toolkit.ClassWriter; |
80 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
80 import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration; |
81 import jdk.javadoc.internal.doclets.toolkit.Content; |
81 import jdk.javadoc.internal.doclets.toolkit.Content; |
82 import jdk.javadoc.internal.doclets.toolkit.Messages; |
82 import jdk.javadoc.internal.doclets.toolkit.Messages; |
83 import jdk.javadoc.internal.doclets.toolkit.PackageSummaryWriter; |
83 import jdk.javadoc.internal.doclets.toolkit.PackageSummaryWriter; |
84 import jdk.javadoc.internal.doclets.toolkit.Resources; |
84 import jdk.javadoc.internal.doclets.toolkit.Resources; |
85 import jdk.javadoc.internal.doclets.toolkit.taglets.DocRootTaglet; |
85 import jdk.javadoc.internal.doclets.toolkit.taglets.DocRootTaglet; |
92 import jdk.javadoc.internal.doclets.toolkit.util.DocPaths; |
92 import jdk.javadoc.internal.doclets.toolkit.util.DocPaths; |
93 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
93 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
94 import jdk.javadoc.internal.doclets.toolkit.util.ImplementedMethods; |
94 import jdk.javadoc.internal.doclets.toolkit.util.ImplementedMethods; |
95 import jdk.javadoc.internal.doclets.toolkit.util.Utils; |
95 import jdk.javadoc.internal.doclets.toolkit.util.Utils; |
96 |
96 |
97 import static com.sun.source.doctree.AttributeTree.ValueKind.*; |
|
98 import static com.sun.source.doctree.DocTree.Kind.*; |
97 import static com.sun.source.doctree.DocTree.Kind.*; |
99 import static jdk.javadoc.internal.doclets.formats.html.markup.HtmlDocWriter.CONTENT_TYPE; |
|
100 import static jdk.javadoc.internal.doclets.toolkit.util.CommentHelper.SPACER; |
98 import static jdk.javadoc.internal.doclets.toolkit.util.CommentHelper.SPACER; |
101 |
99 |
102 |
100 |
103 /** |
101 /** |
104 * Class for the Html Format Code Generation specific to JavaDoc. |
102 * Class for the Html Format Code Generation specific to JavaDoc. |
139 public final DocPath filename; |
137 public final DocPath filename; |
140 |
138 |
141 /** |
139 /** |
142 * The global configuration information for this run. |
140 * The global configuration information for this run. |
143 */ |
141 */ |
144 public final ConfigurationImpl configuration; |
142 public final HtmlConfiguration configuration; |
145 |
143 |
146 protected final Utils utils; |
144 protected final Utils utils; |
147 |
145 |
148 protected final Contents contents; |
146 protected final Contents contents; |
149 |
147 |
178 /** |
176 /** |
179 * Constructor to construct the HtmlStandardWriter object. |
177 * Constructor to construct the HtmlStandardWriter object. |
180 * |
178 * |
181 * @param path File to be generated. |
179 * @param path File to be generated. |
182 */ |
180 */ |
183 public HtmlDocletWriter(ConfigurationImpl configuration, DocPath path) { |
181 public HtmlDocletWriter(HtmlConfiguration configuration, DocPath path) { |
184 super(configuration, path); |
182 super(configuration, path); |
185 this.configuration = configuration; |
183 this.configuration = configuration; |
186 this.contents = configuration.contents; |
184 this.contents = configuration.contents; |
187 this.messages = configuration.messages; |
185 this.messages = configuration.messages; |
188 this.resources = configuration.resources; |
186 this.resources = configuration.resources; |
2599 * Return the configuration for this doclet. |
2597 * Return the configuration for this doclet. |
2600 * |
2598 * |
2601 * @return the configuration for this doclet. |
2599 * @return the configuration for this doclet. |
2602 */ |
2600 */ |
2603 @Override |
2601 @Override |
2604 public Configuration configuration() { |
2602 public BaseConfiguration configuration() { |
2605 return configuration; |
2603 return configuration; |
2606 } |
2604 } |
2607 } |
2605 } |