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 a new instance of the DynamicLexicalPatternGroup 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.

Properties

CaseSensitivity

Gets or sets a nullable CaseSensitivity determining how the lexer should handle case sensitivity for patterns in the pattern group.

public CaseSensitivity? CaseSensitivity { get; set; }

Property Value

Nullable<CaseSensitivity>:

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

Remarks

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

ClassificationType

Gets or sets the IClassificationType to use for tokens within the pattern group.

public IClassificationType ClassificationType { get; set; }

Property Value

IClassificationType:

The IClassificationType to use for tokens within the pattern group.

IsCaseSensitive

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

public bool IsCaseSensitive { get; }

Property Value

Boolean:

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

Key

Gets or sets a string-based key that identifies the object.

public string Key { get; set; }

Property Value

String:

A string-based key that identifies the object.

LexicalScope

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

public DynamicLexicalScope LexicalScope { get; }

Property Value

DynamicLexicalScope:

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

Remarks

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

LexicalState

Gets the DynamicLexicalState that defines the pattern group.

public DynamicLexicalState LexicalState { get; }

Property Value

DynamicLexicalState:

The DynamicLexicalState that defines the pattern group.

LookAheadPattern

Gets or sets the text regular expression source for the look-ahead.

public string LookAheadPattern { get; set; }

Property Value

String:

The text regular expression source for the look-ahead.

LookBehindPattern

Gets or sets the text regular expression source for the look-behind.

public string LookBehindPattern { get; set; }

Property Value

String:

The text regular expression source for the look-behind.

Patterns

Gets the collection of lexical patterns.

public IDynamicLexicalPatternCollection Patterns { get; }

Property Value

IDynamicLexicalPatternCollection:

A IDynamicLexicalPatternCollection containing the lexical patterns.

PatternType

Gets or sets a DynamicLexicalPatternType indicating the type of pattern.

public DynamicLexicalPatternType PatternType { get; set; }

Property Value

DynamicLexicalPatternType:

A DynamicLexicalPatternType indicating the type of pattern.

Tag

Gets or sets the object that contains user-defined data about the object.

public object Tag { get; set; }

Property Value

Object:

An Object that contains user-defined data about the object. The default is null.

Remarks

Any type derived from the Object class can be assigned to this property.

TokenId

Gets or sets a numeric ID that identifies the token that this pattern group assigns.

public int TokenId { get; set; }

Property Value

Int32:

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

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.

TokenKey

Gets the key of the token that this pattern group assigns.

public string TokenKey { get; }

Property Value

String:

The key of the token that this pattern group assigns.

Methods

ToString()

Creates and returns a string representation of the current object.

public override string ToString()

Returns

String:

A string representation of the current object.

Inherited Members

See Also