CommandFileParser
public
class
CommandFileParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.CommandFileParser |
用於剖析包含指令列組合的檔案。
指定檔案的語法應為一系列的文字列。每行都是指令,也就是設定加上選項:
[options] config-name [options] config-name2 ...
摘要
巢狀類別 | |
---|---|
class |
CommandFileParser.CommandLine
|
公用建構函式 | |
---|---|
CommandFileParser()
|
公用方法 | |
---|---|
|
getIncludedFiles()
傳回上次剖析的指令檔案所包含的指令檔案。 |
|
parseFile(File file)
剖析 |
公用建構函式
CommandFileParser
public CommandFileParser ()
公用方法
getIncludedFiles
publicgetIncludedFiles ()
傳回上次剖析的指令檔案所包含的指令檔案。
傳回 | |
---|---|
|
parseFile
publicparseFile (File file)
剖析 file
中包含的指令,視需要執行巨集展開
參數 | |
---|---|
file |
File :要剖析的 ERROR(/File) |
傳回 | |
---|---|
|
已剖析的指令清單 |
擲回 | |
---|---|
|
無法讀取檔案 |
ConfigurationException |
無法剖析檔案內容 |