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
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
See Also
IsCaseSensitive
Indicates whether the explicit patterns in the pattern group are case sensitive.
public bool IsCaseSensitive { get; }
Property Value
- bool:
trueif the explicit patterns in the pattern group are case sensitive; otherwise,false.
See Also
Key
The string-based key that identifies the object.
LexicalScope
The DynamicLexicalScope, if any, that defines the pattern group.
public DynamicLexicalScope? LexicalScope { get; }
Property Value
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
See Also
LookAheadPattern
The text regular expression source for the look-ahead.
LookBehindPattern
The text regular expression source for the look-behind.
PatternType
A DynamicLexicalPatternType indicating the type of pattern.
public DynamicLexicalPatternType PatternType { get; set; }
Property Value
See Also
Patterns
The collection of lexical patterns.
public IDynamicLexicalPatternCollection Patterns { get; }
Property Value
See Also
Tag
The object that contains user-defined data about the object.
TokenId
A numeric ID that identifies the token that this pattern group assigns.
public int TokenId { get; set; }
Property Value
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.
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
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)