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.
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 |
Returns
- System.Boolean:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetChildrenEnumerator()
Retrieves an IEnumerator
object that can iterate the child IAstNode objects in this node.
protected override IEnumerator<IAstNode> GetChildrenEnumerator()
Returns
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 currentObject
.
Explicit Interface Implementations
ISimpleName.Clone()
Returns a deep clone of the object.
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
- Expression.FromQualifiedName(IQualifiedName)
- Expression.FromQualifiedName(QualifiedName)
- AstNodeBase.Contains(Int32)
- AstNodeBase.FindChildNode(Int32)
- AstNodeBase.FindDescendantNode(Int32)
- AstNodeBase.ToTreeString(Int32)
- AstNodeBase.Children
- AstNodeBase.EndOffset
- AstNodeBase.HasChildren
- AstNodeBase.Length
- AstNodeBase.Parent
- AstNodeBase.Root
- AstNodeBase.StartOffset
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetType()
- System.Object.MemberwiseClone()