C# 클래스 YAML.Parser

Class for parsing YAML files.
파일 보기 프로젝트 열기: agardiner/hfmcmd

보호된 프로퍼티들

프로퍼티 타입 설명
_log log4net.ILog
_preprocessor Preprocessor
_stack Stack

공개 메소드들

메소드 설명
ParseFile ( string fileName, object>.Dictionary variables ) : Node

Attempts to parse the YAML file contents of templateFile into a YAML Node object.

보호된 메소드들

메소드 설명
ParseValue ( string key, string value ) : Node

Converts a string value to a string, int or boolean type.

ProcessDictionaryElement ( Node context, string line ) : Node

Processes the current line into an existing Dictionary.

ProcessLine ( string line ) : void

Process a single line of text into the Node that is the current context.

ProcessListElement ( Node context, string line ) : Node

Processes the current line into an existing list.

메소드 상세

ParseFile() 공개 메소드

Attempts to parse the YAML file contents of templateFile into a YAML Node object.
public ParseFile ( string fileName, object>.Dictionary variables ) : Node
fileName string
variables object>.Dictionary
리턴 Node

ParseValue() 보호된 메소드

Converts a string value to a string, int or boolean type.
protected ParseValue ( string key, string value ) : Node
key string
value string The string that is to be parsed.
리턴 Node

ProcessDictionaryElement() 보호된 메소드

Processes the current line into an existing Dictionary.
protected ProcessDictionaryElement ( Node context, string line ) : Node
context Node Node containing the Dictionary to which the /// element should be added.
line string The line containing the key: value pair.
리턴 Node

ProcessLine() 보호된 메소드

Process a single line of text into the Node that is the current context.
protected ProcessLine ( string line ) : void
line string
리턴 void

ProcessListElement() 보호된 메소드

Processes the current line into an existing list.
protected ProcessListElement ( Node context, string line ) : Node
context Node Node containing the list to which the /// element should be added.
line string The line containing the list element (complete /// with leading '-').
리턴 Node

프로퍼티 상세

_log 보호되어 있는 정적으로 프로퍼티

protected static ILog,log4net _log
리턴 log4net.ILog

_preprocessor 보호되어 있는 프로퍼티

protected Preprocessor,YAML _preprocessor
리턴 Preprocessor

_stack 보호되어 있는 프로퍼티

protected Stack _stack
리턴 Stack