langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/WriterFactory.java
author jjg
Mon, 22 Aug 2016 16:32:40 -0700
changeset 40587 1c355ea550ed
parent 36526 3b41f1c69604
permissions -rw-r--r--
8164130: Simplify doclet IOException handling Reviewed-by: bpatel, ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
     2
 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    26
package jdk.javadoc.internal.doclets.toolkit;
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    28
import javax.lang.model.element.ModuleElement;
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    29
import javax.lang.model.element.PackageElement;
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    30
import javax.lang.model.element.TypeElement;
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    31
import javax.lang.model.type.TypeMirror;
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    32
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    33
import jdk.javadoc.internal.doclets.toolkit.util.ClassTree;
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    34
import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap;
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * The interface for a factory creates writers.
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 *
14260
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 14258
diff changeset
    39
 *  <p><b>This is NOT part of any supported API.
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 14258
diff changeset
    40
 *  If you write code that depends on this, you do so at your own risk.
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 14258
diff changeset
    41
 *  This code and its internal interfaces are subject to change or
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 14258
diff changeset
    42
 *  deletion without notice.</b>
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
 * @author Jamie Ho
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
public interface WriterFactory {
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
     * Return the writer for the constant summary.
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     * @return the writer for the constant summary.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
    55
    public abstract ConstantsSummaryWriter getConstantsSummaryWriter();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
     * Return the writer for the package summary.
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     *
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    60
     * @param packageElement the package being documented.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * @param prevPkg the previous package that was documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     * @param nextPkg the next package being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     * @return the writer for the package summary.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     */
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    66
    public abstract PackageSummaryWriter getPackageSummaryWriter(PackageElement
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
    67
        packageElement, PackageElement prevPkg, PackageElement nextPkg);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
    /**
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    70
     * Return the writer for the module summary.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    71
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    72
     * @param mdle the module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    73
     * @param prevModule the previous module that was documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    74
     * @param nextModule the next module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    75
     * @return the writer for the module summary.  Return null if this
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    76
     * writer is not supported by the doclet.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    77
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    78
    public abstract ModuleSummaryWriter getModuleSummaryWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
    79
        ModuleElement mdle, ModuleElement prevModule, ModuleElement nextModule);
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    80
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    81
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
     * Return the writer for a class.
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     *
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    84
     * @param typeElement the class being documented.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * @param prevClass the previous class that was documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * @param nextClass the next class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     * @param classTree the class tree.
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     * @return the writer for the class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
     */
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    91
    public abstract ClassWriter getClassWriter(TypeElement typeElement,
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
    92
        TypeElement prevClass, TypeElement nextClass, ClassTree classTree);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
     * Return the writer for an annotation type.
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
     * @param annotationType the type being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     * @param prevType the previous type that was documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     * @param nextType the next type being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * @return the writer for the annotation type.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    public abstract AnnotationTypeWriter getAnnotationTypeWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   104
        TypeElement annotationType, TypeMirror prevType, TypeMirror nextType);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * Return the method writer for a given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     * @param classWriter the writer for the class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
     * @return the method writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   113
    public abstract MethodWriter getMethodWriter(ClassWriter classWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
    /**
20237
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   116
     * Return the annotation type field writer for a given annotation type.
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   117
     *
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   118
     * @param annotationTypeWriter the writer for the annotation type
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   119
     *        being documented.
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   120
     * @return the member writer for the given annotation type.  Return null if
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   121
     *         this writer is not supported by the doclet.
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   122
     */
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   123
    public abstract AnnotationTypeFieldWriter
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   124
            getAnnotationTypeFieldWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   125
        AnnotationTypeWriter annotationTypeWriter);
20237
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   126
b6d89903c867 8015249: javadoc fails to document static final fields in annotation types
bpatel
parents: 16319
diff changeset
   127
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
     * Return the annotation type optional member writer for a given annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
     * type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
     * @param annotationTypeWriter the writer for the annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
     *        being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     * @return the member writer for the given annotation type.  Return null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
     *         this writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    public abstract AnnotationTypeOptionalMemberWriter
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
            getAnnotationTypeOptionalMemberWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   138
        AnnotationTypeWriter annotationTypeWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     * Return the annotation type required member writer for a given annotation type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
     * @param annotationTypeWriter the writer for the annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
     *        being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
     * @return the member writer for the given annotation type.  Return null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     *         this writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
    public abstract AnnotationTypeRequiredMemberWriter
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
            getAnnotationTypeRequiredMemberWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   150
        AnnotationTypeWriter annotationTypeWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * Return the enum constant writer for a given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * @param classWriter the writer for the class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     * @return the enum constant writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
    public abstract EnumConstantWriter getEnumConstantWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   160
        ClassWriter classWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * Return the field writer for a given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
     * @param classWriter the writer for the class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     * @return the field writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   169
    public abstract FieldWriter getFieldWriter(ClassWriter classWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
    /**
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   172
     * Return the property writer for a given class.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   173
     *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   174
     * @param classWriter the writer for the class being documented.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   175
     * @return the property writer for the give class.  Return null if this
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   176
     * writer is not supported by the doclet.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   177
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   178
    public abstract PropertyWriter getPropertyWriter(ClassWriter classWriter);
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   179
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents: 15723
diff changeset
   180
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     * Return the constructor writer for a given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     * @param classWriter the writer for the class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
     * @return the method writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
    public abstract ConstructorWriter getConstructorWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   188
        ClassWriter classWriter);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * Return the specified member summary writer for a given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     * @param classWriter the writer for the class being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     * @param memberType  the {@link VisibleMemberMap} member type indicating
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
     *                    the type of member summary that should be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     * @return the summary writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     * @see VisibleMemberMap
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
    public abstract MemberSummaryWriter getMemberSummaryWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   202
        ClassWriter classWriter, VisibleMemberMap.Kind memberType);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
     * Return the specified member summary writer for a given annotation type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     * @param annotationTypeWriter the writer for the annotation type being
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     *                             documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     * @param memberType  the {@link VisibleMemberMap} member type indicating
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     *                    the type of member summary that should be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
     * @return the summary writer for the give class.  Return null if this
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
     * writer is not supported by the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     * @see VisibleMemberMap
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
    public abstract MemberSummaryWriter getMemberSummaryWriter(
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   217
        AnnotationTypeWriter annotationTypeWriter, VisibleMemberMap.Kind memberType);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
     * Return the writer for the serialized form.
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * @return the writer for the serialized form.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 36526
diff changeset
   224
    public SerializedFormWriter getSerializedFormWriter();
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
}