Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import java.io.File;
  2. import java.io.OutputStream;
  3.  
  4. /**
  5. * Interface for the bot to call a compiler.
  6. * This is not restricted to a particular compiler;
  7. * rather, this just requires the implementer to invoke the compiler
  8. * with a list of optional arguments, and can choose to catch any propagated
  9. * exceptions or throw them up the call.
  10. * @author sadjava
  11. * Created: 1/29/2015
  12. */
  13. public interface Compiler
  14. {
  15. /**
  16. * Invoke the compiler.
  17. * This calls whichever compiler the implementing class handles
  18. * @param inputFile the input file to compile
  19. * @param infoStream the output stream to send information to
  20. * @param errorStream the stream to output errors to
  21. * @param options the compiler options that can be used
  22. * @return true if there were no compiler errors, false if errors exist
  23. * @throws Exception if a exception needs to be thrown
  24. */
  25. public boolean invokeCompiler(File inputFile, OutputStream infoStream, OutputStream errorStream,String ...options) throws Exception;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement