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. |
See Also
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
- 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
See Also
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.
See Also
IsCaseSensitive
Gets 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
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.
See Also
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.
See Also
LexicalState
Gets the DynamicLexicalState that defines the pattern group.
public DynamicLexicalState LexicalState { get; }
Property Value
- DynamicLexicalState:
The DynamicLexicalState that defines the pattern group.
See Also
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.
See Also
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.
See Also
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.
See Also
Patterns
Gets the collection of lexical patterns.
public IDynamicLexicalPatternCollection Patterns { get; }
Property Value
- IDynamicLexicalPatternCollection:
A IDynamicLexicalPatternCollection containing the lexical patterns.
See Also
Tag
Gets or sets the object that contains user-defined data about the object.
public object Tag { get; set; }
Property Value
Remarks
Any type derived from the object class can be assigned to this property.
See Also
TokenId
Gets or sets a numeric ID that identifies the token that this pattern group assigns.
public int TokenId { get; set; }
Property Value
- int:
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.
See Also
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.
See Also
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.
See Also
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()