edu.mit.ai.psg.jeva
Interface CompileUnit.CompilerCommand

All Known Implementing Classes:
CompileUnit.JavaCInProcess, CompileUnit.CompilerInOwnProcess
Enclosing class:
CompileUnit

public static interface CompileUnit.CompilerCommand

interface for invoking compilers using command line arguments


Method Summary
 boolean compile(String[] commandLineArguments, OutputStream outStream, OutputStream errStream)
          compile files specified by commandLineArguments
 

Method Detail

compile

public boolean compile(String[] commandLineArguments,
                       OutputStream outStream,
                       OutputStream errStream)
                throws SecurityException,
                       IllegalStateException
compile files specified by commandLineArguments
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