public class ToolProvider extends Object
ServiceLoader
.Modifier and Type | Method | Description |
---|---|---|
static DocumentationTool |
getSystemDocumentationTool() |
Returns the Java programming language documentation tool provided with this platform. |
static JavaCompiler |
getSystemJavaCompiler() |
Returns the Java programming language compiler provided with this platform. |
static ClassLoader |
getSystemToolClassLoader() |
Deprecated. This method is subject to removal in a future version of Java SE. |
public static JavaCompiler getSystemJavaCompiler()
The file manager returned by calling getStandardFileManager
on this compiler supports paths provided by any filesystem.
jdk.compiler
module if that module is available, and null
otherwise.null
if no compiler is providedpublic static DocumentationTool getSystemDocumentationTool()
The file manager returned by calling getStandardFileManager
on this tool supports paths provided by any filesystem.
jdk.javadoc
module if that module is available, and null
otherwise.null
if no documentation tool is provided@Deprecated(since="9") public static ClassLoader getSystemToolClassLoader()
system tool provider
or service loader
mechanisms to locate system tools as well as user-installed tools.null
if no such special loader is provided.null
.null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.compiler/javax/tools/ToolProvider.html