Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.OutputStream;
- /**
- * Interface for the bot to call a compiler.
- * This is not restricted to a particular compiler;
- * rather, this just requires the implementer to invoke the compiler
- * with a list of optional arguments, and can choose to catch any propagated
- * exceptions or throw them up the call.
- * @author sadjava
- * Created: 1/29/2015
- */
- public interface Compiler
- {
- /**
- * Invoke the compiler.
- * This calls whichever compiler the implementing class handles
- * @param inputFile the input file to compile
- * @param infoStream the output stream to send information to
- * @param errorStream the stream to output errors to
- * @param options the compiler options that can be used
- * @return true if there were no compiler errors, false if errors exist
- * @throws Exception if a exception needs to be thrown
- */
- public boolean invokeCompiler(File inputFile, OutputStream infoStream, OutputStream errorStream,String ...options) throws Exception;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement