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)

필요에 따라 매크로 확장을 실행하여 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 파일을 읽지 못한 경우