C# Class Akka.Configuration.Hocon.Parser

This class contains methods used to parse HOCON (Human-Optimized Config Object Notation) configuration strings.
Mostrar archivo Open project: rogeralsing/akka.net

Public Methods

Method Description
Parse ( string text, HoconRoot>.Func includeCallback ) : Akka.Configuration.Hocon.HoconRoot

Parses the supplied HOCON configuration string into a root element.

ParseArray ( string currentPath ) : HoconArray

Retrieves the next array token from the tokenizer.

ParseValue ( HoconValue owner, string currentPath ) : void

Retrieves the next value token from the tokenizer and appends it to the supplied element owner.

Private Methods

Method Description
IgnoreComma ( ) : void
ParseKeyContent ( HoconValue value, string currentPath ) : void
ParseObject ( HoconValue owner, bool root, string currentPath ) : void
ParseSubstitution ( string value ) : Akka.Configuration.Hocon.HoconSubstitution
ParseText ( string text, HoconRoot>.Func includeCallback ) : Akka.Configuration.Hocon.HoconRoot
ParseTrailingWhitespace ( HoconValue owner ) : void

Method Details

Parse() public static method

Parses the supplied HOCON configuration string into a root element.
/// This exception is thrown when an unresolved substitution is encountered. /// It also occurs when the end of the file has been reached while trying /// to read a value. ///
public static Parse ( string text, HoconRoot>.Func includeCallback ) : Akka.Configuration.Hocon.HoconRoot
text string The string that contains a HOCON configuration string.
includeCallback HoconRoot>.Func Callback used to resolve includes
return Akka.Configuration.Hocon.HoconRoot

ParseArray() public method

Retrieves the next array token from the tokenizer.
public ParseArray ( string currentPath ) : HoconArray
currentPath string The location in the HOCON object hierarchy that the parser is currently reading.
return HoconArray

ParseValue() public method

Retrieves the next value token from the tokenizer and appends it to the supplied element owner.
End of file reached while trying to read a value
public ParseValue ( HoconValue owner, string currentPath ) : void
owner HoconValue The element to append the next token.
currentPath string The location in the HOCON object hierarchy that the parser is currently reading.
return void