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

FieldSubWriter

public class FieldSubWriter extends AbstractSubWriter
author
Robert Field
author
Atul M Dambalkar

Fields Summary
Constructors Summary
public FieldSubWriter(SubWriterHolderWriter writer, ClassDoc classdoc)

        super(writer, classdoc);
    
public FieldSubWriter(SubWriterHolderWriter writer)

        super(writer);
    
Methods Summary
public intgetMemberKind()

        return VisibleMemberMap.FIELDS;
    
protected voidprintBodyHtmlEnd(com.sun.javadoc.ClassDoc cd)

    
protected voidprintDeprecatedLink(com.sun.javadoc.ProgramElementDoc member)

        writer.printClassLink(member.containingClass(), member.name(), 
                              ((FieldDoc)member).qualifiedName());
    
protected voidprintHeader(com.sun.javadoc.ClassDoc cd)

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

        writer.anchor("fields_inherited_from_class_" + cd.qualifiedName());
    
public voidprintInheritedSummaryLabel(com.sun.javadoc.ClassDoc cd)

        String classlink = writer.getPreQualifiedClassLink(cd);
        writer.bold();
        writer.printText(cd.isClass()? 
                            "doclet.Fields_Inherited_From_Class":
                            "doclet.Fields_Inherited_From_Interface", 
                         classlink);
        writer.boldEnd();
    
protected voidprintInheritedSummaryLink(com.sun.javadoc.ClassDoc cd, com.sun.javadoc.ProgramElementDoc member)

        String name = member.name();
        writer.printClassLink(cd, name, name, false);
    
protected voidprintMember(com.sun.javadoc.ProgramElementDoc member)

        FieldDoc field = (FieldDoc)member;
        writer.anchor(field.name());
        printHead(field);
        printSignature(field);
        printFullComment(field);
    
protected voidprintNavDetailLink(boolean link)

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

        if (link) {
            writer.printHyperLink("", (cd == null)?
                                          "field_summary":
                                          "fields_inherited_from_class_" +
                                           cd.qualifiedName(),
                                  writer.getText("doclet.navField"));
        } else {               
            writer.printText("doclet.navField");
        }
    
voidprintSignature(com.sun.javadoc.MemberDoc member)

        FieldDoc field = (FieldDoc)member;
	writer.pre();
        printModifiers(field);
        printTypeLink(field.type());
        print(' ");
        bold(field.name());
	writer.preEnd();
    
public voidprintSummaryAnchor(com.sun.javadoc.ClassDoc cd)

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

        writer.boldText("doclet.Field_Summary"); 
    
protected voidprintSummaryLink(com.sun.javadoc.ClassDoc cd, com.sun.javadoc.ProgramElementDoc member)

        String name = member.name();
        writer.bold();
        writer.printClassLink(cd, name, name, false);
        writer.boldEnd();
    
protected voidprintSummaryType(com.sun.javadoc.ProgramElementDoc member)

        FieldDoc field = (FieldDoc)member;
        printModifierAndType(field, field.type());