ataspectj
Class AtJavacLauncher

java.lang.Object
  extended by ataspectj.AtAspectjComponent
      extended by ataspectj.AtJavacLauncher

public class AtJavacLauncher
extends AtAspectjComponent

Class used to call the atjavac compiler of @Java


Field Summary
 java.lang.String[] _params
          The parameters passed to the compiler
 
Fields inherited from class ataspectj.AtAspectjComponent
barrier, CODEPRINT, DEBUG, VERBOSE
 
Constructor Summary
AtJavacLauncher(java.lang.String[] params)
          Stanadard constructor of the class;
 
Method Summary
static int atjavac(java.lang.String[] args)
          Static method used to call the compiler atjavac.
 int launchAtJavac()
          Method used to call ajc.
static void main(java.lang.String[] args)
          Main used to test the class
 
Methods inherited from class ataspectj.AtAspectjComponent
done
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_params

public java.lang.String[] _params
The parameters passed to the compiler

Constructor Detail

AtJavacLauncher

public AtJavacLauncher(java.lang.String[] params)
Stanadard constructor of the class;

Parameters:
params - The parameters passed to the atjavac compiler
Method Detail

atjavac

public static int atjavac(java.lang.String[] args)
Static method used to call the compiler atjavac.

Parameters:
args - List of the parameters.
Returns:
int the exit value of the compiling process, -1 if there is an error

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main used to test the class

Parameters:
args - the parameters to pass to the ajc compiler
Throws:
java.lang.Exception

launchAtJavac

public int launchAtJavac()
Method used to call ajc.

Returns:
the exit code of the compiler process.