C# 클래스 Microsoft.Scripting.Hosting.TokenCategorizer

상속: System.Object
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
Initialize ( object state, ScriptSource scriptSource, SourceLocation initialLocation ) : void
InitializeLifetimeService ( ) : object
ReadToken ( ) : TokenInfo

Move the tokenizer past the next token and return its category.

ReadTokens ( int characterCount ) : IEnumerable

Get all tokens over a block of the stream.

The scanner should return full tokens. If startLocation + length lands in the middle of a token, the full token should be returned.

SkipToken ( ) : bool

Move the tokenizer past the next token.

SkipTokens ( int characterCount ) : bool

Scan from startLocation to at least startLocation + length.

This method is used to determine state at arbitrary startLocation.

비공개 메소드들

메소드 설명
TokenCategorizer ( Microsoft.Scripting.Runtime.TokenizerService tokenizer ) : System

메소드 상세

Initialize() 공개 메소드

public Initialize ( object state, ScriptSource scriptSource, SourceLocation initialLocation ) : void
state object
scriptSource ScriptSource
initialLocation SourceLocation
리턴 void

InitializeLifetimeService() 공개 메소드

public InitializeLifetimeService ( ) : object
리턴 object

ReadToken() 공개 메소드

Move the tokenizer past the next token and return its category.
public ReadToken ( ) : TokenInfo
리턴 TokenInfo

ReadTokens() 공개 메소드

Get all tokens over a block of the stream.

The scanner should return full tokens. If startLocation + length lands in the middle of a token, the full token should be returned.

public ReadTokens ( int characterCount ) : IEnumerable
characterCount int Tokens are read until at least given amount of characters is read or the stream ends.
리턴 IEnumerable

SkipToken() 공개 메소드

Move the tokenizer past the next token.
public SkipToken ( ) : bool
리턴 bool

SkipTokens() 공개 메소드

Scan from startLocation to at least startLocation + length.
This method is used to determine state at arbitrary startLocation.
public SkipTokens ( int characterCount ) : bool
characterCount int Tokens are read until at least given amount of characters is read or the stream ends.
리턴 bool