src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java

Wed, 10 Oct 2012 16:48:21 -0700

author
jjg
date
Wed, 10 Oct 2012 16:48:21 -0700
changeset 1359
25e14ad23cef
parent 798
4868a36f6fd8
child 1364
8db45b13526e
permissions
-rw-r--r--

8000665: fix "internal API" comments on javadoc files
Reviewed-by: darcy

duke@1 1 /*
jjg@1359 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
duke@1 27 package com.sun.tools.doclets.internal.toolkit;
duke@1 28
duke@1 29 import java.io.*;
duke@1 30 import com.sun.javadoc.*;
duke@1 31
duke@1 32 /**
duke@1 33 * The interface for writing annotation type output.
duke@1 34 *
jjg@1359 35 * <p><b>This is NOT part of any supported API.
jjg@1359 36 * If you write code that depends on this, you do so at your own risk.
jjg@1359 37 * This code and its internal interfaces are subject to change or
jjg@1359 38 * deletion without notice.</b>
duke@1 39 *
duke@1 40 * @author Jamie Ho
bpatel@766 41 * @author Bhavesh Patel (Modified)
duke@1 42 * @since 1.5
duke@1 43 */
duke@1 44
duke@1 45 public interface AnnotationTypeWriter {
duke@1 46
duke@1 47 /**
bpatel@766 48 * Get the header of the page.
bpatel@766 49 *
bpatel@766 50 * @param header the header string to write
bpatel@766 51 * @return a content tree for the header documentation
duke@1 52 */
bpatel@766 53 public Content getHeader(String header);
duke@1 54
duke@1 55 /**
bpatel@766 56 * Get the annotation content header.
duke@1 57 *
bpatel@766 58 * @return annotation content header that needs to be added to the documentation
duke@1 59 */
bpatel@766 60 public Content getAnnotationContentHeader();
bpatel@766 61
bpatel@766 62 /**
bpatel@766 63 * Get the annotation information tree header.
bpatel@766 64 *
bpatel@766 65 * @return annotation information tree header that needs to be added to the documentation
bpatel@766 66 */
bpatel@766 67 public Content getAnnotationInfoTreeHeader();
bpatel@766 68
bpatel@766 69 /**
bpatel@766 70 * Get the annotation information.
bpatel@766 71 *
bpatel@766 72 * @param annotationInfoTree content tree containing the annotation information
bpatel@766 73 * @return a content tree for the annotation
bpatel@766 74 */
bpatel@766 75 public Content getAnnotationInfo(Content annotationInfoTree);
bpatel@766 76
bpatel@766 77 /**
bpatel@766 78 * Add the signature of the current annotation type.
bpatel@766 79 *
bpatel@766 80 * @param modifiers the modifiers for the signature
bpatel@766 81 * @param annotationInfoTree the annotation content tree to which the signature will be added
bpatel@766 82 */
bpatel@766 83 public void addAnnotationTypeSignature(String modifiers, Content annotationInfoTree);
duke@1 84
duke@1 85 /**
duke@1 86 * Build the annotation type description.
bpatel@766 87 *
bpatel@766 88 * @param annotationInfoTree content tree to which the description will be added
duke@1 89 */
bpatel@766 90 public void addAnnotationTypeDescription(Content annotationInfoTree);
duke@1 91
duke@1 92 /**
bpatel@766 93 * Add the tag information for the current annotation type.
bpatel@766 94 *
bpatel@766 95 * @param annotationInfoTree content tree to which the tag information will be added
duke@1 96 */
bpatel@766 97 public void addAnnotationTypeTagInfo(Content annotationInfoTree);
duke@1 98
duke@1 99 /**
bpatel@766 100 * If this annotation is deprecated, add the appropriate information.
bpatel@766 101 *
bpatel@766 102 * @param annotationInfoTree content tree to which the deprecated information will be added
duke@1 103 */
bpatel@766 104 public void addAnnotationTypeDeprecationInfo (Content annotationInfoTree);
duke@1 105
duke@1 106 /**
bpatel@766 107 * Add the annotation type details marker.
bpatel@766 108 *
bpatel@766 109 * @param memberDetails the content tree representing member details marker
duke@1 110 */
bpatel@766 111 public void addAnnotationDetailsMarker(Content memberDetails);
bpatel@766 112
bpatel@766 113 /**
bpatel@766 114 * Get the member tree header for the annotation type.
bpatel@766 115 *
bpatel@766 116 * @return a content tree for the member tree header
bpatel@766 117 */
bpatel@766 118 public Content getMemberTreeHeader();
bpatel@766 119
bpatel@766 120 /**
bpatel@766 121 * Get the member tree.
bpatel@766 122 *
bpatel@766 123 * @param memberTree the content tree that will be modified and returned
bpatel@766 124 * @return a content tree for the member
bpatel@766 125 */
bpatel@766 126 public Content getMemberTree(Content memberTree);
bpatel@766 127
bpatel@766 128 /**
bpatel@766 129 * Get the member summary tree.
bpatel@766 130 *
bpatel@766 131 * @param memberTree the content tree that will be used to build the summary tree
bpatel@766 132 * @return a content tree for the member summary
bpatel@766 133 */
bpatel@766 134 public Content getMemberSummaryTree(Content memberTree);
bpatel@766 135
bpatel@766 136 /**
bpatel@766 137 * Get the member details tree.
bpatel@766 138 *
bpatel@766 139 * @param memberTree the content tree that will be used to build the details tree
bpatel@766 140 * @return a content tree for the member details
bpatel@766 141 */
bpatel@766 142 public Content getMemberDetailsTree(Content memberTree);
bpatel@766 143
bpatel@766 144 /**
bpatel@766 145 * Add the footer of the page.
bpatel@766 146 *
bpatel@766 147 * @param contentTree content tree to which the footer will be added
bpatel@766 148 */
bpatel@766 149 public void addFooter(Content contentTree);
bpatel@766 150
bpatel@766 151 /**
bpatel@766 152 * Print the document.
bpatel@766 153 *
bpatel@766 154 * @param contentTree content tree that will be printed as a document
bpatel@766 155 */
bpatel@766 156 public void printDocument(Content contentTree);
duke@1 157
duke@1 158 /**
duke@1 159 * Close the writer.
duke@1 160 */
duke@1 161 public void close() throws IOException;
duke@1 162
duke@1 163 /**
duke@1 164 * Return the {@link AnnotationTypeDoc} being documented.
duke@1 165 *
duke@1 166 * @return the AnnotationTypeDoc being documented.
duke@1 167 */
duke@1 168 public AnnotationTypeDoc getAnnotationTypeDoc();
duke@1 169 }

mercurial