public interface Tool
| Modifier and Type | Method and Description |
|---|---|
Set<SourceVersion> |
getSourceVersions()
获取此工具支持的Java编程语言的源代码版本。
|
int |
run(InputStream in, OutputStream out, OutputStream err, String... arguments)
使用给定的I / O通道和参数运行该工具。
|
int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
out或err 。
in - “标准”输入;
使用System.in如果为null
out - “标准”输出;
如果为空,请使用System.out
err - “标准”错误;
如果为空,请使用System.err
arguments - 传递给工具的参数
NullPointerException - 如果参数数组包含任何
null元素。
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, 2014, Oracle and/or its affiliates. All rights reserved.