|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.compiler.NoCompilerAvailable
public class NoCompilerAvailable
A CompilerInterface implementation for signifying that no compiler is available.
| Field Summary | |
|---|---|
private static String |
MESSAGE
|
static CompilerInterface |
ONLY
|
| Constructor Summary | |
|---|---|
private |
NoCompilerAvailable()
|
| Method Summary | |
|---|---|
List<File> |
additionalBootClassPathForInteractions()
A compiler can instruct DrJava to include additional elements for the boot class path of the Interactions JVM. |
List<? extends DJError> |
compile(List<? extends File> files,
List<? extends File> classPath,
List<? extends File> sourcePath,
File destination,
List<? extends File> bootClassPath,
String sourceVersion,
boolean showWarnings)
Compile the given files. |
String |
getDescription()
Returns a one-line description of the compiler (such as the name and file location) |
FileFilter |
getFileFilter()
Return a file filter that can be used to open files this compiler supports. |
Set<String> |
getKeywordsForFile(File f)
Return the set of keywords that should be highlighted in the specified file. |
String |
getName()
Returns the name of this compiler, appropriate to show to the user. |
String |
getOpenAllFilesInFolderExtension()
Return the extension of the files that should be opened with the "Open Folder..." command. |
Set<String> |
getSourceFileExtensions()
Return the set of source file extensions that this compiler supports. |
String |
getSuggestedFileExtension()
Return the suggested file extension that will be appended to a file without extension. |
boolean |
isAvailable()
Indicates whether this compiler is actually available. |
boolean |
isSourceFileForThisCompiler(File f)
Always false |
boolean |
supportsLanguageLevels()
Return true if this compiler can be used in conjunction with the language level facility. |
String |
toString()
The toString() of this class is displayed in the "Compiler" drop down on the compiler tab. |
String |
transformCommands(String interactionsString)
Transform the command line to be interpreted into something the Interactions JVM can use. |
JavaVersion |
version()
The latest version of Java supported by the compiler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CompilerInterface ONLY
private static final String MESSAGE
| Constructor Detail |
|---|
private NoCompilerAvailable()
| Method Detail |
|---|
public boolean isAvailable()
CompilerInterfaceCompilerInterface.compile(java.util.List extends java.io.File>, java.util.List extends java.io.File>, java.util.List extends java.io.File>, java.io.File, java.util.List extends java.io.File>, java.lang.String, boolean) method should not fail due to class not being found.
isAvailable in interface CompilerInterface
public List<? extends DJError> compile(List<? extends File> files,
List<? extends File> classPath,
List<? extends File> sourcePath,
File destination,
List<? extends File> bootClassPath,
String sourceVersion,
boolean showWarnings)
CompilerInterface
compile in interface CompilerInterfacefiles - Source files to compile.classPath - Support jars or directories that should be on the classpath. If null, the default is used.sourcePath - Location of additional sources to be compiled on-demand. If null, the default is used.destination - Location (directory) for compiled classes. If null, the default in-place location is used.bootClassPath - The bootclasspath (contains Java API jars or directories); should be consistent with
sourceVersion
If null, the default is used.sourceVersion - The language version of the sources. Should be consistent with bootClassPath.
If null, the default is used.showWarnings - Whether compiler warnings should be shown or ignored.
public JavaVersion version()
CompilerInterface
version in interface CompilerInterfacepublic String getName()
CompilerInterface
getName in interface CompilerInterfacepublic String getDescription()
CompilerInterface
getDescription in interface CompilerInterfacepublic String toString()
toString in interface CompilerInterfacetoString in class Objectpublic List<File> additionalBootClassPathForInteractions()
CompilerInterface
additionalBootClassPathForInteractions in interface CompilerInterfacepublic String transformCommands(String interactionsString)
transformCommands in interface CompilerInterfaceinteractionsString - unprocessed command line
public boolean isSourceFileForThisCompiler(File f)
isSourceFileForThisCompiler in interface CompilerInterfacef - file to check if it is a source file
public Set<String> getSourceFileExtensions()
getSourceFileExtensions in interface CompilerInterfacepublic String getSuggestedFileExtension()
getSuggestedFileExtension in interface CompilerInterfacepublic FileFilter getFileFilter()
getFileFilter in interface CompilerInterfacepublic String getOpenAllFilesInFolderExtension()
getOpenAllFilesInFolderExtension in interface CompilerInterfacepublic boolean supportsLanguageLevels()
supportsLanguageLevels in interface CompilerInterfacepublic Set<String> getKeywordsForFile(File f)
getKeywordsForFile in interface CompilerInterfacef - file for which to return the keywords
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||