fileBuffer.insert(insertIndex, tableHead);
insertIndex += tableHead.length();
// insert the body of the table
for (int i = 0; i < decls.size(); i++) {
IProgramElement decl = (IProgramElement) decls.get(i);
if (isAboveVisibility(decl)) {
// insert the table row accordingly
String comment = generateSummaryComment(decl);
String entry = "";
if (kind.equals(ADVICE_SUMMARY)) {
entry += "<TR><TD>" + "<A HREF=\"#" + generateHREFName(decl) + "\">" + "<TT>" + generateSignatures(decl)
+ "</TT></A><BR> ";
if (!comment.equals("")) {
entry += comment + "<P>";
}
entry += generateAffects(decl) + "</TD>" + "</TR><TD>\n";
} else if (kind.equals(POINTCUT_SUMMARY)) {
entry += "<TR><TD WIDTH=\"1%\">" + "<FONT SIZE=-1><TT>" + genAccessibility(decl) + "</TT></FONT>" + "</TD>\n"
+ "<TD>" + "<TT><A HREF=\"#" + generateHREFName(decl) + "\">" + decl.toLabelString()
+ "</A></TT><BR> ";
if (!comment.equals("")) {
entry += comment + "<P>";
}
entry += "</TR></TD>\n";
} else if (kind.equals(DECLARE_SUMMARY)) {
entry += "<TR><TD WIDTH=\"1%\">" + "<FONT SIZE=-1><TT>" + generateModifierInformation(decl, false)
+ "</TT></FONT>" + "</TD>" + "<TD>" + "<A HREF=\"#" + generateHREFName(decl) + "\">" + "<TT>"
+ decl.toLabelString() + "</TT></A><P>" + generateAffects(decl);
} else if (kind.equals(ITD_FIELD_SUMMARY) || kind.equals(ITD_METHOD_SUMMARY)) {
entry += "<TR><TD WIDTH=\"1%\">" + "<FONT SIZE=-1><TT>" + generateModifierInformation(decl, false)
+ "</TT></FONT>" + "</TD>" + "<TD>" + "<A HREF=\"#" + generateHREFName(decl) + "\">" + "<TT>"
+ decl.toLabelString() + "</TT></A><P>" + generateDeclaredBy(decl);
} else if (kind.equals(ITD_CONSTRUCTOR_SUMMARY)) {
entry += "<TD>" + "<A HREF=\"#" + generateHREFName(decl) + "\">" + "<TT>" + decl.toLabelString()
+ "</TT></A><P>" + generateDeclaredBy(decl);
}
// insert the entry
fileBuffer.insert(insertIndex, entry);