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


Constructor Summary
CompileUnit.CompilerInOwnProcess(String compilerCommandName)
           
 
Method Summary
 boolean compile(String[] commandLineArguments, OutputStream outStream, OutputStream errStream)
          compile files specified by commandLineArguments
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompileUnit.CompilerInOwnProcess

public CompileUnit.CompilerInOwnProcess(String compilerCommandName)
Method Detail

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.

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu