LexicalStateCollection Class
Represents a collection of lexical states.
public class LexicalStateCollection : KeyedObservableCollection<LexicalStateBase>, IKeyedObservableCollection<LexicalStateBase>, IObservableCollection<LexicalStateBase>, ILexicalStateCollection
- Inheritance:
- object Collection<LexicalStateBase> SimpleObservableCollection<LexicalStateBase> KeyedObservableCollection<LexicalStateBase> object
- Implements:
- IKeyedObservableCollection<LexicalStateBase> IObservableCollection<LexicalStateBase> ILexicalStateCollection
Constructors
LexicalStateCollection(ILexer?)
Represents a collection of lexical states.
public LexicalStateCollection(ILexer? parentLexer)
| Parameter | Type | Description |
|---|---|---|
| parentLexer | ILexer | The parent ILexer that should be assigned to children, if any. |
Methods
GetAllLexicalStateTransitions()
Returns a collection containing all ILexicalStateTransition objects within the lexical states.
public IEnumerable<ILexicalStateTransition> GetAllLexicalStateTransitions()
Returns
Remarks
This method allows consumers to see which language transitions can be made within the lexer.
OnItemAdded(int, LexicalStateBase)
Called after an item has been added into the collection.
protected override void OnItemAdded(int index, LexicalStateBase value)
| Parameter | Type | Description |
|---|---|---|
| index | int | The index at which the item is added. |
| value | LexicalStateBase | The item that is added. |
OnItemRemoving(int, LexicalStateBase)
Called before an item is removed from the collection.
protected override void OnItemRemoving(int index, LexicalStateBase value)
| Parameter | Type | Description |
|---|---|---|
| index | int | The index at which the item is removed. |
| value | LexicalStateBase | The item that is removed. |
Inherited Members
- KeyedObservableCollection<LexicalStateBase>.Contains(string)
- KeyedObservableCollection<LexicalStateBase>.IndexOf(string)
- KeyedObservableCollection<LexicalStateBase>.Remove(string)
- KeyedObservableCollection<LexicalStateBase>.this[string]
- SimpleObservableCollection<LexicalStateBase>.BlockReentrancy()
- SimpleObservableCollection<LexicalStateBase>.CheckReadOnly()
- SimpleObservableCollection<LexicalStateBase>.CheckReentrancy()
- SimpleObservableCollection<LexicalStateBase>.ClearItems()
- SimpleObservableCollection<LexicalStateBase>.InsertItem(int, LexicalStateBase)
- SimpleObservableCollection<LexicalStateBase>.OnItemAdding(int, LexicalStateBase)
- SimpleObservableCollection<LexicalStateBase>.OnItemRemoved(int, LexicalStateBase)
- SimpleObservableCollection<LexicalStateBase>.RemoveItem(int)
- SimpleObservableCollection<LexicalStateBase>.SetItem(int, LexicalStateBase)
- SimpleObservableCollection<LexicalStateBase>.IsReadOnly
- SimpleObservableCollection<LexicalStateBase>.ItemAdding
- SimpleObservableCollection<LexicalStateBase>.ItemAdded
- SimpleObservableCollection<LexicalStateBase>.ItemRemoving
- SimpleObservableCollection<LexicalStateBase>.ItemRemoved
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()