C# Class TSQL.TSQLTokenizer

显示文件 Open project: bruce-dunwiddie/tsql-parser Class Usage Examples

Public Methods

Method Description
Next ( ) : TSQLToken
ParseTokens ( string tsqlText, bool useQuotedIdentifiers = false, bool includeWhitespace = false ) : List
Read ( ) : bool
TSQLTokenizer ( TextReader tsqlStream ) : System
TSQLTokenizer ( string tsqlText ) : System

Private Methods

Method Description
CheckDisposed ( ) : void

Checks to see if object has already been disposed, which would make calling methods on the object invalid.

DetermineTokenType ( string tokenValue, int startPosition, int endPosition ) : TSQLToken
Dispose ( bool disposing ) : void

Closes and releases all related resources.

IDisposable ( ) : void
SetCurrent ( ) : void

Method Details

Next() public method

public Next ( ) : TSQLToken
return TSQL.Tokens.TSQLToken

ParseTokens() public static method

public static ParseTokens ( string tsqlText, bool useQuotedIdentifiers = false, bool includeWhitespace = false ) : List
tsqlText string
useQuotedIdentifiers bool
includeWhitespace bool
return List

Read() public method

public Read ( ) : bool
return bool

TSQLTokenizer() public method

public TSQLTokenizer ( TextReader tsqlStream ) : System
tsqlStream TextReader
return System

TSQLTokenizer() public method

public TSQLTokenizer ( string tsqlText ) : System
tsqlText string
return System