ToolProvider (Java SE 16 & JDK 16) (original) (raw)
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
Method Summary
Returns the Java programming language documentation tool provided with this platform.
Returns the Java programming language compiler provided with this platform.
Methods declared in class java.lang.Object
[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)
Method Details
getSystemJavaCompiler
public static JavaCompiler getSystemJavaCompiler()
Returns the Java programming language compiler provided with this platform.
The file manager returned by callinggetStandardFileManager on this compiler supports paths provided by anyfilesystem.
Implementation Note:
This implementation returns the compiler provided by thejdk.compiler
module if that module is available, andnull
otherwise.
Returns:
the compiler provided with this platform ornull
if no compiler is providedgetSystemDocumentationTool
Returns the Java programming language documentation tool provided with this platform.
The file manager returned by callinggetStandardFileManager on this tool supports paths provided by anyfilesystem.
Implementation Note:
This implementation returns the tool provided by thejdk.javadoc
module if that module is available, andnull
otherwise.
Returns:
the documentation tool provided with this platform ornull
if no documentation tool is providedgetSystemToolClassLoader
Returns a class loader that may be used to load system tools, or
null
if no such special loader is provided.
Implementation Requirements:
This implementation always returnsnull
.
Returns:
a class loader, ornull