edu.rice.cs.drjava.model
Class JDKToolsLibrary
java.lang.Object
edu.rice.cs.drjava.model.JDKToolsLibrary
- Direct Known Subclasses:
- JarJDKToolsLibrary
public class JDKToolsLibrary
- extends Object
Provides dynamic access to the interface of a JDK's tools.jar classes. This level of indirection
eliminates the need to have specific tools.jar classes available statically (and the resulting need
to reset the JVM if they are not), and makes it possible to interface with multiple tools.jar
libraries simultaneously.
JDKToolsLibrary
protected JDKToolsLibrary(JavaVersion.FullVersion version,
CompilerInterface compiler,
Debugger debugger,
JavadocModel javadoc)
version
public JavaVersion.FullVersion version()
compiler
public CompilerInterface compiler()
debugger
public Debugger debugger()
javadoc
public JavadocModel javadoc()
isValid
public boolean isValid()
toString
public String toString()
- Overrides:
toString
in class Object
adapterForCompiler
protected static String adapterForCompiler(JavaVersion version)
adapterForDebugger
protected static String adapterForDebugger(JavaVersion version)
makeFromRuntime
public static JDKToolsLibrary makeFromRuntime(GlobalModel model)
- Create a JDKToolsLibrary from the runtime class path (or, more accurately, from the class
loader that loaded this class.