SimpleName Class
Represents a simple name.
public class SimpleName : Expression, IAstNode, ISimpleName
- Inheritance:
- 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, params QualifiedName[])
Initializes a new instance of the SimpleName
class.
public SimpleName(string text, params QualifiedName[] typeArguments)
Parameter | Type | Description |
---|---|---|
text | 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
- bool:
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
- int:
The An integer value that identifies the type of AST node.
Text
Gets or sets the text value of the identifier.
TypeArguments
Gets the generic type arguments.
public IList<QualifiedName> TypeArguments { get; }
Property Value
- 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
- 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 | object | The |
Returns
- bool:
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
- 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
- int:
An integer value that specifies a hash value for this object.
ToString()
Returns a String
that represents the current Object
.
Inherited Members
- Expression.FromQualifiedName(IQualifiedName)
- Expression.FromQualifiedName(QualifiedName)
- AstNodeBase.Contains(int)
- AstNodeBase.FindChildNode(int)
- AstNodeBase.FindDescendantNode(int)
- AstNodeBase.ToTreeString(int)
- AstNodeBase.Children
- AstNodeBase.EndOffset
- AstNodeBase.HasChildren
- AstNodeBase.Length
- AstNodeBase.Parent
- AstNodeBase.Root
- AstNodeBase.StartOffset
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)