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

Tue, 09 Oct 2012 19:10:00 -0700

author
jjg
date
Tue, 09 Oct 2012 19:10:00 -0700
changeset 1357
c75be5bc5283
parent 798
4868a36f6fd8
child 1359
25e14ad23cef
permissions
-rw-r--r--

8000663: clean up langtools imports
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 *
duke@1 36 * This code is not part of an API.
duke@1 37 * It is implementation that is subject to change.
duke@1 38 * Do not use it as an API
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 ConstantsSummaryWriter {
duke@1 46
duke@1 47 /**
duke@1 48 * Close the writer.
duke@1 49 */
duke@1 50 public abstract void close() throws IOException;
duke@1 51
duke@1 52 /**
bpatel@766 53 * Get the header for the constant summary documentation.
bpatel@766 54 *
bpatel@766 55 * @return header that needs to be added to the documentation
duke@1 56 */
bpatel@766 57 public abstract Content getHeader();
duke@1 58
duke@1 59 /**
bpatel@766 60 * Get the header for the constant content list.
bpatel@766 61 *
bpatel@766 62 * @return content header that needs to be added to the documentation
duke@1 63 */
bpatel@766 64 public abstract Content getContentsHeader();
duke@1 65
duke@1 66 /**
bpatel@766 67 * Adds the given package name link to the constant content list tree.
bpatel@766 68 *
duke@1 69 * @param pkg the {@link PackageDoc} to index.
duke@1 70 * @param parsedPackageName the parsed package name. We only Write the
duke@1 71 * first 2 directory levels of the package
duke@1 72 * name. For example, java.lang.ref would be
duke@1 73 * indexed as java.lang.*.
duke@1 74 * @param WriteedPackageHeaders the set of package headers that have already
duke@1 75 * been indexed. We don't want to index
duke@1 76 * something more than once.
bpatel@766 77 * @param contentListTree the content tree to which the link will be added
duke@1 78 */
bpatel@766 79 public abstract void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName,
bpatel@766 80 Set<String> WriteedPackageHeaders, Content contentListTree);
duke@1 81
duke@1 82 /**
bpatel@766 83 * Get the content list to be added to the documentation tree.
bpatel@766 84 *
bpatel@766 85 * @param contentListTree the content that will be added to the list
bpatel@766 86 * @return content list that will be added to the documentation tree
duke@1 87 */
bpatel@766 88 public abstract Content getContentsList(Content contentListTree);
duke@1 89
duke@1 90 /**
bpatel@766 91 * Get the constant summaries for the document.
bpatel@766 92 *
bpatel@766 93 * @return constant summaries header to be added to the documentation tree
duke@1 94 */
bpatel@766 95 public abstract Content getConstantSummaries();
duke@1 96
duke@1 97 /**
bpatel@766 98 * Adds the given package name.
bpatel@766 99 *
bpatel@766 100 * @param pkg the {@link PackageDoc} to index.
bpatel@766 101 * @param parsedPackageName the parsed package name. We only Write the
bpatel@766 102 * first 2 directory levels of the package
bpatel@766 103 * name. For example, java.lang.ref would be
bpatel@766 104 * indexed as java.lang.*.
bpatel@766 105 * @param summariesTree the documentation tree to which the package name will
bpatel@766 106 * be written
bpatel@766 107 */
bpatel@766 108 public abstract void addPackageName(PackageDoc pkg,
bpatel@766 109 String parsedPackageName, Content summariesTree);
bpatel@766 110
bpatel@766 111 /**
bpatel@766 112 * Get the class summary header for the constants summary.
bpatel@766 113 *
bpatel@766 114 * @return the header content for the class constants summary
bpatel@766 115 */
bpatel@766 116 public abstract Content getClassConstantHeader();
bpatel@766 117
bpatel@766 118 /**
bpatel@766 119 * Adds the constant member table to the documentation tree.
bpatel@766 120 *
duke@1 121 * @param cd the class whose constants are being documented.
duke@1 122 * @param fields the constants being documented.
bpatel@766 123 * @param classConstantTree the documentation tree to which theconstant member
bpatel@766 124 * table content will be added
duke@1 125 */
bpatel@766 126 public abstract void addConstantMembers(ClassDoc cd, List<FieldDoc> fields,
bpatel@766 127 Content classConstantTree);
duke@1 128
duke@1 129 /**
bpatel@766 130 * Adds the footer for the summary documentation.
bpatel@766 131 *
bpatel@766 132 * @param contentTree content tree to which the footer will be added
duke@1 133 */
bpatel@766 134 public abstract void addFooter(Content contentTree);
bpatel@766 135
bpatel@766 136 /**
bpatel@766 137 * Print the constants summary document.
bpatel@766 138 *
bpatel@766 139 * @param contentTree content tree which should be printed
bpatel@766 140 */
bpatel@766 141 public abstract void printDocument(Content contentTree);
duke@1 142
duke@1 143 }

mercurial