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 | |
---|---|---|
LineScanner | Initializes a new instance of the LineScanner class by using a default ParseOptions object. |
Top
Properties
Name | Description | |
---|---|---|
BatchSeparator | Gets or sets the string that is used to separate a single script into multiple batches. | |
IsSqlCmdModeEnabled | Gets or sets a value that indicates whether the scanner is enabled for Transact-SQL. |
Top
Methods
Name | Description | |
---|---|---|
DefineToken | Creates a token definition and adds it to the array of token definitions. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
PopulateDefiniton | Fills the TokenInfo object with the token definition. | |
ScanTokenAndProvideInfoAboutIt | Parses the next language token from the current line and returns information about it. | |
SetSource | Sets the line to be parsed. | |
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.