edu.mit.ai.psg.jeva
Class CompileUnit.JavaCInProcess

java.lang.Object
  |
  +--edu.mit.ai.psg.jeva.CompileUnit.JavaCInProcess
Enclosing class:
CompileUnit

public static class CompileUnit.JavaCInProcess
extends Object
implements CompileUnit.CompilerCommand


Field Summary
 boolean warnIfNoJavaCInClassPath
          initially true, set to false once warning is made
 
Constructor Summary
CompileUnit.JavaCInProcess()
           
 
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
 

Field Detail

warnIfNoJavaCInClassPath

public boolean warnIfNoJavaCInClassPath
initially true, set to false once warning is made
Constructor Detail

CompileUnit.JavaCInProcess

public CompileUnit.JavaCInProcess()
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