is new.
JavaCompiler
public interface Tool
Common interface for tools that can be invoked from a Java program. A tool is traditionally a command line program such as a compiler. The set of tools available
with
on
a platform is defined by the vendor.
Tools can be located using
ServiceLoader.load(Class)
.
ToolProvider.installedTools.
Since:
1.6
| Method Summary | |
|---|---|
Set
<
SourceVersion
|
getSourceVersions
()
Gets the source versions of the Java programming language supported by this tool.
|
|
|
int
|
run
(
InputStream
in,
OutputStream
out,
OutputStream
err,
String
Run the tool with the given I/O channels and arguments.
|
| Method Detail |
|---|
int run(InputStream in,OutputStream
Writerout,OutputStream
Writererr, String... arguments)
... args)
either
arguments
Throws:
NullPointerException
- if the array of arguments contains any null elements.
getSourceVersions
Set
<
SourceVersion
>
getSourceVersions
()
Gets the source versions of the Java programming language supported by this tool.
Returns:
a set of supported source versions