DocumentationTool
JavaCompiler
public interface Tool
可以使用ServiceLoader.load(Class)找到工具。
ServiceLoader.load(Class)
Set<SourceVersion>
getSourceVersions()
default String
name()
int
run(InputStream in, OutputStream out, OutputStream err, String... arguments)
default String name()
int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
out
err
in
arguments
NullPointerException
null
Set<SourceVersion> getSourceVersions()