Scanner Class

Scans Transact-SQL searching for individual units of code or tokens.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.SqlParser.Parser.Scanner

Namespace:  Microsoft.SqlServer.Management.SqlParser.Parser
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Class Scanner
'Usage
Dim instance As Scanner
public class Scanner
public ref class Scanner
type Scanner =  class end
public class Scanner

The Scanner type exposes the following members.

Constructors

  Name Description
Public method Scanner Initializes a new instance of the Scanner class using the specified parser options.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetNext Returns the next token, internal Lexer state, start position, and end position.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetSource Sets the source text to be scanned.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.