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