edu.rice.cs.drjava.model
Class JDKToolsLibrary

java.lang.Object
  extended by 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.


Constructor Summary
protected JDKToolsLibrary(JavaVersion.FullVersion version, CompilerInterface compiler, Debugger debugger, JavadocModel javadoc)
           
 
Method Summary
protected static String adapterForCompiler(JavaVersion version)
           
protected static String adapterForDebugger(JavaVersion version)
           
 CompilerInterface compiler()
           
 Debugger debugger()
           
 boolean isValid()
           
 JavadocModel javadoc()
           
static JDKToolsLibrary makeFromRuntime(GlobalModel model)
          Create a JDKToolsLibrary from the runtime class path (or, more accurately, from the class loader that loaded this class.
 String toString()
           
 JavaVersion.FullVersion version()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDKToolsLibrary

protected JDKToolsLibrary(JavaVersion.FullVersion version,
                          CompilerInterface compiler,
                          Debugger debugger,
                          JavadocModel javadoc)
Method Detail

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.