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

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

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

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 java.io.*;
duke@1 29 import java.util.*;
jjg@1357 30
bpatel@766 31 import com.sun.javadoc.*;
duke@1 32
duke@1 33 /**
duke@1 34 * The interface for writing constants summary output.
duke@1 35 *
jjg@1359 36 * <p><b>This is NOT part of any supported API.
jjg@1359 37 * If you write code that depends on this, you do so at your own risk.
jjg@1359 38 * This code and its internal interfaces are subject to change or
jjg@1359 39 * deletion without notice.</b>
duke@1 40 *
duke@1 41 * @author Jamie Ho
bpatel@766 42 * @author Bhavesh Patel (Modified)
duke@1 43 * @since 1.5
duke@1 44 */
duke@1 45
duke@1 46 public interface ConstantsSummaryWriter {
duke@1 47
duke@1 48 /**
duke@1 49 * Close the writer.
duke@1 50 */
duke@1 51 public abstract void close() throws IOException;
duke@1 52
duke@1 53 /**
bpatel@766 54 * Get the header for the constant summary documentation.
bpatel@766 55 *
bpatel@766 56 * @return header that needs to be added to the documentation
duke@1 57 */
bpatel@766 58 public abstract Content getHeader();
duke@1 59
duke@1 60 /**
bpatel@766 61 * Get the header for the constant content list.
bpatel@766 62 *
bpatel@766 63 * @return content header that needs to be added to the documentation
duke@1 64 */
bpatel@766 65 public abstract Content getContentsHeader();
duke@1 66
duke@1 67 /**
bpatel@766 68 * Adds the given package name link to the constant content list tree.
bpatel@766 69 *
duke@1 70 * @param pkg the {@link PackageDoc} to index.
duke@1 71 * @param parsedPackageName the parsed package name. We only Write the
duke@1 72 * first 2 directory levels of the package
duke@1 73 * name. For example, java.lang.ref would be
duke@1 74 * indexed as java.lang.*.
duke@1 75 * @param WriteedPackageHeaders the set of package headers that have already
duke@1 76 * been indexed. We don't want to index
duke@1 77 * something more than once.
bpatel@766 78 * @param contentListTree the content tree to which the link will be added
duke@1 79 */
bpatel@766 80 public abstract void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName,
bpatel@766 81 Set<String> WriteedPackageHeaders, Content contentListTree);
duke@1 82
duke@1 83 /**
bpatel@766 84 * Get the content list to be added to the documentation tree.
bpatel@766 85 *
bpatel@766 86 * @param contentListTree the content that will be added to the list
bpatel@766 87 * @return content list that will be added to the documentation tree
duke@1 88 */
bpatel@766 89 public abstract Content getContentsList(Content contentListTree);
duke@1 90
duke@1 91 /**
bpatel@766 92 * Get the constant summaries for the document.
bpatel@766 93 *
bpatel@766 94 * @return constant summaries header to be added to the documentation tree
duke@1 95 */
bpatel@766 96 public abstract Content getConstantSummaries();
duke@1 97
duke@1 98 /**
bpatel@766 99 * Adds the given package name.
bpatel@766 100 *
bpatel@766 101 * @param pkg the {@link PackageDoc} to index.
bpatel@766 102 * @param parsedPackageName the parsed package name. We only Write the
bpatel@766 103 * first 2 directory levels of the package
bpatel@766 104 * name. For example, java.lang.ref would be
bpatel@766 105 * indexed as java.lang.*.
bpatel@766 106 * @param summariesTree the documentation tree to which the package name will
bpatel@766 107 * be written
bpatel@766 108 */
bpatel@766 109 public abstract void addPackageName(PackageDoc pkg,
bpatel@766 110 String parsedPackageName, Content summariesTree);
bpatel@766 111
bpatel@766 112 /**
bpatel@766 113 * Get the class summary header for the constants summary.
bpatel@766 114 *
bpatel@766 115 * @return the header content for the class constants summary
bpatel@766 116 */
bpatel@766 117 public abstract Content getClassConstantHeader();
bpatel@766 118
bpatel@766 119 /**
bpatel@766 120 * Adds the constant member table to the documentation tree.
bpatel@766 121 *
duke@1 122 * @param cd the class whose constants are being documented.
duke@1 123 * @param fields the constants being documented.
bpatel@766 124 * @param classConstantTree the documentation tree to which theconstant member
bpatel@766 125 * table content will be added
duke@1 126 */
bpatel@766 127 public abstract void addConstantMembers(ClassDoc cd, List<FieldDoc> fields,
bpatel@766 128 Content classConstantTree);
duke@1 129
duke@1 130 /**
bpatel@766 131 * Adds the footer for the summary documentation.
bpatel@766 132 *
bpatel@766 133 * @param contentTree content tree to which the footer will be added
duke@1 134 */
bpatel@766 135 public abstract void addFooter(Content contentTree);
bpatel@766 136
bpatel@766 137 /**
bpatel@766 138 * Print the constants summary document.
bpatel@766 139 *
bpatel@766 140 * @param contentTree content tree which should be printed
bpatel@766 141 */
bpatel@766 142 public abstract void printDocument(Content contentTree);
duke@1 143
duke@1 144 }

mercurial