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 |
如果無法讀取檔案 |