命令檔案解析器
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) 解析 |
公共構造函數
命令檔案解析器
public CommandFileParser ()
公共方法
取得包含的文件
publicgetIncludedFiles ()
傳回最後解析的命令檔案所包含的命令檔。
退貨 | |
---|---|
解析檔案
publicparseFile (File file)
解析file
中包含的命令,根據需要進行宏擴展
參數 | |
---|---|
file | File :要解析的ERROR(/File) |
退貨 | |
---|---|
已解析指令的列表 |
投擲 | |
---|---|
| 如果讀取檔案失敗 |
ConfigurationException | 如果無法解析文件內容 |
命令檔案解析器
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) 解析 |
公共構造函數
命令檔案解析器
public CommandFileParser ()
公共方法
取得包含的文件
publicgetIncludedFiles ()
傳回最後解析的命令檔案所包含的命令檔。
退貨 | |
---|---|
解析檔案
publicparseFile (File file)
解析file
中包含的命令,根據需要進行宏擴展
參數 | |
---|---|
file | File :要解析的ERROR(/File) |
退貨 | |
---|---|
已解析指令的列表 |
投擲 | |
---|---|
| 如果讀取檔案失敗 |
ConfigurationException | 如果無法解析文件內容 |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[]
[]