Tue, 25 May 2010 15:54:51 -0700
6943119: Rebrand source copyright notices
Reviewed-by: darcy
1 /*
2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.sun.tools.doclets.internal.toolkit;
28 import java.io.*;
29 import com.sun.javadoc.*;
31 /**
32 * The interface for writing constructor output.
33 *
34 * This code is not part of an API.
35 * It is implementation that is subject to change.
36 * Do not use it as an API
37 *
38 * @author Jamie Ho
39 * @since 1.5
40 */
42 public interface ConstructorWriter {
44 /**
45 * Write the header for the constructor documentation.
46 *
47 * @param classDoc the class that the constructors belong to.
48 * @param header the header to write.
49 */
50 public void writeHeader(ClassDoc classDoc, String header);
52 /**
53 * Write the constructor header for the given constructor.
54 *
55 * @param constructor the constructor being documented.
56 * @param isFirst the flag to indicate whether or not the constructor is the
57 * first to be documented.
58 */
59 public void writeConstructorHeader(ConstructorDoc constructor, boolean isFirst);
61 /**
62 * Write the signature for the given constructor.
63 *
64 * @param constructor the constructor being documented.
65 */
66 public void writeSignature(ConstructorDoc constructor);
68 /**
69 * Write the deprecated output for the given constructor.
70 *
71 * @param constructor the constructor being documented.
72 */
73 public void writeDeprecated(ConstructorDoc constructor);
75 /**
76 * Write the comments for the given constructor.
77 *
78 * @param constructor the constructor being documented.
79 */
80 public void writeComments(ConstructorDoc constructor);
82 /**
83 * Write the tag output for the given constructor.
84 *
85 * @param constructor the constructor being documented.
86 */
87 public void writeTags(ConstructorDoc constructor);
89 /**
90 * Write the constructor footer.
91 */
92 public void writeConstructorFooter();
94 /**
95 * Write the footer for the constructor documentation.
96 *
97 * @param classDoc the class that the constructors belong to.
98 */
99 public void writeFooter(ClassDoc classDoc);
101 /**
102 * Let the writer know whether a non public constructor was found.
103 *
104 * @param foundNonPubConstructor true if we found a non public constructor.
105 */
106 public void setFoundNonPubConstructor(boolean foundNonPubConstructor);
108 /**
109 * Close the writer.
110 */
111 public void close() throws IOException;
112 }