In This Article

DynamicLexicalPatternGroup Class

Encapsulates a collection of DynamicLexicalPattern objects.

public class DynamicLexicalPatternGroup : IKeyedObject
Inheritance:
object object
Implements:
IKeyedObject

Constructors

DynamicLexicalPatternGroup(DynamicLexicalPatternType, string?, IClassificationType?)

Initializes an instance of the class.

public DynamicLexicalPatternGroup(DynamicLexicalPatternType patternType, string? tokenKey, IClassificationType? classificationType)
Parameter Type Description
patternType DynamicLexicalPatternType

A DynamicLexicalPatternType indicating the type of pattern.

tokenKey string

The key of the token that this pattern group assigns.

classificationType IClassificationType

The IClassificationType that this pattern group uses.

See Also

Properties

CaseSensitivity

A nullable CaseSensitivity determining how the lexer should handle case sensitivity for patterns in the pattern group.

public CaseSensitivity? CaseSensitivity { get; set; }

Property Value

CaseSensitivity?

Remarks

A null value indicates that the setting should be inherited from the parent LexicalState

See Also

ClassificationType

The IClassificationType to use for tokens within the pattern group.

public IClassificationType? ClassificationType { get; set; }

Property Value

IClassificationType

See Also

IsCaseSensitive

Indicates whether the explicit patterns in the pattern group are case sensitive.

public bool IsCaseSensitive { get; }

Property Value

bool:

true if the explicit patterns in the pattern group are case sensitive; otherwise, false.

See Also

Key

The string-based key that identifies the object.

public string? Key { get; set; }

Property Value

string

See Also

LexicalScope

The DynamicLexicalScope, if any, that defines the pattern group.

public DynamicLexicalScope? LexicalScope { get; }

Property Value

DynamicLexicalScope

Remarks

If this value is null, the pattern group was not defined by a lexical scope.

See Also

LexicalState

The DynamicLexicalState that defines the pattern group.

public DynamicLexicalState? LexicalState { get; }

Property Value

DynamicLexicalState

See Also

LookAheadPattern

The text regular expression source for the look-ahead.

public string? LookAheadPattern { get; set; }

Property Value

string

See Also

LookBehindPattern

The text regular expression source for the look-behind.

public string? LookBehindPattern { get; set; }

Property Value

string

See Also

PatternType

A DynamicLexicalPatternType indicating the type of pattern.

public DynamicLexicalPatternType PatternType { get; set; }

Property Value

DynamicLexicalPatternType

See Also

Patterns

The collection of lexical patterns.

public IDynamicLexicalPatternCollection Patterns { get; }

Property Value

IDynamicLexicalPatternCollection

See Also

Tag

The object that contains user-defined data about the object.

public object? Tag { get; set; }

Property Value

object

See Also

TokenId

A numeric ID that identifies the token that this pattern group assigns.

public int TokenId { get; set; }

Property Value

int

Remarks

This property is similar to the TokenKey property although TokenKey is a string, while TokenID is a number which can be cast to an enumeration.

See Also

TokenKey

The key of the token that this pattern group assigns.

public string? TokenKey { get; }

Property Value

string

See Also

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

See Also

Inherited Members

Extension Methods

See Also