java.lang.Object
javax.tools.ToolProvider
public class ToolProvider extends Object
Provides methods for locating tool providers, for example,
providers of compilers. This class complements the
functionality of
ServiceLoader.- Since:
- 1.6
-
Constructor Summary
Constructors Constructor Description ToolProvider()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and Type Method Description static DocumentationToolgetSystemDocumentationTool()Returns the Java™ programming language documentation tool provided with this platform.static JavaCompilergetSystemJavaCompiler()Returns the Java™ programming language compiler provided with this platform.static ClassLoadergetSystemToolClassLoader()Deprecated.This method is subject to removal in a future version of Java SE.
-
Constructor Details
-
ToolProvider
Deprecated, for removal: This API element is subject to removal in a future version.Do not call.
-
-
Method Details
-
getSystemJavaCompiler
Returns the Java™ programming language compiler provided with this platform.The file manager returned by calling
getStandardFileManageron this compiler supports paths provided by any filesystem.- 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
Returns the Java™ programming language documentation tool provided with this platform.The file manager returned by calling
getStandardFileManageron this tool supports paths provided by any filesystem.- 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.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
-