gate.util
Class Javac
java.lang.Object
|
+--gate.util.Javac
- public class Javac
- extends Object
This class copiles a set of java sources by accessing the java compiler
from tools.jar file in the jdk.
All processing is done without touching the disk.
Constructor Summary |
Javac()
|
Method Summary |
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, registerNatives, toString, wait, wait, wait |
Javac
public Javac()
loadClasses
public static void loadClasses(Map sources)
throws GateException
- Compiles a set of java sources and loads the compiled classes in the gate
class loader.
- Parameters:
sources
- a map from fully qualified classname to java source- Throws:
GateException
- in case of a compilation error or warning.
In the case of warnings the compiled classes are loaded before the error is
raised.