FileDocCategorySizeDatePackage
ConstructorSubWriter.javaAPI DocExample3919Wed Apr 19 11:17:12 BST 2000com.sun.tools.doclets.standard

ConstructorSubWriter

public class ConstructorSubWriter extends ExecutableMemberSubWriter
author
Robert Field
author
Atul M Dambalkar

Fields Summary
protected boolean
foundNonPublicMember
Constructors Summary
public ConstructorSubWriter(SubWriterHolderWriter writer, ClassDoc classdoc)


       
                                  
        super(writer, classdoc);
        checkForNonPublicMembers(visibleMemberMap.getMembersFor(classdoc));
    
public ConstructorSubWriter(SubWriterHolderWriter writer)

        super(writer);
    
Methods Summary
protected voidcheckForNonPublicMembers(java.util.List members)

        for (int i = 0; i < members.size(); i++) {
            if (!foundNonPublicMember) {
                if (!((ProgramElementDoc)(members.get(i))).isPublic()) {
                    foundNonPublicMember = true;
                    break;
                }
            }
        }
    
public intgetMemberKind()

        return VisibleMemberMap.CONSTRUCTORS;
    
protected voidnavSummaryLink()

         printNavSummaryLink(classdoc, 
            visibleMemberMap.getMembersFor(classdoc).size() > 0? true: false);
    
protected voidprintHeader(com.sun.javadoc.ClassDoc cd)

        writer.anchor("constructor_detail");
        writer.printTableHeadingBackground(writer.
                                       getText("doclet.Constructor_Detail"));
    
public voidprintInheritedSummaryAnchor(com.sun.javadoc.ClassDoc cd)

    
public voidprintInheritedSummaryLabel(com.sun.javadoc.ClassDoc cd)

        // no such
    
protected voidprintNavDetailLink(boolean link)

        if (link) {
            writer.printHyperLink("", "constructor_detail",
                                      writer.getText("doclet.navConstructor"));
        } else {
            writer.printText("doclet.navConstructor");
        } 
    
protected voidprintNavSummaryLink(com.sun.javadoc.ClassDoc cd, boolean link)

        if (link) {
            writer.printHyperLink("", "constructor_summary",
                                  writer.getText("doclet.navConstructor"));
        } else {
            writer.printText("doclet.navConstructor");
        }
    
public voidprintSummaryAnchor(com.sun.javadoc.ClassDoc cd)

        writer.anchor("constructor_summary");
    
public voidprintSummaryLabel(com.sun.javadoc.ClassDoc cd)

        writer.boldText("doclet.Constructor_Summary"); 
    
protected voidprintSummaryType(com.sun.javadoc.ProgramElementDoc member)

        if (foundNonPublicMember) {
            writer.printTypeSummaryHeader();
            if (member.isProtected()) {
                print("protected ");
            } else if (member.isPrivate()) {
                print("private ");
            } else if (member.isPublic()) {
                writer.space();
            } else {
                writer.printText("doclet.Package_private");
            }
            writer.printTypeSummaryFooter();
	}
    
protected voidprintTags(com.sun.javadoc.ProgramElementDoc member)

        ParamTag[] params = ((ConstructorDoc)member).paramTags();
        ThrowsTag[] thrown = ((ConstructorDoc)member).throwsTags();
        Tag[] sinces = member.tags("since");
        SeeTag[] sees = member.seeTags();
        if (params.length + thrown.length + sees.length + sinces.length > 0) {
            writer.dd();
            writer.dl();
            printParamTags(params);
            printThrowsTags(thrown);
            writer.printSinceTag(member);
            writer.printSeeTags(member);
            writer.dlEnd();
            writer.ddEnd();
        }