Wed, 10 Oct 2012 16:48:21 -0700
8000665: fix "internal API" comments on javadoc files
Reviewed-by: darcy
duke@1 | 1 | /* |
jjg@1357 | 2 | * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@554 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@554 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@554 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | |
duke@1 | 26 | package com.sun.tools.doclets.internal.toolkit; |
duke@1 | 27 | |
jjg@1357 | 28 | import com.sun.javadoc.*; |
duke@1 | 29 | import com.sun.tools.doclets.internal.toolkit.util.*; |
duke@1 | 30 | |
duke@1 | 31 | /** |
duke@1 | 32 | * The interface for a factory creates writers. |
duke@1 | 33 | * |
jjg@1359 | 34 | * <p><b>This is NOT part of any supported API. |
jjg@1359 | 35 | * If you write code that depends on this, you do so at your own risk. |
jjg@1359 | 36 | * This code and its internal interfaces are subject to change or |
jjg@1359 | 37 | * deletion without notice.</b> |
duke@1 | 38 | * |
duke@1 | 39 | * @author Jamie Ho |
duke@1 | 40 | * @since 1.4 |
duke@1 | 41 | */ |
duke@1 | 42 | |
duke@1 | 43 | public interface WriterFactory { |
duke@1 | 44 | |
duke@1 | 45 | /** |
duke@1 | 46 | * Return the writer for the constant summary. |
duke@1 | 47 | * |
duke@1 | 48 | * @return the writer for the constant summary. Return null if this |
duke@1 | 49 | * writer is not supported by the doclet. |
duke@1 | 50 | */ |
duke@1 | 51 | public abstract ConstantsSummaryWriter getConstantsSummaryWriter() |
duke@1 | 52 | throws Exception; |
duke@1 | 53 | |
duke@1 | 54 | /** |
duke@1 | 55 | * Return the writer for the package summary. |
duke@1 | 56 | * |
duke@1 | 57 | * @param packageDoc the package being documented. |
duke@1 | 58 | * @param prevPkg the previous package that was documented. |
duke@1 | 59 | * @param nextPkg the next package being documented. |
duke@1 | 60 | * @return the writer for the package summary. Return null if this |
duke@1 | 61 | * writer is not supported by the doclet. |
duke@1 | 62 | */ |
duke@1 | 63 | public abstract PackageSummaryWriter getPackageSummaryWriter(PackageDoc |
duke@1 | 64 | packageDoc, PackageDoc prevPkg, PackageDoc nextPkg) |
duke@1 | 65 | throws Exception; |
duke@1 | 66 | |
duke@1 | 67 | /** |
duke@1 | 68 | * Return the writer for a class. |
duke@1 | 69 | * |
duke@1 | 70 | * @param classDoc the class being documented. |
duke@1 | 71 | * @param prevClass the previous class that was documented. |
duke@1 | 72 | * @param nextClass the next class being documented. |
duke@1 | 73 | * @param classTree the class tree. |
duke@1 | 74 | * @return the writer for the class. Return null if this |
duke@1 | 75 | * writer is not supported by the doclet. |
duke@1 | 76 | */ |
duke@1 | 77 | public abstract ClassWriter getClassWriter(ClassDoc classDoc, |
duke@1 | 78 | ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) |
duke@1 | 79 | throws Exception; |
duke@1 | 80 | |
duke@1 | 81 | /** |
duke@1 | 82 | * Return the writer for an annotation type. |
duke@1 | 83 | * |
duke@1 | 84 | * @param annotationType the type being documented. |
duke@1 | 85 | * @param prevType the previous type that was documented. |
duke@1 | 86 | * @param nextType the next type being documented. |
duke@1 | 87 | * @return the writer for the annotation type. Return null if this |
duke@1 | 88 | * writer is not supported by the doclet. |
duke@1 | 89 | */ |
duke@1 | 90 | public abstract AnnotationTypeWriter getAnnotationTypeWriter( |
duke@1 | 91 | AnnotationTypeDoc annotationType, Type prevType, Type nextType) |
duke@1 | 92 | throws Exception; |
duke@1 | 93 | |
duke@1 | 94 | /** |
duke@1 | 95 | * Return the method writer for a given class. |
duke@1 | 96 | * |
duke@1 | 97 | * @param classWriter the writer for the class being documented. |
duke@1 | 98 | * @return the method writer for the give class. Return null if this |
duke@1 | 99 | * writer is not supported by the doclet. |
duke@1 | 100 | */ |
duke@1 | 101 | public abstract MethodWriter getMethodWriter(ClassWriter classWriter) |
duke@1 | 102 | throws Exception; |
duke@1 | 103 | |
duke@1 | 104 | /** |
duke@1 | 105 | * Return the annotation type optional member writer for a given annotation |
duke@1 | 106 | * type. |
duke@1 | 107 | * |
duke@1 | 108 | * @param annotationTypeWriter the writer for the annotation type |
duke@1 | 109 | * being documented. |
duke@1 | 110 | * @return the member writer for the given annotation type. Return null if |
duke@1 | 111 | * this writer is not supported by the doclet. |
duke@1 | 112 | */ |
duke@1 | 113 | public abstract AnnotationTypeOptionalMemberWriter |
duke@1 | 114 | getAnnotationTypeOptionalMemberWriter( |
duke@1 | 115 | AnnotationTypeWriter annotationTypeWriter) throws Exception; |
duke@1 | 116 | |
duke@1 | 117 | /** |
duke@1 | 118 | * Return the annotation type required member writer for a given annotation type. |
duke@1 | 119 | * |
duke@1 | 120 | * @param annotationTypeWriter the writer for the annotation type |
duke@1 | 121 | * being documented. |
duke@1 | 122 | * @return the member writer for the given annotation type. Return null if |
duke@1 | 123 | * this writer is not supported by the doclet. |
duke@1 | 124 | */ |
duke@1 | 125 | public abstract AnnotationTypeRequiredMemberWriter |
duke@1 | 126 | getAnnotationTypeRequiredMemberWriter( |
duke@1 | 127 | AnnotationTypeWriter annotationTypeWriter) throws Exception; |
duke@1 | 128 | |
duke@1 | 129 | /** |
duke@1 | 130 | * Return the enum constant writer for a given class. |
duke@1 | 131 | * |
duke@1 | 132 | * @param classWriter the writer for the class being documented. |
duke@1 | 133 | * @return the enum constant writer for the give class. Return null if this |
duke@1 | 134 | * writer is not supported by the doclet. |
duke@1 | 135 | */ |
duke@1 | 136 | public abstract EnumConstantWriter getEnumConstantWriter( |
duke@1 | 137 | ClassWriter classWriter) throws Exception; |
duke@1 | 138 | |
duke@1 | 139 | /** |
duke@1 | 140 | * Return the field writer for a given class. |
duke@1 | 141 | * |
duke@1 | 142 | * @param classWriter the writer for the class being documented. |
duke@1 | 143 | * @return the field writer for the give class. Return null if this |
duke@1 | 144 | * writer is not supported by the doclet. |
duke@1 | 145 | */ |
duke@1 | 146 | public abstract FieldWriter getFieldWriter(ClassWriter classWriter) |
duke@1 | 147 | throws Exception; |
duke@1 | 148 | |
duke@1 | 149 | /** |
duke@1 | 150 | * Return the constructor writer for a given class. |
duke@1 | 151 | * |
duke@1 | 152 | * @param classWriter the writer for the class being documented. |
duke@1 | 153 | * @return the method writer for the give class. Return null if this |
duke@1 | 154 | * writer is not supported by the doclet. |
duke@1 | 155 | */ |
duke@1 | 156 | public abstract ConstructorWriter getConstructorWriter( |
duke@1 | 157 | ClassWriter classWriter) |
duke@1 | 158 | throws Exception; |
duke@1 | 159 | |
duke@1 | 160 | /** |
duke@1 | 161 | * Return the specified member summary writer for a given class. |
duke@1 | 162 | * |
duke@1 | 163 | * @param classWriter the writer for the class being documented. |
duke@1 | 164 | * @param memberType the {@link VisibleMemberMap} member type indicating |
duke@1 | 165 | * the type of member summary that should be returned. |
duke@1 | 166 | * @return the summary writer for the give class. Return null if this |
duke@1 | 167 | * writer is not supported by the doclet. |
duke@1 | 168 | * |
duke@1 | 169 | * @see VisibleMemberMap |
duke@1 | 170 | * @throws IllegalArgumentException if memberType is unknown. |
duke@1 | 171 | */ |
duke@1 | 172 | public abstract MemberSummaryWriter getMemberSummaryWriter( |
duke@1 | 173 | ClassWriter classWriter, int memberType) |
duke@1 | 174 | throws Exception; |
duke@1 | 175 | |
duke@1 | 176 | /** |
duke@1 | 177 | * Return the specified member summary writer for a given annotation type. |
duke@1 | 178 | * |
duke@1 | 179 | * @param annotationTypeWriter the writer for the annotation type being |
duke@1 | 180 | * documented. |
duke@1 | 181 | * @param memberType the {@link VisibleMemberMap} member type indicating |
duke@1 | 182 | * the type of member summary that should be returned. |
duke@1 | 183 | * @return the summary writer for the give class. Return null if this |
duke@1 | 184 | * writer is not supported by the doclet. |
duke@1 | 185 | * |
duke@1 | 186 | * @see VisibleMemberMap |
duke@1 | 187 | * @throws IllegalArgumentException if memberType is unknown. |
duke@1 | 188 | */ |
duke@1 | 189 | public abstract MemberSummaryWriter getMemberSummaryWriter( |
duke@1 | 190 | AnnotationTypeWriter annotationTypeWriter, int memberType) |
duke@1 | 191 | throws Exception; |
duke@1 | 192 | |
duke@1 | 193 | /** |
duke@1 | 194 | * Return the writer for the serialized form. |
duke@1 | 195 | * |
duke@1 | 196 | * @return the writer for the serialized form. |
duke@1 | 197 | */ |
duke@1 | 198 | public SerializedFormWriter getSerializedFormWriter() throws Exception; |
duke@1 | 199 | } |