C# 클래스 Akka.Configuration.Hocon.HoconTokenizer

This class contains methods used to tokenize HOCON (Human-Optimized Config Object Notation) configuration strings.
상속: Tokenizer
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

공개 메소드들

메소드 설명
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