|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.Javac
public abstract class Javac
This class compiles a set of java sources using the user's preferred Java compiler. The default compiler used is the Eclipse JDT compiler, but this can be overridden by the user via an option in gate.xml.
| Field Summary | |
|---|---|
private static GateClassLoader |
classLoader
The GATE class loader. |
private static Javac |
compiler
The compiler to use. |
static String |
DEFAULT_COMPILER
The default compiler to use. |
| Constructor Summary | |
|---|---|
Javac()
|
|
| Method Summary | |
|---|---|
abstract void |
compile(Map sources)
Compile a set of Java sources, and load the resulting classes into the GATE class loader. |
private static Javac |
createCompilerInstance(String compilerType)
|
static void |
loadClasses(Map sources)
Compiles a set of java sources and loads the compiled classes in the gate class loader. |
private static void |
setCompilerTypeFromUserConfig()
Sets the type of compiler to be used, based on the user's configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Javac compiler
private static GateClassLoader classLoader
public static final String DEFAULT_COMPILER
| Constructor Detail |
|---|
public Javac()
| Method Detail |
|---|
public static void loadClasses(Map sources)
throws GateException
sources - a map from fully qualified classname to java source
GateException - in case of a compilation error or warning. In
the case of warnings the compiled classes are loaded
before the error is raised.
private static void setCompilerTypeFromUserConfig()
throws GateException
GateException
private static Javac createCompilerInstance(String compilerType)
throws GateException
GateException
public abstract void compile(Map sources)
throws GateException
sources - a map from fully qualified classname to java source
GateException - in case of a compilation error or warning. In
the case of warnings, the compiled classes are loaded
before the exception is thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||