命令文件解析器
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-03-30 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]