|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.JDKDescriptor
public abstract class JDKDescriptor
A description of a JDK. Put subclasses of JDKDescriptor in the edu.rice.cs.drjava.model.compiler.descriptors package for DrJava to find.
| Nested Class Summary | |
|---|---|
private static class |
JDKDescriptor.None
Class for the singleton representing a JDK that doesn't have a descriptor. |
static class |
JDKDescriptor.Util
Utilities for JDK descriptors. |
| Field Summary | |
|---|---|
static JDKDescriptor |
NONE
Singleton representing a JDK that doesn't have a descriptor. |
| Constructor Summary | |
|---|---|
JDKDescriptor()
|
|
| Method Summary | |
|---|---|
abstract boolean |
containsCompiler(File f)
Return true if the file (jar file or directory) contains the compiler. |
abstract String |
getAdapterForCompiler()
Return the class name of the compiler adapter. |
String |
getAdapterForCompiler(JavaVersion.FullVersion guessedVersion)
Return the class name of the compiler adapter. |
abstract String |
getAdapterForDebugger()
Return the class name of the debugger adapter. |
String |
getAdapterForDebugger(JavaVersion.FullVersion guessedVersion)
Return the class name of the debugger adapter. |
abstract Iterable<File> |
getAdditionalCompilerFiles(File compiler)
Return the list of additional files required to use the compiler. |
String |
getDescription(JavaVersion.FullVersion version)
Return a description of this JDK. |
abstract JavaVersion |
getMinimumMajorVersion()
Return the minimum Java version required to use this JDK. |
abstract String |
getName()
Return the name of this JDK. |
abstract Iterable<File> |
getSearchDirectories()
Returns a list of directories that should be searched for tools.jar and classes.jar files. |
abstract Iterable<File> |
getSearchFiles()
Returns a list of files that should be searched if they contain a compiler. |
abstract Set<String> |
getToolsPackages()
Packages to shadow when loading a new tools.jar. |
JavaVersion.FullVersion |
guessVersion(File f)
Return the guessed version for the compiler in the specified file (jar file or directory). |
boolean |
isBaseForCompound()
True if this is a JDK that can serve as base for a compound JDK. |
abstract boolean |
isCompound()
True if this is a compound JDK and needs a fully featured JDK to operate. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final JDKDescriptor NONE
| Constructor Detail |
|---|
public JDKDescriptor()
| Method Detail |
|---|
public abstract String getName()
public abstract Set<String> getToolsPackages()
public abstract Iterable<File> getSearchDirectories()
public abstract Iterable<File> getSearchFiles()
public abstract boolean isCompound()
public boolean isBaseForCompound()
public abstract String getAdapterForCompiler()
public String getAdapterForCompiler(JavaVersion.FullVersion guessedVersion)
guessedVersion - the guessed version of the compiler
public abstract String getAdapterForDebugger()
public String getAdapterForDebugger(JavaVersion.FullVersion guessedVersion)
guessedVersion - the guessed version of the compiler
public abstract boolean containsCompiler(File f)
public JavaVersion.FullVersion guessVersion(File f)
public abstract JavaVersion getMinimumMajorVersion()
public abstract Iterable<File> getAdditionalCompilerFiles(File compiler)
throws FileNotFoundException
compiler - location where the compiler was fund
FileNotFoundExceptionpublic String getDescription(JavaVersion.FullVersion version)
version - the specific version of the compiler
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||