LineScanner Class

Scans Transact-SQL statements searching for individual units of code (tokens).

Inheritance Hierarchy

System.Object
  Babel.LineScanner

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

Syntax

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

The LineScanner type exposes the following members.

Constructors

  Name Description
Public method LineScanner Initializes a new instance of the LineScanner class by using a default ParseOptions object.

Top

Properties

  Name Description
Public property BatchSeparator Gets or sets the string that is used to separate a single script into multiple batches.
Public property IsSqlCmdModeEnabled Gets or sets a value that indicates whether the scanner is enabled for Transact-SQL.

Top

Methods

  Name Description
Public methodStatic member DefineToken Creates a token definition and adds it to the array of token definitions.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method PopulateDefiniton Fills the TokenInfo object with the token definition.
Public method ScanTokenAndProvideInfoAboutIt Parses the next language token from the current line and returns information about it.
Public method SetSource Sets the line to be parsed.
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.

See Also

Reference