public class ToolProvider extends Object
ServiceLoader
.Constructor | Description |
---|---|
ToolProvider() |
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.
Use the
system tool provider or
service loader mechanisms to
locate system tools as well as user-installed tools. |
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 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
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps