Class Token
This class represents a token within a HOCON (Human-Optimized Config Object Notation) configuration string.
Inherited Members
Namespace: Akka.Configuration.Hocon
Assembly: Akka.dll
Syntax
public class Token
Constructors
| Improve this Doc View SourceToken()
Initializes a new instance of the Token class.
Declaration
protected Token()
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. |
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
| Improve this Doc View SourceType
The type that represents this token.
Declaration
public TokenType Type { get; set; }
Property Value
Type | Description |
---|---|
TokenType |
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
| Improve this Doc View SourceKey(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. |
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. |
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. |