CommandFileParser
public
class
CommandFileParser
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.command.CommandFileParser |
כלי לניתוח קובץ שמכיל קבוצה של שורות פקודה.
התחביר של הקובץ הנתון צריך להיות סדרה של שורות. כל שורה היא פקודה, כלומר הגדרה בתוספת האפשרויות שלה:
[options] config-name [options] config-name2 ...
סיכום
כיתות מוטמעות | |
|---|---|
class |
CommandFileParser.CommandLine
|
constructors ציבוריים | |
|---|---|
CommandFileParser()
|
|
methods ציבוריים | |
|---|---|
Collection<String>
|
getIncludedFiles()
החזרת קובצי הפקודות שנכללו בקובץ הפקודות האחרון שנותח. |
List<CommandFileParser.CommandLine>
|
parseFile(File file)
מנתח את הפקודות שמופיעות ב- |
constructors ציבוריים
CommandFileParser
public CommandFileParser ()
methods ציבוריים
getIncludedFiles
public Collection<String> getIncludedFiles ()
החזרת קובצי הפקודות שנכללו בקובץ הפקודות האחרון שנותח.
| החזרות | |
|---|---|
Collection<String> |
|
parseFile
public List<CommandFileParser.CommandLine> parseFile (File file)
מנתח את הפקודות שמופיעות ב-file, ומבצע הרחבות של מאקרו לפי הצורך
| פרמטרים | |
|---|---|
file |
File: File לניתוח |
| החזרות | |
|---|---|
List<CommandFileParser.CommandLine> |
רשימת הפקודות שנותחו |
| הקפצת הודעות שגיאה (throw) | |
|---|---|
ConfigurationException |
אם לא ניתן לנתח את תוכן הקובץ |
IOException |
אם קריאת הקובץ נכשלה |