Class SpecialTokenInfo
Provides special information about the found token
Inherited Members
Namespace: FluentMigrator.Runner.BatchParser
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class SpecialTokenInfo
Constructors
SpecialTokenInfo(int, int, string, object)
Initializes a new instance of the SpecialTokenInfo class.
Declaration
public SpecialTokenInfo(int index, int length, string token, object opaque = null)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index to the first character that is assigned to the |
int | length | The content length that is assigned to the |
string | token | The found token |
object | opaque | An opaque (token specific) value |
Remarks
The index
may not point to the real token text and the length
might be longer
than the token
itself. This is usually the case when the token should be the only text on the line,
but is instead surrounded by whitespace.
Properties
Index
Gets the index to the first character that is assigned to the Token
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
int |
Length
Gets the content length that is assigned to the Token
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
int |
Opaque
Gets an opaque (token specific) value
Declaration
[CanBeNull]
public object Opaque { get; }
Property Value
Type | Description |
---|---|
object |
Token
Gets the found token
Declaration
[NotNull]
public string Token { get; }
Property Value
Type | Description |
---|---|
string |