com.sun.tools.apt
Class Main

java.lang.Object
  extended by com.sun.tools.apt.Main

public class Main
extends java.lang.Object

The main program for the command-line tool apt.

Nothing described in this source file is part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String... args)
          Command line interface.
static int process(AnnotationProcessorFactory factory, java.io.PrintWriter out, java.lang.String... args)
          Programmatic interface.
static int process(AnnotationProcessorFactory factory, java.lang.String... args)
          Programmatic interface.
static int process(java.io.PrintWriter out, java.lang.String... args)
          Programmatic interface.
static int process(java.lang.String... args)
          Programatic interface.
private static int processing(AnnotationProcessorFactory factory, java.io.PrintWriter out, java.lang.String... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String... args)
Command line interface. If args is null, a NullPointerException is thrown.

Parameters:
args - The command line parameters.

process

public static int process(java.lang.String... args)
Programatic interface. If args is null, a NullPointerException is thrown. Output is directed to System.err.

Parameters:
args - The command line parameters.

process

public static int process(java.io.PrintWriter out,
                          java.lang.String... args)
Programmatic interface. If any argument is null, a NullPointerException is thrown.

Parameters:
args - The command line parameters.
out - Where the tool's output is directed.

process

public static int process(AnnotationProcessorFactory factory,
                          java.lang.String... args)
Programmatic interface. If factory or args is null, a NullPointerException is thrown. The "-factory" and "-factorypath" command line parameters are ignored by this entry point. Output is directed to System.err.

Parameters:
factory - The annotation processor factory to use
args - The command line parameters.

process

public static int process(AnnotationProcessorFactory factory,
                          java.io.PrintWriter out,
                          java.lang.String... args)
Programmatic interface. If any argument is null, a NullPointerException is thrown. The "-factory" and "-factorypath" command line parameters are ignored by this entry point.

Parameters:
factory - The annotation processor factory to use
args - The command line parameters.
out - Where the tool's output is directed.

processing

private static int processing(AnnotationProcessorFactory factory,
                              java.io.PrintWriter out,
                              java.lang.String... args)