CommandFileParser
public
class
CommandFileParser
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.command.CommandFileParser |
用于解析包含一组命令行的文件的解析器。
给定文件的语法应为一系列行。每行都是一个命令;也就是说,一个 配置及其选项:
[options] config-name [options] config-name2 ...
摘要
嵌套类 | |
|---|---|
class |
CommandFileParser.CommandLine
|
公共构造函数 | |
|---|---|
CommandFileParser()
|
|
公共方法 | |
|---|---|
Collection<String>
|
getIncludedFiles()
返回上次解析的命令文件包含的命令文件。 |
List<CommandFileParser.CommandLine>
|
parseFile(File file)
解析 |
公共构造函数
CommandFileParser
public CommandFileParser ()
公共方法
getIncludedFiles
public Collection<String> getIncludedFiles ()
返回上次解析的命令文件包含的命令文件。
| 返回 | |
|---|---|
Collection<String> |
|
parseFile
public List<CommandFileParser.CommandLine> parseFile (File file)
解析 file 中包含的命令,并根据需要执行宏展开
| 参数 | |
|---|---|
file |
File:要解析的 File |
| 返回 | |
|---|---|
List<CommandFileParser.CommandLine> |
解析后的命令列表 |
| 抛出 | |
|---|---|
ConfigurationException |
如果无法解析文件内容 |
IOException |
如果无法读取文件 |