AstNodeIdProviderBase Class
Represents an abstract base class for an object that provides static IDs for the AST nodes of an ISyntaxLanguage.
public abstract class AstNodeIdProviderBase : IAstNodeIdProvider, IIdProvider
- Inheritance:
- System.Object Object
- Implements:
- IAstNodeIdProvider IIdProvider
Constructors
AstNodeIdProviderBase()
protected AstNodeIdProviderBase()
Properties
MaxId
Gets the maximum ID returned by this provider.
public abstract int MaxId { get; }
Property Value
- System.Int32:
The maximum ID returned by this provider.
MinId
Gets the minimum ID returned by this provider.
public abstract int MinId { get; }
Property Value
- System.Int32:
The minimum ID returned by this provider.
Methods
ContainsId(Int32)
Returns whether the specified ID value is valid for this ID provider.
public abstract bool ContainsId(int id)
Parameter | Type | Description |
---|---|---|
id | System.Int32 | The ID to examine. |
Returns
- System.Boolean:
true
if the ID value is valid; otherwise,false
GetDescription(Int32)
Returns the actual string representation for the specified ID.
public abstract string GetDescription(int id)
Parameter | Type | Description |
---|---|---|
id | System.Int32 | The ID to examine. |
Returns
- System.String:
The actual string representation for the specified ID.
GetKey(Int32)
Returns the string-based key for the specified ID.
public abstract string GetKey(int id)
Parameter | Type | Description |
---|---|---|
id | System.Int32 | The ID to examine. |
Returns
- System.String:
The string-based key for the specified ID.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()