|
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
gate.util.compilers.Sun
public class Sun
This class copiles a set of java sources by accessing the java compiler from tools.jar file in the jdk. As such, it will not run on a JRE alone, but requires a JDK.
| Field Summary | |
|---|---|
protected static GateClassLoader |
classLoader
|
| Fields inherited from class gate.util.Javac |
|---|
DEFAULT_COMPILER |
| Constructor Summary | |
|---|---|
Sun()
|
|
| Method Summary | |
|---|---|
void |
compile(Map sources)
Compiles a set of java sources and loads the compiled classes in the gate class loader. |
protected static File |
getDirectory(File workDir,
List pathComponents)
Gets a file inside a parent directory from a list of path components. |
protected static List |
getPathComponents(String classname)
Breaks a class name into path components. |
protected static void |
loadAllClasses(File classesDirectory,
String packageName)
Loads the entire hierarchy of classes found in a parent directory. |
| Methods inherited from class gate.util.Javac |
|---|
loadClasses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static GateClassLoader classLoader
| Constructor Detail |
|---|
public Sun()
| Method Detail |
|---|
public void compile(Map sources)
throws GateException
compile in class Javacsources - 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.protected static List getPathComponents(String classname)
classname -
List of Strings.
protected static File getDirectory(File workDir,
List pathComponents)
workDir - pathComponents -
File value.
protected static void loadAllClasses(File classesDirectory,
String packageName)
throws IOException
classesDirectory -
IOException
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||