if (sym.isPackage()) page.print("package "); else page.print(kind(sym) + " ");
page.print(symtab.getSymbolKeywordForDoc(sym) + " ");
    protected void addTitle(Symbol sym) {	if (sym.isRoot()) {	    page.printlnOTag("div", ATTRS_PAGE_TITLE).indent();            page.println(doctitle.replaceAll("<.*>", " "));            page.printlnSTag("br");            page.println("API Specification").undent();            page.printlnCTag("div");            page.println("This document is the API specification for "                + doctitle.replaceAll("<.*>", " ") + ".");            page.printlnSTag("p");        } else {	    // in	    page.print("in ");	    printPath(sym.owner(), SELF_FRAME);            // kind and name	    page.printlnOTag("div", ATTRS_ENTITY).indent();	    if (sym.isPackage())		page.print("package ");	    else		page.print(kind(sym) + " ");			    page.printlnTag("span", ATTRS_ENTITY, sym.nameString()).undent();	    page.printlnCTag("div");	    page.printlnHLine();	    // complete signature	    // !!! page.println(printer().printTemplateHtmlSignature(sym, false).toString());	    	    printTemplateHtmlSignature(sym, false);	    	    // implementing classes or modules	    // Maps classes to their direct implementing classes or modules	    Map subs = ScalaSearch.subTemplates(root, isDocumented);	    if (sym.isClass()) {		List subList = (List) subs.get(sym);		if (subList != null && subList.size() != 0) {		    page.printlnOTag("dl").indent();		    page.printlnOTag("dt");		    page.printlnBold("Implementing classes or objects:");		    page.printlnCTag("dt");		    Iterator it = subList.iterator();		    while (it.hasNext()) {			Pair p = (Pair) it.next();			Symbol sub = (Symbol) p.fst;			Type tipe = (Type) p.snd;			page.printlnOTag("dd");			symtab.defString(sub, true /*addLink*/);			if (sub.owner() != sym.owner()) {                            page.print(" in ");			    printPath(sub.owner(), SELF_FRAME);                        }			page.printlnCTag("dd");		    }                    page.undent();		    page.printlnCTag("dl");		}	    } 	}    }