import com.sun.tools.doclets.*; import com.sun.javadoc.*; import java.util.*; import java.io.*; public class Standard { static int _indent=0; static String indent_type="\t"; static Writer out; static boolean comment=false; public static void indent(int x) { _indent+=x; if(_indent <0)_indent=0; } public static void println(String str) { try { for(int i=0;i<_indent;i++) { out.write(indent_type); } out.write(str+"\n"); } catch(IOException err) { System.err.println("Error :"+err); } } public static boolean start(RootDoc root) throws IOException { ClassDoc classes[]=root.classes(); for(int i=0;i"); printCommentText(" "+klass.commentText()); println("/// "); } } public static void PrintComment(FieldDoc field) { if(comment) { println("/// "); printCommentText(" "+field.commentText()); println("/// "); } } public static void PrintComment(MethodDoc method) { if(comment) { println("/// "); printCommentText(" "+method.commentText()); println("/// "); } } public static void PrintComment(ConstructorDoc ctor) { if(comment) { println("/// "); printCommentText(" "+ctor.commentText()); println("/// "); } } public static void OutputMethods(ClassDoc klass) throws IOException { MethodDoc md[]=klass.methods(); for(int i=0;i