edu.mit.ai.psg.jeva
Class CompileUnit.CompilerInOwnProcess
java.lang.Object
|
+--edu.mit.ai.psg.jeva.CompileUnit.CompilerInOwnProcess
- Enclosing class:
- CompileUnit
- public static class CompileUnit.CompilerInOwnProcess
- extends Object
- implements CompileUnit.CompilerCommand
CompileUnit.CompilerInOwnProcess
public CompileUnit.CompilerInOwnProcess(String compilerCommandName)
toString
public String toString()
- Overrides:
- toString in class Object
compile
public boolean compile(String[] commandLineArguments,
OutputStream outStream,
OutputStream errStream)
throws SecurityException,
IllegalStateException
- Description copied from interface: CompileUnit.CompilerCommand
- compile files specified by commandLineArguments
- Specified by:
- compile in interface CompileUnit.CompilerCommand
- Tags copied from interface: CompileUnit.CompilerCommand
- Parameters:
commandLineArguments - are the standard
javac options and arguments.- Returns:
- true if compilation succeeded, so program class files
are now loadable; false if there were compilation
errors in program being compiled, so program class files are not
loadable.
- Throws:
- SecurityException - if compiler wasn't able to run because
of security violations. Try another compiler.
- IllegalStateException - if compiler wasn't able to run, e.g.,
perhaps it isn't installed correctly. Try another compiler.