Search Results for

    Show / Hide Table of Contents

    Class HoconTokenizer

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

    Inheritance
    object
    Tokenizer
    HoconTokenizer
    Inherited Members
    Tokenizer.Push()
    Tokenizer.Pop()
    Tokenizer.EoF
    Tokenizer.Matches(string)
    Tokenizer.PickErrorLine(out int)
    Tokenizer.Take(int)
    Tokenizer.Matches(params string[])
    Tokenizer.Peek()
    Tokenizer.Take()
    Tokenizer.PullWhitespace()
    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 HoconTokenizer : Tokenizer

    Constructors

    | Edit this page View Source

    HoconTokenizer(string)

    Initializes a new instance of the HoconTokenizer class.

    Declaration
    public HoconTokenizer(string text)
    Parameters
    Type Name Description
    string text

    The string that contains the text to tokenize.

    Methods

    | Edit this page View Source

    IsArrayEnd()

    Determines whether the current token matches an ArrayEnd token.

    Declaration
    public bool IsArrayEnd()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsArrayStart()

    Determines whether the current token matches an ArrayStart token.

    Declaration
    public bool IsArrayStart()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsAssignment()

    Determines whether the current token matches an Assign token.

    Declaration
    public bool IsAssignment()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsComma()

    Determines whether the current token matches an Comma token.

    Declaration
    public bool IsComma()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsDot()

    Determines whether the current token matches an Dot token.

    Declaration
    public bool IsDot()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsEndOfObject()

    Determines whether the current token matches an ObjectEnd token.

    Declaration
    public bool IsEndOfObject()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsInclude()

    Determines whether the current token is the start of an include directive.

    Declaration
    public bool IsInclude()
    Returns
    Type Description
    bool

    true if token is the start of an include directive; otherwise, false.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown escape code is encountered.

    | Edit this page View Source

    IsObjectStart()

    Determines whether the current token matches an ObjectStart token.

    Declaration
    public bool IsObjectStart()
    Returns
    Type Description
    bool

    true if the token matches; otherwise, false.

    | Edit this page View Source

    IsSpaceOrTab()

    Determines whether the current token is a space or a tab.

    Declaration
    public bool IsSpaceOrTab()
    Returns
    Type Description
    bool

    true if token is the start of a space or a tab; otherwise, false.

    | Edit this page View Source

    IsStartOfComment()

    Determines whether the current token is the start of a comment.

    Declaration
    public bool IsStartOfComment()
    Returns
    Type Description
    bool

    true if token is the start of a comment; otherwise, false.

    | Edit this page View Source

    IsStartOfQuotedText()

    Determines whether the current token matches the start of a quoted string.

    Declaration
    public bool IsStartOfQuotedText()
    Returns
    Type Description
    bool

    true if token matches; otherwise, false.

    | Edit this page View Source

    IsStartOfTripleQuotedText()

    Determines whether the current token matches the start of a triple quoted string.

    Declaration
    public bool IsStartOfTripleQuotedText()
    Returns
    Type Description
    bool

    true if token matches; otherwise, false.

    | Edit this page View Source

    IsStartSimpleValue()

    Determines whether the current token is the start of an unquoted string literal.

    Declaration
    public bool IsStartSimpleValue()
    Returns
    Type Description
    bool

    true if token is the start of an unquoted string literal; otherwise, false.

    | Edit this page View Source

    IsSubstitutionStart()

    Determines whether the current token is the start of a substitution.

    Declaration
    public bool IsSubstitutionStart()
    Returns
    Type Description
    bool

    true if token is the start of a substitution; otherwise, false.

    | Edit this page View Source

    IsUnquotedKey()

    Determines whether the current token is an unquoted key.

    Declaration
    public bool IsUnquotedKey()
    Returns
    Type Description
    bool

    true if token is an unquoted key; otherwise, false.

    | Edit this page View Source

    IsUnquotedKeyStart()

    Determines whether the current token is the start of an unquoted key.

    Declaration
    public bool IsUnquotedKeyStart()
    Returns
    Type Description
    bool

    true if token is the start of an unquoted key; otherwise, false.

    | Edit this page View Source

    IsWhitespace()

    Determines whether the current token is whitespace.

    Declaration
    public bool IsWhitespace()
    Returns
    Type Description
    bool

    true if token is whitespace; otherwise, false.

    | Edit this page View Source

    IsWhitespaceOrComment()

    Determines whether the current token is whitespace or a comment.

    Declaration
    public bool IsWhitespaceOrComment()
    Returns
    Type Description
    bool

    true if token is whitespace or a comment; otherwise, false.

    | Edit this page View Source

    PullArrayEnd()

    Retrieves a ArrayEnd token from the tokenizer's current position.

    Declaration
    public Token PullArrayEnd()
    Returns
    Type Description
    Token

    A ArrayEnd token from the tokenizer's current position.

    | Edit this page View Source

    PullArrayStart()

    Retrieves a ArrayStart token from the tokenizer's current position.

    Declaration
    public Token PullArrayStart()
    Returns
    Type Description
    Token

    A ArrayStart token from the tokenizer's current position.

    | Edit this page View Source

    PullAssignment()

    Retrieves a Assign token from the tokenizer's current position.

    Declaration
    public Token PullAssignment()
    Returns
    Type Description
    Token

    A Assign token from the tokenizer's current position.

    | Edit this page View Source

    PullComma()

    Retrieves a Comma token from the tokenizer's current position.

    Declaration
    public Token PullComma()
    Returns
    Type Description
    Token

    A Comma token from the tokenizer's current position.

    | Edit this page View Source

    PullComment()

    Retrieves a Comment token from the tokenizer's current position.

    Declaration
    public Token PullComment()
    Returns
    Type Description
    Token

    A Comment token from the tokenizer's current position.

    | Edit this page View Source

    PullDot()

    Retrieves a Dot token from the tokenizer's current position.

    Declaration
    public Token PullDot()
    Returns
    Type Description
    Token

    A Dot token from the tokenizer's current position.

    | Edit this page View Source

    PullEndOfObject()

    Retrieves a ObjectEnd token from the tokenizer's current position.

    Declaration
    public Token PullEndOfObject()
    Returns
    Type Description
    Token

    A ObjectEnd token from the tokenizer's current position.

    | Edit this page View Source

    PullInclude()

    TBD

    Declaration
    public Token PullInclude()
    Returns
    Type Description
    Token

    TBD

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown escape code is encountered.

    | Edit this page View Source

    PullNext()

    Retrieves the next token from the string.

    Declaration
    public Token PullNext()
    Returns
    Type Description
    Token

    The next token contained in the string.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown token or escape code is encountered.

    | Edit this page View Source

    PullQuotedKey()

    Retrieves a quoted Key token from the tokenizer's current position.

    Declaration
    public Token PullQuotedKey()
    Returns
    Type Description
    Token

    A Key token from the tokenizer's current position.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown escape code is encountered.

    | Edit this page View Source

    PullQuotedText()

    Retrieves a quoted LiteralValue token from the tokenizer's current position.

    Declaration
    public Token PullQuotedText()
    Returns
    Type Description
    Token

    A LiteralValue token from the tokenizer's current position.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown escape code is encountered.

    | Edit this page View Source

    PullRestOfLine()

    Retrieves the current line from where the current token is located in the string.

    Declaration
    public string PullRestOfLine()
    Returns
    Type Description
    string

    The current line from where the current token is located.

    | Edit this page View Source

    PullSimpleValue()

    Retrieves the current token as a string literal token.

    Declaration
    public Token PullSimpleValue()
    Returns
    Type Description
    Token

    A token that contains the string literal value.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if the tokenizer cannot find a string literal value from the current token.

    | Edit this page View Source

    PullSpaceOrTab()

    Retrieves the current token, including whitespace and tabs, as a string literal token.

    Declaration
    public Token PullSpaceOrTab()
    Returns
    Type Description
    Token

    A token that contains the string literal value.

    | Edit this page View Source

    PullStartOfObject()

    Retrieves a ObjectStart token from the tokenizer's current position.

    Declaration
    public Token PullStartOfObject()
    Returns
    Type Description
    Token

    A ObjectStart token from the tokenizer's current position.

    | Edit this page View Source

    PullSubstitution()

    Retrieves a Substitute token from the tokenizer's current position.

    Declaration
    public Token PullSubstitution()
    Returns
    Type Description
    Token

    A Substitute token from the tokenizer's current position.

    | Edit this page View Source

    PullTripleQuotedText()

    Retrieves a triple quoted LiteralValue token from the tokenizer's current position.

    Declaration
    public Token PullTripleQuotedText()
    Returns
    Type Description
    Token

    A LiteralValue token from the tokenizer's current position.

    | Edit this page View Source

    PullUnquotedKey()

    Retrieves an unquoted Key token from the tokenizer's current position.

    Declaration
    public Token PullUnquotedKey()
    Returns
    Type Description
    Token

    A Key token from the tokenizer's current position.

    | Edit this page View Source

    PullValue()

    Retrieves a value token from the tokenizer's current position.

    Declaration
    public Token PullValue()
    Returns
    Type Description
    Token

    A value token from the tokenizer's current position.

    Exceptions
    Type Condition
    FormatException

    This exception is thrown if an unknown token is encountered. Expected values include the following: Null literal, Array, Quoted Text, Unquoted Text, Triple quoted Text, Object or End of array.

    | Edit this page View Source

    PullWhitespaceAndComments()

    Advances the tokenizer to the next non-whitespace, non-comment token.

    Declaration
    public void PullWhitespaceAndComments()

    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