In This Article

QualifiedName Class

An AST node for a qualified name.

public class QualifiedName : AstNodeBase, IAstNode, IQualifiedName
Inheritance:
object AstNodeBase object
Implements:
IAstNode IQualifiedName

Remarks

This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).

Constructors

QualifiedName()

Initializes an instance of the class.

public QualifiedName()

QualifiedName(string?, bool, params SimpleName[])

Initializes an instance of the class.

public QualifiedName(string? alias, bool isGlobal, params SimpleName[] 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 SimpleName[]

The collection of identifiers for the qualified name.

Properties

Alias

The alias.

public string? Alias { get; set; }

Property Value

string

ArrayRankSpecifiers

The collection of array rank specifiers.

public IList<int> ArrayRankSpecifiers { get; }

Property Value

IList<int>

ElementName

The element name, if specified when this qualified name is used within a tuple.

public string? ElementName { get; set; }

Property Value

string

HasArrayRankSpecifiers

Indicates whether the ArrayRankSpecifiers collection property contains at least one item.

public bool HasArrayRankSpecifiers { get; }

Property Value

bool:

true if there is at least one item in the collection; otherwise, false.

HasIdentifiers

Indicates whether the Identifiers collection property contains at least one item.

public bool HasIdentifiers { get; }

Property Value

bool:

true if there is at least one item in the collection; otherwise, false.

Id

An integer value that identifies the type of AST node, if known.

public override int Id { get; }

Property Value

int

Remarks

This class' default implementation always returns 0.

Identifiers

The collection of identifiers.

public IList<SimpleName> Identifiers { get; }

Property Value

IList<SimpleName>

IsDynamic

Indicates whether the qualified name is for a dynamic object.

public bool IsDynamic { get; }

Property Value

bool

IsGlobal

The is global.

public bool IsGlobal { get; set; }

Property Value

bool

PointerLevel

The pointer level.

public int PointerLevel { get; set; }

Property Value

int

Value

The string-based value for the AST node.

public override string? Value { get; set; }

Property Value

string

Methods

Clone()

Returns a deep clone of the object.

public QualifiedName Clone()

Returns

QualifiedName:

The object that was created.

CreateDynamic()

Creates a qualified name for a dynamic object.

public static QualifiedName CreateDynamic()

Returns

QualifiedName

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:

true if the specified object is equal to the current object; otherwise, false.

GetChildrenEnumerator()

Retrieves an IEnumerator object that can iterate the child IAstNode objects in this node.

protected override IEnumerator<IAstNode>? GetChildrenEnumerator()

Returns

IEnumerator<IAstNode>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods