Search Results for

    Show / Hide Table of Contents

    Class Token

    This class represents a token within a HOCON (Human-Optimized Config Object Notation) configuration string.

    Inheritance
    object
    Token
    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 Token

    Constructors

    | Edit this page View Source

    Token()

    Initializes a new instance of the Token class.

    Declaration
    protected Token()
    | Edit this page View Source

    Token(TokenType)

    Initializes a new instance of the Token class.

    Declaration
    public Token(TokenType type)
    Parameters
    Type Name Description
    TokenType type

    The type of token to associate with.

    | Edit this page View Source

    Token(string)

    Initializes a new instance of the Token class.

    Declaration
    public Token(string value)
    Parameters
    Type Name Description
    string value

    The string literal value to associate with this token.

    Properties

    | Edit this page View Source

    Type

    The type that represents this token.

    Declaration
    public TokenType Type { get; set; }
    Property Value
    Type Description
    TokenType
    | Edit this page View Source

    Value

    The value associated with this token. If this token is a LiteralValue, then this property holds the string literal.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Key(string)

    Creates a key token with a given key.

    Declaration
    public static Token Key(string key)
    Parameters
    Type Name Description
    string key

    The key to associate with this token.

    Returns
    Type Description
    Token

    A key token with the given key.

    | Edit this page View Source

    LiteralValue(string)

    Creates a string literal token with a given value.

    Declaration
    public static Token LiteralValue(string value)
    Parameters
    Type Name Description
    string value

    The value to associate with this token.

    Returns
    Type Description
    Token

    A string literal token with the given value.

    | Edit this page View Source

    Substitution(string)

    Creates a substitution token with a given path.

    Declaration
    public static Token Substitution(string path)
    Parameters
    Type Name Description
    string path

    The path to associate with this token.

    Returns
    Type Description
    Token

    A substitution token with the given path.

    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