In This Article

SimpleName Class

Represents a simple name.

public class SimpleName : Expression, IAstNode, ISimpleName
Inheritance:
System.Object AstNodeBase Expression Object
Implements:
IAstNode ISimpleName

Remarks

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

Constructors

SimpleName()

Initializes a new instance of the SimpleName class.

public SimpleName()

SimpleName(String, QualifiedName[])

Initializes a new instance of the SimpleName class.

public SimpleName(string text, params QualifiedName[] typeArguments)
Parameter Type Description
text System.String

The text value of the identifier.

typeArguments QualifiedName[]

The collection of optional generic type arguments for the identifier.

Properties

HasTypeArguments

Returns whether the TypeArguments collection property contains at least one item.

public bool HasTypeArguments { get; }

Property Value

System.Boolean:

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

Id

Gets the An integer value that identifies the type of AST node.

public override int Id { get; }

Property Value

System.Int32:

The An integer value that identifies the type of AST node.

Text

Gets or sets the text value of the identifier.

public string Text { get; set; }

Property Value

System.String:

The text value of the identifier.

TypeArguments

Gets the generic type arguments.

public IList<QualifiedName> TypeArguments { get; }

Property Value

System.Collections.Generic.IList<QualifiedName>:

The generic type arguments.

Value

Gets or sets the string-based value for the AST node.

public override string Value { get; set; }

Property Value

System.String:

The string-based value for the AST node.

Methods

Clone()

Returns a deep clone of the object.

public SimpleName Clone()

Returns

SimpleName:

The object that was created.

Equals(Object)

Determines whether the specified Object is equal to the current Object.

public override bool Equals(object obj)
Parameter Type Description
obj System.Object

The Object to compare to the current Object.

Returns

System.Boolean:

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

System.Collections.Generic.IEnumerator<IAstNode>:

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

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

System.Int32:

An integer value that specifies a hash value for this object.

ToString()

Returns a String that represents the current Object.

public override string ToString()

Returns

System.String:

A String that represents the current Object.

Explicit Interface Implementations

ISimpleName.Clone()

Returns a deep clone of the object.

ISimpleName ISimpleName.Clone()

Returns

ISimpleName:

The object that was created.

ISimpleName.TypeArguments

Gets the collection of optional generic type arguments for the identifier.

IList<IQualifiedName> ISimpleName.TypeArguments { get; }

Returns

System.Collections.Generic.IList<IQualifiedName>:

The collection of optional generic type arguments for the identifier.

Inherited Members