Macneil Shonle
Ankit Shah
Version 1.1
12 March
2003
Download Source Code of XAJC Compiler
public class XAJC {
public static void main(String[] args);
private static void forkAjc(String[] args) throws Exception;
private static void terminate();
private static void filesCopy (File[] source, File dest) throws Exception;
private static void tmpDirDelete (File dir);
private static void usage ();
private static void version ();
private static void printErrs();
private static void printWrns();
}
The main method method of XAJC class implements the whole functionality of the compiler. It essentially implements the following steps:
ForkAjc method takes in an array of arguments and invokes the ajc compiler with those arguments to compile all the generated .java files. It throws an Exception in case of a compiler error.
terminate() method calls cleanup method of all plugins, deletes all the temporary files generated throughout the compilation and then exits the virtual machine.
tempDirDelete() empties the temporary folder and deletes it.
filesCopy copies the bunch of files to the specified directory
usage() spells out usage of the compiler and version() prints the version of the compiler
printErrs() and printWrns() print out all the new errors and warnings on the screen respectively
XAspects Project Home Page, <http://www.ccs.neu.edu/research/demeter/xaspects/>.
AspectJ, <http://www.aspectj.org>.
|
Author: Ankit Shah. Copyright © 2003. All rights reserved. |