src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java

changeset 233
5240b1120530
parent 184
905e151a185a
child 243
edd944553131
equal deleted inserted replaced
232:1fbc1cc6e260 233:5240b1120530
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 import java.util.*;
30
31 import com.sun.javadoc.*;
28 import com.sun.tools.doclets.internal.toolkit.*; 32 import com.sun.tools.doclets.internal.toolkit.*;
29 import com.sun.tools.doclets.internal.toolkit.util.*; 33 import com.sun.tools.doclets.internal.toolkit.util.*;
30 import com.sun.tools.doclets.internal.toolkit.taglets.*;
31 import com.sun.javadoc.*;
32 import java.util.*;
33 import java.io.*;
34 34
35 /** 35 /**
36 * Writes constructor documentation. 36 * Writes constructor documentation.
37 * 37 *
38 * @author Robert Field 38 * @author Robert Field
147 strong(constructor.name()); 147 strong(constructor.name());
148 } 148 }
149 writeParameters(constructor); 149 writeParameters(constructor);
150 writeExceptions(constructor); 150 writeExceptions(constructor);
151 writer.preEnd(); 151 writer.preEnd();
152 writer.dl(); 152 assert !writer.getMemberDetailsListPrinted();
153 } 153 }
154 154
155 /** 155 /**
156 * Write the deprecated output for the given constructor. 156 * Write the deprecated output for the given constructor.
157 * 157 *
158 * @param constructor the constructor being documented. 158 * @param constructor the constructor being documented.
159 */ 159 */
160 public void writeDeprecated(ConstructorDoc constructor) { 160 public void writeDeprecated(ConstructorDoc constructor) {
161 String output = ((TagletOutputImpl) 161 printDeprecated(constructor);
162 (new DeprecatedTaglet()).getTagletOutput(constructor,
163 writer.getTagletWriterInstance(false))).toString();
164 if (output != null && output.trim().length() > 0) {
165 writer.print(output);
166 }
167 } 162 }
168 163
169 /** 164 /**
170 * Write the comments for the given constructor. 165 * Write the comments for the given constructor.
171 * 166 *
172 * @param constructor the constructor being documented. 167 * @param constructor the constructor being documented.
173 */ 168 */
174 public void writeComments(ConstructorDoc constructor) { 169 public void writeComments(ConstructorDoc constructor) {
175 if (constructor.inlineTags().length > 0) { 170 printComment(constructor);
176 writer.dd();
177 writer.printInlineComment(constructor);
178 }
179 } 171 }
180 172
181 /** 173 /**
182 * Write the tag output for the given constructor. 174 * Write the tag output for the given constructor.
183 * 175 *
189 181
190 /** 182 /**
191 * Write the constructor footer. 183 * Write the constructor footer.
192 */ 184 */
193 public void writeConstructorFooter() { 185 public void writeConstructorFooter() {
194 writer.dlEnd(); 186 printMemberFooter();
195 } 187 }
196 188
197 /** 189 /**
198 * Write the footer for the constructor documentation. 190 * Write the footer for the constructor documentation.
199 * 191 *

mercurial