Search Results for

    Show / Hide Table of Contents

    Class Parser

    This class contains methods used to parse HOCON (Human-Optimized Config Object Notation) configuration strings.

    Inheritance
    object
    Parser
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Configuration.Hocon
    Assembly: Akka.dll
    Syntax
    public class Parser

    Methods

    | Edit this page View Source

    Parse(string, Func<string, HoconRoot>)

    Parses the supplied HOCON configuration string into a root element.

    Declaration
    public static HoconRoot Parse(string text, Func<string, HoconRoot> includeCallback)
    Parameters
    Type Name Description
    string text

    The string that contains a HOCON configuration string.

    Func<string, HoconRoot> includeCallback

    Callback used to resolve includes

    Returns
    Type Description
    HoconRoot

    The root element created from the supplied HOCON configuration string.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unresolved substitution or an unknown token is encountered.

    Exception

    This exception is thrown if the end of the file has been reached while trying to read a value.

    | Edit this page View Source

    ParseArray(string)

    Retrieves the next array token from the tokenizer.

    Declaration
    public HoconArray ParseArray(string currentPath)
    Parameters
    Type Name Description
    string currentPath

    The location in the HOCON object hierarchy that the parser is currently reading.

    Returns
    Type Description
    HoconArray

    An array of elements retrieved from the token.

    | Edit this page View Source

    ParseValue(HoconValue, string)

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

    Declaration
    public void ParseValue(HoconValue owner, string currentPath)
    Parameters
    Type Name Description
    HoconValue owner

    The element to append the next token.

    string currentPath

    The location in the HOCON object hierarchy that the parser is currently reading.

    Exceptions
    Type Condition
    Exception

    This exception is thrown if the end of the file has been reached while trying to read a value.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET