src/share/classes/com/sun/tools/doclets/internal/toolkit/MemberSummaryWriter.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 1417
522a1ee72340
permissions
-rw-r--r--

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

     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package com.sun.tools.doclets.internal.toolkit;
    28 import java.io.*;
    29 import java.util.*;
    30 import com.sun.javadoc.*;
    32 /**
    33  * The interface for writing member summary output.
    34  *
    35  *  <p><b>This is NOT part of any supported API.
    36  *  If you write code that depends on this, you do so at your own risk.
    37  *  This code and its internal interfaces are subject to change or
    38  *  deletion without notice.</b>
    39  *
    40  * @author Jamie Ho
    41  * @author Bhavesh Patel (Modified)
    42  * @since 1.5
    43  */
    45 public interface MemberSummaryWriter {
    47     /**
    48      * Get the member summary header for the given class.
    49      *
    50      * @param classDoc the class the summary belongs to
    51      * @param memberSummaryTree the content tree to which the member summary will be added
    52      * @return a content tree for the member summary header
    53      */
    54     public Content getMemberSummaryHeader(ClassDoc classDoc,
    55             Content memberSummaryTree);
    57     /**
    58      * Get the summary table for the given class.
    59      *
    60      * @param classDoc the class the summary table belongs to
    61      * @return a content tree for the member summary table
    62      */
    63     public Content getSummaryTableTree(ClassDoc classDoc);
    65     /**
    66      * Add the member summary for the given class and member.
    67      *
    68      * @param classDoc the class the summary belongs to
    69      * @param member the member that is documented
    70      * @param firstSentenceTags the tags for the sentence being documented
    71      * @param tableTree the content treeto which the information will be added
    72      * @param counter the counter for determing style for the table row
    73      */
    74     public void addMemberSummary(ClassDoc classDoc, ProgramElementDoc member,
    75         Tag[] firstSentenceTags, Content tableTree, int counter);
    77     /**
    78      * Get the inherited member summary header for the given class.
    79      *
    80      * @param classDoc the class the summary belongs to
    81      * @return a content tree containing the inherited summary header
    82      */
    83     public Content getInheritedSummaryHeader(ClassDoc classDoc);
    85     /**
    86      * Add the inherited member summary for the given class and member.
    87      *
    88      * @param classDoc the class the inherited member belongs to
    89      * @param member the inherited member that is being documented
    90      * @param isFirst true if this is the first member in the list
    91      * @param isLast true if this is the last member in the list
    92      * @param linksTree the content tree to which the links will be added
    93      */
    94     public void addInheritedMemberSummary(ClassDoc classDoc,
    95         ProgramElementDoc member, boolean isFirst, boolean isLast,
    96         Content linksTree);
    98     /**
    99      * Get inherited summary links.
   100      *
   101      * @return a content tree conatining the inherited summary links
   102      */
   103     public Content getInheritedSummaryLinksTree();
   105     /**
   106      * Get the member tree.
   107      *
   108      * @param memberTree the content tree representating the member
   109      * @return a content tree for the member
   110      */
   111     public Content getMemberTree(Content memberTree);
   113     /**
   114      * Close the writer.
   115      */
   116     public void close() throws IOException;
   117 }

mercurial