DocumentationTool, JavaCompilerpublic interface Tool
Tools can be located using ServiceLoader.load(Class).
| Modifier and Type | Method | Description |
|---|---|---|
Set<SourceVersion> |
getSourceVersions() |
Returns the source versions of the Java™ programming language
supported by this tool.
|
default String |
name() |
Returns the name of this tool, or an empty string if no name is provided.
|
int |
run(InputStream in,
OutputStream out,
OutputStream err,
String... arguments) |
Run the tool with the given I/O channels and arguments.
|
default String name()
int run(InputStream in, OutputStream out, OutputStream err, 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 toolNullPointerException - if the array of arguments contains
any null elements.Set<SourceVersion> getSourceVersions()
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-Debian+0-9b153-2