langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java
author jjg
Fri, 18 Jun 2010 21:13:56 -0700
changeset 5855 00d9c252e60c
parent 5520 86e4b9a9da40
child 7614 cfadc977ca75
permissions -rw-r--r--
6961178: Allow doclet.xml to contain XML attributes Reviewed-by: bpatel
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1789
diff changeset
     2
 * Copyright (c) 2003, 2008, 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: 1789
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: 1789
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: 1789
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1789
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1789
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.doclets.internal.toolkit.builders;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import com.sun.tools.doclets.internal.toolkit.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import com.sun.tools.doclets.internal.toolkit.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import com.sun.javadoc.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import java.util.*;
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
    32
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * Builds documentation for a method.
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * This code is not part of an API.
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * It is implementation that is subject to change.
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * Do not use it as an API
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 * @author Jamie Ho
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
public class MethodBuilder extends AbstractMemberBuilder {
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
         * The index of the current field that is being documented at this point
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
         * in time.
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
        private int currentMethodIndex;
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
         * The class whose methods are being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
        private ClassDoc classDoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
         * The visible methods for the given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
        private VisibleMemberMap visibleMemberMap;
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
         * The writer to output the method documentation.
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
        private MethodWriter writer;
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
         * The methods being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
         */
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    69
        private List<ProgramElementDoc> methods;
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
        private MethodBuilder(Configuration configuration) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
                super(configuration);
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
         * Construct a new MethodBuilder.
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
         *
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
         * @param configuration the current configuration of the doclet.
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
         * @param classDoc the class whoses members are being documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
         * @param writer the doclet specific writer.
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
         *
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
         * @return an instance of a MethodBuilder.
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
        public static MethodBuilder getInstance(
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
                Configuration configuration,
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
                ClassDoc classDoc,
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
                MethodWriter writer) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
                MethodBuilder builder = new MethodBuilder(configuration);
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
                builder.classDoc = classDoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
                builder.writer = writer;
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
                builder.visibleMemberMap =
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
                        new VisibleMemberMap(
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
                                classDoc,
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
                                VisibleMemberMap.METHODS,
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
                                configuration.nodeprecated);
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
                builder.methods =
868
d0f233085cbb 6657907: javadoc has unchecked warnings
jjg
parents: 10
diff changeset
    97
                        new ArrayList<ProgramElementDoc>(builder.visibleMemberMap.getLeafClassMembers(
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
                configuration));
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
                if (configuration.getMemberComparator() != null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
                        Collections.sort(
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
                                builder.methods,
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
                                configuration.getMemberComparator());
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
                return builder;
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
         * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
        public String getName() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
                return "MethodDetails";
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
         * Returns a list of methods that will be documented for the given class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
         * This information can be used for doclet specific documentation
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
         * generation.
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
         *
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
         * @param classDoc the {@link ClassDoc} we want to check.
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
         * @return a list of methods that will be documented.
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
         */
1789
7ac8c0815000 6765045: Remove rawtypes warnings from langtools
mcimadamore
parents: 1264
diff changeset
   122
        public List<ProgramElementDoc> members(ClassDoc classDoc) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
                return visibleMemberMap.getMembersFor(classDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
         * Returns the visible member map for the methods of this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
         *
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
         * @return the visible member map for the methods of this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
        public VisibleMemberMap getVisibleMemberMap() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
                return visibleMemberMap;
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
         * {@inheritDoc}
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
        public boolean hasMembersToDocument() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
                return methods.size() > 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
         * Build the method documentation.
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   145
        public void buildMethodDoc(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
                if (writer == null) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
                        return;
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
                for (currentMethodIndex = 0;
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
                        currentMethodIndex < methods.size();
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
                        currentMethodIndex++) {
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   152
                        buildChildren(node);
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
         * Build the overall header.
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   159
        public void buildHeader(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
                writer.writeHeader(
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
                        classDoc,
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
                        configuration.getText("doclet.Method_Detail"));
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
         * Build the header for the individual method.
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   168
        public void buildMethodHeader(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
                writer.writeMethodHeader(
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
                        (MethodDoc) methods.get(currentMethodIndex),
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
                        currentMethodIndex == 0);
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
         * Build the signature.
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   177
        public void buildSignature(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
                writer.writeSignature((MethodDoc) methods.get(currentMethodIndex));
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
         * Build the deprecation information.
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   184
        public void buildDeprecationInfo(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
                writer.writeDeprecated((MethodDoc) methods.get(currentMethodIndex));
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
         * Build the comments for the method.  Do nothing if
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
         * {@link Configuration#nocomment} is set to true.  If this method
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   192
        public void buildMethodComments(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
                if (!configuration.nocomment) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
            MethodDoc method = (MethodDoc) methods.get(currentMethodIndex);
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
            if (method.inlineTags().length == 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
                DocFinder.Output docs = DocFinder.search(
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
                    new DocFinder.Input(method));
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
                method = docs.inlineTags != null && docs.inlineTags.length > 0 ?
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
                    (MethodDoc) docs.holder : method;
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
            //NOTE:  When we fix the bug where ClassDoc.interfaceTypes() does
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
            //       not pass all implemented interfaces, holder will be the
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
            //       interface type.  For now, it is really the erasure.
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
            writer.writeComments(method.containingClass(), method);
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
         * Build the tag information.
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   215
        public void buildTagInfo(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
                writer.writeTags((MethodDoc) methods.get(currentMethodIndex));
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
         * Build the footer of the method.
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   222
        public void buildMethodFooter(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
                writer.writeMethodFooter();
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
         * Build the overall footer.
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
         */
5855
00d9c252e60c 6961178: Allow doclet.xml to contain XML attributes
jjg
parents: 5520
diff changeset
   229
        public void buildFooter(XMLNode node) {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
                writer.writeFooter(classDoc);
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
        /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
         * Return the method writer for this builder.
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
         *
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
         * @return the method writer for this builder.
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
         */
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
        public MethodWriter getWriter() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
                return writer;
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
}