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

Mon, 21 Jan 2013 00:45:35 -0500

author
bpatel
date
Mon, 21 Jan 2013 00:45:35 -0500
changeset 1568
5f0731e4e5e6
parent 1417
522a1ee72340
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8006124: javadoc/doclet should be updated to support profiles
Reviewed-by: jjg

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 package com.sun.tools.doclets.internal.toolkit;
duke@1 27
duke@1 28 import java.io.*;
bpatel@766 29 import java.util.*;
duke@1 30 import com.sun.javadoc.*;
duke@1 31
duke@1 32 /**
duke@1 33 * The interface for writing member summary 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 MemberSummaryWriter {
duke@1 46
duke@1 47 /**
bpatel@766 48 * Get the member summary header for the given class.
duke@1 49 *
bpatel@766 50 * @param classDoc the class the summary belongs to
bpatel@766 51 * @param memberSummaryTree the content tree to which the member summary will be added
bpatel@766 52 * @return a content tree for the member summary header
duke@1 53 */
bpatel@766 54 public Content getMemberSummaryHeader(ClassDoc classDoc,
bpatel@766 55 Content memberSummaryTree);
duke@1 56
duke@1 57 /**
bpatel@766 58 * Get the summary table for the given class.
duke@1 59 *
bpatel@766 60 * @param classDoc the class the summary table belongs to
bpatel@1417 61 * @param tableContents list of contents that will be added to the summary table
bpatel@766 62 * @return a content tree for the member summary table
duke@1 63 */
bpatel@1417 64 public Content getSummaryTableTree(ClassDoc classDoc,
bpatel@1417 65 List<Content> tableContents);
duke@1 66
duke@1 67 /**
bpatel@766 68 * Add the member summary for the given class and member.
duke@1 69 *
bpatel@766 70 * @param classDoc the class the summary belongs to
bpatel@766 71 * @param member the member that is documented
bpatel@766 72 * @param firstSentenceTags the tags for the sentence being documented
bpatel@1417 73 * @param tableContents list of contents to which the summary will be added
bpatel@1417 74 * @param counter the counter for determining id and style for the table row
duke@1 75 */
bpatel@766 76 public void addMemberSummary(ClassDoc classDoc, ProgramElementDoc member,
bpatel@1417 77 Tag[] firstSentenceTags, List<Content> tableContents, int counter);
duke@1 78
duke@1 79 /**
bpatel@766 80 * Get the inherited member summary header for the given class.
duke@1 81 *
bpatel@766 82 * @param classDoc the class the summary belongs to
bpatel@766 83 * @return a content tree containing the inherited summary header
duke@1 84 */
bpatel@766 85 public Content getInheritedSummaryHeader(ClassDoc classDoc);
duke@1 86
duke@1 87 /**
bpatel@766 88 * Add the inherited member summary for the given class and member.
duke@1 89 *
bpatel@766 90 * @param classDoc the class the inherited member belongs to
bpatel@766 91 * @param member the inherited member that is being documented
bpatel@766 92 * @param isFirst true if this is the first member in the list
bpatel@766 93 * @param isLast true if this is the last member in the list
bpatel@766 94 * @param linksTree the content tree to which the links will be added
duke@1 95 */
bpatel@766 96 public void addInheritedMemberSummary(ClassDoc classDoc,
bpatel@766 97 ProgramElementDoc member, boolean isFirst, boolean isLast,
bpatel@766 98 Content linksTree);
duke@1 99
duke@1 100 /**
bpatel@766 101 * Get inherited summary links.
duke@1 102 *
bpatel@766 103 * @return a content tree conatining the inherited summary links
duke@1 104 */
bpatel@766 105 public Content getInheritedSummaryLinksTree();
bpatel@766 106
bpatel@766 107 /**
bpatel@766 108 * Get the member tree.
bpatel@766 109 *
bpatel@766 110 * @param memberTree the content tree representating the member
bpatel@766 111 * @return a content tree for the member
bpatel@766 112 */
bpatel@766 113 public Content getMemberTree(Content memberTree);
duke@1 114
duke@1 115 /**
duke@1 116 * Close the writer.
duke@1 117 */
duke@1 118 public void close() throws IOException;
duke@1 119 }

mercurial