|
||||||||||
| 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 java.lang.String |
MESSAGE
|
static CompilerInterface |
ONLY
|
| Constructor Summary | |
|---|---|
private |
NoCompilerAvailable()
|
| Method Summary | |
|---|---|
java.util.List<java.io.File> |
additionalBootClassPathForInteractions()
A compiler can instruct DrJava to include additional elements for the boot class path of the Interactions JVM. |
java.util.List<? extends DJError> |
compile(java.util.List<? extends java.io.File> files,
java.util.List<? extends java.io.File> classPath,
java.util.List<? extends java.io.File> sourcePath,
java.io.File destination,
java.util.List<? extends java.io.File> bootClassPath,
java.lang.String sourceVersion,
boolean showWarnings)
Compile the given files. |
java.lang.String |
getDescription()
Returns a one-line description of the compiler (such as the name and file location) |
javax.swing.filechooser.FileFilter |
getFileFilter()
Return a file filter that can be used to open files this compiler supports. |
java.util.Set<java.lang.String> |
getKeywordsForFile(java.io.File f)
Return the set of keywords that should be highlighted in the specified file. |
java.lang.String |
getName()
Returns the name of this compiler, appropriate to show to the user. |
java.lang.String |
getOpenAllFilesInFolderExtension()
Return the extension of the files that should be opened with the "Open Folder..." command. |
java.util.Set<java.lang.String> |
getSourceFileExtensions()
Return the set of source file extensions that this compiler supports. |
java.lang.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(java.io.File f)
Always false |
boolean |
supportsLanguageLevels()
Return true if this compiler can be used in conjunction with the language level facility. |
java.lang.String |
toString()
The toString() of this class is displayed in the "Compiler" drop down on the compiler tab. |
java.lang.String |
transformCommands(java.lang.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 java.lang.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 java.util.List<? extends DJError> compile(java.util.List<? extends java.io.File> files,
java.util.List<? extends java.io.File> classPath,
java.util.List<? extends java.io.File> sourcePath,
java.io.File destination,
java.util.List<? extends java.io.File> bootClassPath,
java.lang.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 java.lang.String getName()
CompilerInterface
getName in interface CompilerInterfacepublic java.lang.String getDescription()
CompilerInterface
getDescription in interface CompilerInterfacepublic java.lang.String toString()
toString in interface CompilerInterfacetoString in class java.lang.Objectpublic java.util.List<java.io.File> additionalBootClassPathForInteractions()
CompilerInterface
additionalBootClassPathForInteractions in interface CompilerInterfacepublic java.lang.String transformCommands(java.lang.String interactionsString)
transformCommands in interface CompilerInterfaceinteractionsString - unprocessed command line
public boolean isSourceFileForThisCompiler(java.io.File f)
isSourceFileForThisCompiler in interface CompilerInterfacef - file to check if it is a source file
public java.util.Set<java.lang.String> getSourceFileExtensions()
getSourceFileExtensions in interface CompilerInterfacepublic java.lang.String getSuggestedFileExtension()
getSuggestedFileExtension in interface CompilerInterfacepublic javax.swing.filechooser.FileFilter getFileFilter()
getFileFilter in interface CompilerInterfacepublic java.lang.String getOpenAllFilesInFolderExtension()
getOpenAllFilesInFolderExtension in interface CompilerInterfacepublic boolean supportsLanguageLevels()
supportsLanguageLevels in interface CompilerInterfacepublic java.util.Set<java.lang.String> getKeywordsForFile(java.io.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 | |||||||||