public void printMethodsSummary ( ClassDoc classDoc ) { MethodDoc [ ] methodDocs = TestAPIDoclet . getTestAPIComponentMethods ( classDoc ) ; if ( methodDocs . length > 0 ) { mOut . println ( "<P>" ) ; mOut . println ( "<TABLE BORDER=\"1\" WIDTH=\"100%\" CELLPADDING=\"3\" CELLSPACING=\"0\" SUMMARY=\"\">" ) ; mOut . println ( "<TR BGCOLOR=\"#CCCCFF\"><TH ALIGN=\"left\" COLSPAN=\"2\"><FONT SIZE=\"+2\"><B>Methods " + "Summary</B></FONT></TH></TR>" ) ; for ( MethodDoc methodDoc : methodDocs ) { String methodName = methodDoc . name ( ) ; mOut . print ( "<TR><TD WIDTH=\"1%\"><CODE><B><A HREF=\"#" + methodName + methodDoc . flatSignature ( ) + "\">" + methodName + "</A></B></CODE></TD><TD>" ) ; Tag [ ] firstSentenceTags = methodDoc . firstSentenceTags ( ) ; if ( firstSentenceTags . length == 0 ) { System . err . println ( "Warning: method " + methodName + " of " + methodDoc . containingClass ( ) . simpleTypeName ( ) + " has no description" ) ; } printInlineTags ( firstSentenceTags , classDoc ) ; mOut . println ( "</TD>" ) ; } mOut . println ( "</TABLE>" ) ; } }
Prints summary of Test API methods excluding old - style verbs in HTML format .