- java.lang.Object
- javax.tools.ToolProvider
public classToolProviderextendsObject
Provides methods for locating tool providers, for example, providers of compilers. This class complements the functionality ofServiceLoader.- Since:
- 1.6
Constructor Summary
Constructors Constructor Description ToolProvider()
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description staticDocumentationToolgetSystemDocumentationTool()Returns the Java™ programming language documentation tool provided with this platform.staticJavaCompilergetSystemJavaCompiler()Returns the Java™ programming language compiler provided with this platform.staticClassLoadergetSystemToolClassLoader()Deprecated.This method is subject to removal in a future version of Java SE.
Method Detail
getSystemJavaCompiler
public static JavaCompiler getSystemJavaCompiler()
Returns the Java™ programming language compiler provided with this platform.The file manager returned by calling
getStandardFileManageron this compiler supports paths provided by anyfilesystem.- Implementation Note:
- This implementation returns the compiler provided by the
jdk.compilermodule if that module is available, andnullotherwise. - Returns:
- the compiler provided with this platform or
nullif no compiler is provided
getSystemDocumentationTool
public static DocumentationTool getSystemDocumentationTool()
Returns the Java™ programming language documentation tool provided with this platform.The file manager returned by calling
getStandardFileManageron this tool supports paths provided by anyfilesystem.- Implementation Note:
- This implementation returns the tool provided by the
jdk.javadocmodule if that module is available, andnullotherwise. - Returns:
- the documentation tool provided with this platform or
nullif no documentation tool is provided
getSystemToolClassLoader
@Deprecated(since="9")public static ClassLoader getSystemToolClassLoader()
Deprecated.This method is subject to removal in a future version of Java SE. Use thesystem tool providerorservice loadermechanisms to locate system tools as well as user-installed tools.Returns a class loader that may be used to load system tools, ornullif no such special loader is provided.- Implementation Requirements:
- This implementation always returns
null. - Returns:
- a class loader, or
null