1 33 34 package edu.rice.cs.drjava.model.compiler; 36 37 import java.io.IOException ; 38 import java.io.File ; 39 import java.util.List ; 40 import edu.rice.cs.drjava.model.OpenDefinitionsDocument; 41 42 48 public interface CompilerModel { 49 50 51 public static final String [] EXTENSIONS = new String []{".java", ".dj0", ".dj1", ".dj2"}; 52 53 55 56 public Object getCompilerLock(); 57 58 60 63 public void addListener(CompilerListener listener); 64 65 69 public void removeListener(CompilerListener listener); 70 71 72 public void removeAllListeners(); 73 74 76 79 public void compileAll() throws IOException ; 80 81 84 public void compileProject() throws IOException ; 85 86 90 public void compile(List <OpenDefinitionsDocument> docs) throws IOException ; 91 92 96 public void compile(OpenDefinitionsDocument doc) throws IOException ; 97 98 100 101 public CompilerErrorModel getCompilerErrorModel(); 102 103 104 public int getNumErrors(); 105 106 107 public void resetCompilerErrors(); 108 109 111 117 public CompilerInterface[] getAvailableCompilers(); 118 119 123 public CompilerInterface getActiveCompiler(); 124 125 130 public void setActiveCompiler(CompilerInterface compiler); 131 } | Popular Tags |