net.cscott.sinjdoc

Class Main

public class Main extends Object

Main implements a javadoc-alike that properly handles JSR-14 java code (-source 1.5). The programmatic interface is deliberately very similar to that of Sun's javadoc, although slightly different option sets may be supported.

Version: $Id: Main.java,v 1.18 2003/08/01 00:01:26 cananian Exp $

Author: C. Scott Ananian (cscott@cscott.net)

Method Summary
static intexecute(String[] args)
Programmatic interface.
static intexecute(String programName, String[] args)
Programmatic interface.
static intexecute(String programName, String defaultDocletClassName, String[] args)
Programmatic interface.
static intexecute(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, String[] args)
Programmatic interface.
static voidmain(String[] args)
Command-line interface.

Method Detail

execute

public static int execute(String[] args)
Programmatic interface.

Parameters: args The command line parameters.

Returns: the exit code.

execute

public static int execute(String programName, String[] args)
Programmatic interface.

Parameters: programName Name of the program, for error messages. arg The command line parameters.

Returns: the exit code.

execute

public static int execute(String programName, String defaultDocletClassName, String[] args)
Programmatic interface.

Parameters: programName Name of the program, for error messages. defaultDocletClassName ignored. arg The command line parameters.

Returns: the exit code.

execute

public static int execute(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, String[] args)
Programmatic interface.

Parameters: programName Name of the program, for error messages. errWriter PrintWriter to receive error messages. warnWriter PrintWriter to receive warning messages. noticeWriter PrintWriter to receive notice messages. defaultDocletClassName ignored. arg The command line parameters.

Returns: the exit code.

main

public static void main(String[] args)
Command-line interface. Exits using System.exit(). Doesn't return an exit code.

Parameters: args The command line parameters.

Copyright © 2003 C. Scott Ananian