C# Класс Akka.Configuration.Hocon.HoconTokenizer

This class contains methods used to tokenize HOCON (Human-Optimized Config Object Notation) configuration strings.
Наследование: Tokenizer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HoconTokenizer ( string text ) : System

Initializes a new instance of the HoconTokenizer class.

IsArrayEnd ( ) : bool

Determines whether the current token matches an TokenType.ArrayEnd token.

IsArrayStart ( ) : bool

Determines whether the current token matches an TokenType.ArrayStart token.

IsAssignment ( ) : bool

Determines whether the current token matches an TokenType.Assign token.

IsComma ( ) : bool

Determines whether the current token matches an TokenType.Comma token.

IsDot ( ) : bool

Determines whether the current token matches an TokenType.Dot token.

IsEndOfObject ( ) : bool

Determines whether the current token matches an TokenType.ObjectEnd token.

IsInclude ( ) : bool
IsObjectStart ( ) : bool

Determines whether the current token matches an TokenType.ObjectStart token.

IsSpaceOrTab ( ) : bool

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

IsStartOfComment ( ) : bool
IsStartOfQuotedText ( ) : bool

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

IsStartOfTripleQuotedText ( ) : bool

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

IsStartSimpleValue ( ) : bool

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

IsSubstitutionStart ( ) : bool

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

IsUnquotedKey ( ) : bool

Determines whether the current token is an unquoted key.

IsUnquotedKeyStart ( ) : bool

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

IsWhitespace ( ) : bool
IsWhitespaceOrComment ( ) : bool
PullArrayEnd ( ) : Akka.Configuration.Hocon.Token

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

PullArrayStart ( ) : Akka.Configuration.Hocon.Token

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

PullAssignment ( ) : Akka.Configuration.Hocon.Token

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

PullComma ( ) : Akka.Configuration.Hocon.Token

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

PullComment ( ) : Akka.Configuration.Hocon.Token

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

PullDot ( ) : Akka.Configuration.Hocon.Token

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

PullEndOfObject ( ) : Akka.Configuration.Hocon.Token

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

PullInclude ( ) : Akka.Configuration.Hocon.Token
PullNext ( ) : Akka.Configuration.Hocon.Token

Retrieves the next token from the string.

PullQuotedKey ( ) : Akka.Configuration.Hocon.Token

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

PullQuotedText ( ) : Akka.Configuration.Hocon.Token

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

PullRestOfLine ( ) : string

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

PullSimpleValue ( ) : Akka.Configuration.Hocon.Token

Retrieves the current token as a string literal token.

PullSpaceOrTab ( ) : Akka.Configuration.Hocon.Token

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

PullStartOfObject ( ) : Akka.Configuration.Hocon.Token

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

PullSubstitution ( ) : Akka.Configuration.Hocon.Token

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

PullTripleQuotedText ( ) : Akka.Configuration.Hocon.Token

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

PullUnquotedKey ( ) : Akka.Configuration.Hocon.Token

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

PullValue ( ) : Akka.Configuration.Hocon.Token

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

PullWhitespaceAndComments ( ) : void

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

Приватные методы

Метод Описание
IsStartOfQuotedKey ( ) : bool
IsUnquotedText ( ) : bool
IsValue ( ) : bool

Determines whether the current token is a value.

PullEscapeSequence ( ) : string
PullUnquotedText ( ) : Akka.Configuration.Hocon.Token

Описание методов

HoconTokenizer() публичный Метод

Initializes a new instance of the HoconTokenizer class.
public HoconTokenizer ( string text ) : System
text string The string that contains the text to tokenize.
Результат System

IsArrayEnd() публичный Метод

Determines whether the current token matches an TokenType.ArrayEnd token.
public IsArrayEnd ( ) : bool
Результат bool

IsArrayStart() публичный Метод

Determines whether the current token matches an TokenType.ArrayStart token.
public IsArrayStart ( ) : bool
Результат bool

IsAssignment() публичный Метод

Determines whether the current token matches an TokenType.Assign token.
public IsAssignment ( ) : bool
Результат bool

IsComma() публичный Метод

Determines whether the current token matches an TokenType.Comma token.
public IsComma ( ) : bool
Результат bool

IsDot() публичный Метод

Determines whether the current token matches an TokenType.Dot token.
public IsDot ( ) : bool
Результат bool

IsEndOfObject() публичный Метод

Determines whether the current token matches an TokenType.ObjectEnd token.
public IsEndOfObject ( ) : bool
Результат bool

IsInclude() публичный Метод

public IsInclude ( ) : bool
Результат bool

