|
GATE Version 3.1-2270 |
|||||||||
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 | |
---|---|
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. |
static void |
loadClasses(Map sources)
Compiles a set of java sources and loads the compiled classes in the gate class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.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.
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |