35 /** |
35 /** |
36 * Writes constructor documentation. |
36 * Writes constructor documentation. |
37 * |
37 * |
38 * @author Robert Field |
38 * @author Robert Field |
39 * @author Atul M Dambalkar |
39 * @author Atul M Dambalkar |
|
40 * @author Bhavesh Patel (Modified) |
40 */ |
41 */ |
41 public class ConstructorWriterImpl extends AbstractExecutableMemberWriter |
42 public class ConstructorWriterImpl extends AbstractExecutableMemberWriter |
42 implements ConstructorWriter, MemberSummaryWriter { |
43 implements ConstructorWriter, MemberSummaryWriter { |
43 |
44 |
44 private boolean foundNonPubConstructor = false; |
45 private boolean foundNonPubConstructor = false; |
209 */ |
210 */ |
210 public void setFoundNonPubConstructor(boolean foundNonPubConstructor) { |
211 public void setFoundNonPubConstructor(boolean foundNonPubConstructor) { |
211 this.foundNonPubConstructor = foundNonPubConstructor; |
212 this.foundNonPubConstructor = foundNonPubConstructor; |
212 } |
213 } |
213 |
214 |
214 public void printSummaryLabel(ClassDoc cd) { |
215 public void printSummaryLabel() { |
215 writer.strongText("doclet.Constructor_Summary"); |
216 writer.printText("doclet.Constructor_Summary"); |
|
217 } |
|
218 |
|
219 public void printTableSummary() { |
|
220 writer.tableIndexSummary(configuration().getText("doclet.Member_Table_Summary", |
|
221 configuration().getText("doclet.Constructor_Summary"), |
|
222 configuration().getText("doclet.constructors"))); |
|
223 } |
|
224 |
|
225 public void printSummaryTableHeader(ProgramElementDoc member) { |
|
226 String[] header; |
|
227 if (foundNonPubConstructor) { |
|
228 header = new String[] { |
|
229 configuration().getText("doclet.Modifier"), |
|
230 configuration().getText("doclet.0_and_1", |
|
231 configuration().getText("doclet.Constructor"), |
|
232 configuration().getText("doclet.Description")) |
|
233 }; |
|
234 } |
|
235 else { |
|
236 header = new String[] { |
|
237 configuration().getText("doclet.0_and_1", |
|
238 configuration().getText("doclet.Constructor"), |
|
239 configuration().getText("doclet.Description")) |
|
240 }; |
|
241 } |
|
242 writer.summaryTableHeader(header, "col"); |
216 } |
243 } |
217 |
244 |
218 public void printSummaryAnchor(ClassDoc cd) { |
245 public void printSummaryAnchor(ClassDoc cd) { |
219 writer.anchor("constructor_summary"); |
246 writer.anchor("constructor_summary"); |
220 } |
247 } |