C# Класс YAML.Parser

Class for parsing YAML files.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_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