C# 클래스 SmtpServer.Protocol.Text.TokenEnumerator

파일 보기 프로젝트 열기: cosullivan/SmtpServer 1 사용 예제들

공개 메소드들

메소드 설명
AsText ( ) : string

Returns a text string which is the combined tokens.

Peek ( int count ) : Token

Peek at a token in the stream.

Take ( int count = 1 ) : Token

Take the given number of tokens.

TakeWhile ( bool>.Func predicate ) : void

Take tokens in the stream while the given predicate is true.

TakeWhile ( TokenKind kind ) : void

Take tokens in the stream while the token kind is the same as the supplied kind.

TokenEnumerator ( IEnumerable tokenizer ) : System

Constructor.

TokenEnumerator ( TokenReader tokenReader ) : System

Constructor.

비공개 메소드들

메소드 설명
Checkpoint ( ) : ITokenEnumeratorCheckpoint

Create a checkpoint on the enumerator that can be rolled back to.

TokenEnumerator ( ) : System

Constructor.

메소드 상세

AsText() 공개 메소드

Returns a text string which is the combined tokens.
public AsText ( ) : string
리턴 string

Peek() 공개 메소드

Peek at a token in the stream.
public Peek ( int count ) : Token
count int The number of tokens to look ahead.
리턴 Token

Take() 공개 메소드

Take the given number of tokens.
public Take ( int count = 1 ) : Token
count int The number of tokens to consume.
리턴 Token

TakeWhile() 공개 메소드

Take tokens in the stream while the given predicate is true.
public TakeWhile ( bool>.Func predicate ) : void
predicate bool>.Func The predicate to use for evaluating whether or not to consume a token.
리턴 void

TakeWhile() 공개 메소드

Take tokens in the stream while the token kind is the same as the supplied kind.
public TakeWhile ( TokenKind kind ) : void
kind TokenKind The token kind to test against to determine whether the token should be consumed.
리턴 void

TokenEnumerator() 공개 메소드

Constructor.
public TokenEnumerator ( IEnumerable tokenizer ) : System
tokenizer IEnumerable The tokenizer to retrieve the tokens from.
리턴 System

TokenEnumerator() 공개 메소드

Constructor.
public TokenEnumerator ( TokenReader tokenReader ) : System
tokenReader TokenReader The token reader to pull the tokens from.
리턴 System