1 33 34 package edu.rice.cs.drjava.model.compiler; 35 36 import java.io.File ; 37 import java.util.List ; 38 import java.util.Arrays ; 39 import edu.rice.cs.util.UnexpectedException; 40 41 44 public class NoCompilerAvailable implements CompilerInterface { 45 public static final CompilerInterface ONLY = new NoCompilerAvailable(); 46 private static final String MESSAGE = "No compiler is available."; 47 48 private NoCompilerAvailable() { } 49 50 62 public List <? extends CompilerError> compile(List <? extends File > files, List <? extends File > classPath, 63 List <? extends File > sourcePath, File destination, 64 List <? extends File > bootClassPath, String sourceVersion, boolean showWarnings) { 65 return Arrays.asList(new CompilerError(MESSAGE, false)); 66 } 67 68 public boolean isAvailable() { return true; } 69 70 public String getName() { return "(no compiler available)"; } 71 72 public String toString() { return getName(); } 73 74 } 75 | Popular Tags |