QualifiedName Class
Represents a qualified name.
public class QualifiedName : IQualifiedName
- Inheritance:
- object object
- Implements:
- IQualifiedName
Constructors
QualifiedName(QualifiedName)
Initializes an instance of the class.
public QualifiedName(QualifiedName qualifiedName)
| Parameter | Type | Description |
|---|---|---|
| qualifiedName | QualifiedName | The AST qualified name to examine. |
QualifiedName(string?, bool, params ISimpleName[])
Initializes an instance of the class.
public QualifiedName(string? alias, bool isGlobal, params ISimpleName[] identifiers)
| Parameter | Type | Description |
|---|---|---|
| alias | string | The optional alias that indicates the root of the qualified name. |
| isGlobal | bool | Whether the qualified name is rooted at the default global namespace. |
| identifiers | ISimpleName[] | The collection of identifiers for the qualified name. |
QualifiedName(string?, bool, int[]?, int, params ISimpleName[])
Initializes an instance of the class.
public QualifiedName(string? alias, bool isGlobal, int[]? arrayRankSpecifiers, int pointerLevel, params ISimpleName[] identifiers)
| Parameter | Type | Description |
|---|---|---|
| alias | string | The optional alias that indicates the root of the qualified name. |
| isGlobal | bool | Whether the qualified name is rooted at the default global namespace. |
| arrayRankSpecifiers | int[] | The array rank specifiers. |
| pointerLevel | int | The pointer level. |
| identifiers | ISimpleName[] | The collection of identifiers for the qualified name. |
QualifiedName(string?, bool, int[]?, int, string?, params ISimpleName[])
Initializes an instance of the class.
public QualifiedName(string? alias, bool isGlobal, int[]? arrayRankSpecifiers, int pointerLevel, string? elementName, params ISimpleName[] identifiers)
| Parameter | Type | Description |
|---|---|---|
| alias | string | The optional alias that indicates the root of the qualified name. |
| isGlobal | bool | Whether the qualified name is rooted at the default global namespace. |
| arrayRankSpecifiers | int[] | The array rank specifiers. |
| pointerLevel | int | The pointer level. |
| elementName | string | The element name, if specified when this qualified name is used within a tuple. |
| identifiers | ISimpleName[] | The collection of identifiers for the qualified name. |
Properties
Alias
The optional alias that indicates the root of the qualified name.
ArrayRankSpecifiers
The collection of array rank specifiers.
ElementName
The element name, if specified when this qualified name is used within a tuple.
HasArrayRankSpecifiers
Indicates whether the qualified name has at least one array rank specifier.
HasIdentifiers
Indicates whether the qualified name has at least one identifier.
Identifiers
The collection of identifiers for the qualified name.
IsGlobal
Indicates whether the qualified name is rooted at the default global namespace.
PointerLevel
The pointer level.
Methods
Clone()
Returns a deep clone of the object.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
ToString()
Returns the string representation of this object.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)