23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.doclets.formats.html; |
26 package com.sun.tools.doclets.formats.html; |
27 |
27 |
|
28 import java.io.*; |
|
29 |
|
30 import com.sun.javadoc.*; |
28 import com.sun.tools.doclets.internal.toolkit.*; |
31 import com.sun.tools.doclets.internal.toolkit.*; |
29 import com.sun.tools.doclets.internal.toolkit.taglets.*; |
|
30 import com.sun.tools.doclets.internal.toolkit.util.*; |
32 import com.sun.tools.doclets.internal.toolkit.util.*; |
31 import com.sun.javadoc.*; |
|
32 |
|
33 import java.io.*; |
|
34 |
33 |
35 /** |
34 /** |
36 * Writes enum constant documentation in HTML format. |
35 * Writes enum constant documentation in HTML format. |
37 * |
36 * |
38 * @author Jamie Ho |
37 * @author Jamie Ho |
144 writer.printSrcLink(enumConstant, enumConstant.name()); |
143 writer.printSrcLink(enumConstant, enumConstant.name()); |
145 } else { |
144 } else { |
146 strong(enumConstant.name()); |
145 strong(enumConstant.name()); |
147 } |
146 } |
148 writer.preEnd(); |
147 writer.preEnd(); |
149 writer.dl(); |
148 assert !writer.getMemberDetailsListPrinted(); |
150 } |
149 } |
151 |
150 |
152 /** |
151 /** |
153 * {@inheritDoc} |
152 * {@inheritDoc} |
154 */ |
153 */ |
155 public void writeDeprecated(FieldDoc enumConstant) { |
154 public void writeDeprecated(FieldDoc enumConstant) { |
156 print(((TagletOutputImpl) |
155 printDeprecated(enumConstant); |
157 (new DeprecatedTaglet()).getTagletOutput(enumConstant, |
|
158 writer.getTagletWriterInstance(false))).toString()); |
|
159 } |
156 } |
160 |
157 |
161 /** |
158 /** |
162 * {@inheritDoc} |
159 * {@inheritDoc} |
163 */ |
160 */ |
164 public void writeComments(FieldDoc enumConstant) { |
161 public void writeComments(FieldDoc enumConstant) { |
165 if (enumConstant.inlineTags().length > 0) { |
162 printComment(enumConstant); |
166 writer.dd(); |
|
167 writer.printInlineComment(enumConstant); |
|
168 } |
|
169 } |
163 } |
170 |
164 |
171 /** |
165 /** |
172 * {@inheritDoc} |
166 * {@inheritDoc} |
173 */ |
167 */ |