| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
org.apache.tools.ant.taskdefs.compilers.AptCompilerAdapter
public class AptCompilerAdapter
The implementation of the apt compiler for JDK 1.5.
As usual, the low level entry points for Java tools are neither documented or stable; this entry point may change from that of 1.5.0_01-b08 without any warning at all. The IDE decompile of the tool entry points is as follows:
 public class Main {
 public Main() ;
 
 public static transient void main(String... strings);
 
 public static transient int process(String... strings);
 
 public static transient int process(PrintWriter printWriter,
      String... strings);
 public static transient int process(
      AnnotationProcessorFactory annotationProcessorFactory,
      String... strings);
      
 public static transient int process(
      AnnotationProcessorFactory annotationProcessorFactory,
      PrintWriter printWriter,
      String... strings);
 private static transient int processing(
      AnnotationProcessorFactory annotationProcessorFactory,
      PrintWriter printWriter,
      String... strings) ;
 }
 
 This Adapter is designed to run Apt in-JVM, an option that is not actually
 exposed to end-users, because it was too brittle during beta testing; classpath
 problems being the core issue.
| Field Summary | |
|---|---|
| static java.lang.String | APT_ENTRY_POINTclass in tools.jar that implements APT | 
| static java.lang.String | APT_METHOD_NAMEmethod used to compile. | 
| Fields inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter | 
|---|
| attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose | 
| Constructor Summary | |
|---|---|
| AptCompilerAdapter() | |
| Method Summary | |
|---|---|
|  boolean | execute()Run the compilation. | 
| protected  Apt | getApt()Get the facade task that fronts this adapter | 
| protected  void | setAptCommandlineSwitches(Commandline cmd)using our front end task, set up the command line switches | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String APT_ENTRY_POINT
public static final java.lang.String APT_METHOD_NAME
| Constructor Detail | 
|---|
public AptCompilerAdapter()
| Method Detail | 
|---|
protected Apt getApt()
DefaultCompilerAdapter.getJavac()protected void setAptCommandlineSwitches(Commandline cmd)
cmd - command line to set up
public boolean execute()
                throws BuildException
BuildException - if the compilation has problems.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||