IsObjectStart() публичный Метод

Determines whether the current token matches an TokenType.ObjectStart token.
public IsObjectStart ( ) : bool
Результат bool

IsSpaceOrTab() публичный Метод

Determines whether the current token is a space or a tab.
public IsSpaceOrTab ( ) : bool
Результат bool

IsStartOfComment() публичный Метод

public IsStartOfComment ( ) : bool
Результат bool

IsStartOfQuotedText() публичный Метод

Determines whether the current token matches the start of a quoted string.
public IsStartOfQuotedText ( ) : bool
Результат bool

IsStartOfTripleQuotedText() публичный Метод

Determines whether the current token matches the start of a triple quoted string.
public IsStartOfTripleQuotedText ( ) : bool
Результат bool

IsStartSimpleValue() публичный Метод

Determines whether the current token is the start of an unquoted string literal.
public IsStartSimpleValue ( ) : bool
Результат bool

IsSubstitutionStart() публичный Метод

Determines whether the current token is the start of a substitution.
public IsSubstitutionStart ( ) : bool
Результат bool

IsUnquotedKey() публичный Метод

Determines whether the current token is an unquoted key.
public IsUnquotedKey ( ) : bool
Результат bool

IsUnquotedKeyStart() публичный Метод

Determines whether the current token is the start of an unquoted key.
public IsUnquotedKeyStart ( ) : bool
Результат bool

IsWhitespace() публичный Метод

public IsWhitespace ( ) : bool
Результат bool

IsWhitespaceOrComment() публичный Метод

public IsWhitespaceOrComment ( ) : bool
Результат bool

PullArrayEnd() публичный Метод

Retrieves a TokenType.ArrayEnd token from the tokenizer's current position.
public PullArrayEnd ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullArrayStart() публичный Метод

Retrieves a TokenType.ArrayStart token from the tokenizer's current position.
public PullArrayStart ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullAssignment() публичный Метод

Retrieves a TokenType.Assign token from the tokenizer's current position.
public PullAssignment ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullComma() публичный Метод

Retrieves a TokenType.Comma token from the tokenizer's current position.
public PullComma ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullComment() публичный Метод

Retrieves a TokenType.Comment token from the tokenizer's current position.
public PullComment ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullDot() публичный Метод

Retrieves a TokenType.Dot token from the tokenizer's current position.
public PullDot ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullEndOfObject() публичный Метод

Retrieves a TokenType.ObjectEnd token from the tokenizer's current position.
public PullEndOfObject ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullInclude() публичный Метод

public PullInclude ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullNext() публичный Метод

Retrieves the next token from the string.
/// This exception is thrown when an unknown token is encountered. ///
public PullNext ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullQuotedKey() публичный Метод

Retrieves a quoted TokenType.Key token from the tokenizer's current position.
public PullQuotedKey ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullQuotedText() публичный Метод

Retrieves a quoted TokenType.LiteralValue token from the tokenizer's current position.
public PullQuotedText ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullRestOfLine() публичный Метод

Retrieves the current line from where the current token is located in the string.
public PullRestOfLine ( ) : string
Результат string

PullSimpleValue() публичный Метод

Retrieves the current token as a string literal token.
/// This exception is thrown when the tokenizer cannot find /// a string literal value from the current token. ///
public PullSimpleValue ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullSpaceOrTab() публичный Метод

Retrieves the current token, including whitespace and tabs, as a string literal token.
public PullSpaceOrTab ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullStartOfObject() публичный Метод

Retrieves a TokenType.ObjectStart token from the tokenizer's current position.
public PullStartOfObject ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullSubstitution() публичный Метод

Retrieves a TokenType.Substitute token from the tokenizer's current position.
public PullSubstitution ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullTripleQuotedText() публичный Метод

Retrieves a triple quoted TokenType.LiteralValue token from the tokenizer's current position.
public PullTripleQuotedText ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullUnquotedKey() публичный Метод

Retrieves an unquoted TokenType.Key token from the tokenizer's current position.
public PullUnquotedKey ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullValue() публичный Метод

Retrieves a value token from the tokenizer's current position.
/// Expected value: Null literal, Array, Quoted Text, Unquoted Text, /// Triple quoted Text, Object or End of array ///
public PullValue ( ) : Akka.Configuration.Hocon.Token
Результат Akka.Configuration.Hocon.Token

PullWhitespaceAndComments() публичный Метод

Advances the tokenizer to the next non-whitespace, non-comment token.
public PullWhitespaceAndComments ( ) : void
Результат void