java.lang.Object
javax.tools.ToolProvider
Provides methods for locating tool providers, for example, providers of compilers. This class complements the functionality of
ServiceLoader.- Since:
- 1.6
Method Summary
Modifier and TypeMethodDescriptionstaticDocumentationToolReturns the Java programming language documentation tool provided with this platform.staticJavaCompilerReturns the Java programming language compiler provided with this platform.staticClassLoaderDeprecated.This method is subject to removal in a future version of Java SE.
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 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
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.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