public interface Tool
Tools can be located using ServiceLoader.
| Modifier and Type | Method and Description |
|---|---|
Set |
getSourceVersions()
Gets the source versions of the Java™ programming language supported by this tool.
|
int |
run(InputStream
Run the tool with the given I/O channels and arguments.
|
int run(InputStreamin, OutputStream out, OutputStream err, String ... arguments)
out or
err in some unspecified format.
in - "standard" input; use System.in if null
out - "standard" output; use System.out if null
err - "standard" error; use System.err if null
arguments - arguments to pass to the tool
NullPointerException - if the array of arguments contains any
null elements.
Set<SourceVersion > getSourceVersions()