C# Class NArrange.Core.CodeElements.CodeElement

Code element base class.
Inheritance: ICodeElement
Afficher le fichier Open project: MarcStan/NArrange Class Usage Examples

Méthodes publiques

Méthode Description
Accept ( ICodeElementVisitor visitor ) : void

Allows an ICodeElementVisitor to process (or visit) this element.

See the Gang of Four Visitor design pattern.

AddChild ( ICodeElement childElement ) : void

Adds a child to this element.

ClearChildren ( ) : void

Removes all child elements.

Clone ( ) : object

Creates a new object that is a copy of the current instance.

InsertChild ( int index, ICodeElement childElement ) : void

Inserts a child element at the specified index.

RemoveChild ( ICodeElement childElement ) : void

Removes a child from this element.

ToString ( ) : string

Gets the string representation of this object.

ToString ( string format ) : string

Gets a string representation of this object using the specified format string.

this ( string key ) : object

Gets or sets an extended property.

Méthodes protégées

Méthode Description
CodeElement ( ) : System.Collections.Generic

Default constructor.

DoClone ( ) : CodeElement

Creates a clone of the instance and assigns any state.

Method Details

Accept() public abstract méthode

Allows an ICodeElementVisitor to process (or visit) this element.
See the Gang of Four Visitor design pattern.
public abstract Accept ( ICodeElementVisitor visitor ) : void
visitor ICodeElementVisitor Visitor to accept the code element.
Résultat void

AddChild() public méthode

Adds a child to this element.
public AddChild ( ICodeElement childElement ) : void
childElement ICodeElement Child to add.
Résultat void

ClearChildren() public méthode

Removes all child elements.
public ClearChildren ( ) : void
Résultat void

Clone() public méthode

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Résultat object

CodeElement() protected méthode

Default constructor.
protected CodeElement ( ) : System.Collections.Generic
Résultat System.Collections.Generic

DoClone() protected abstract méthode

Creates a clone of the instance and assigns any state.
protected abstract DoClone ( ) : CodeElement
Résultat CodeElement

InsertChild() public méthode

Inserts a child element at the specified index.
public InsertChild ( int index, ICodeElement childElement ) : void
index int Index to insert at.
childElement ICodeElement Element to insert.
Résultat void

RemoveChild() public méthode

Removes a child from this element.
public RemoveChild ( ICodeElement childElement ) : void
childElement ICodeElement Child element to remove.
Résultat void

ToString() public méthode

Gets the string representation of this object.
public ToString ( ) : string
Résultat string

ToString() public méthode

Gets a string representation of this object using the specified format string.
public ToString ( string format ) : string
format string Code element format string.
Résultat string

this() public méthode

Gets or sets an extended property.
public this ( string key ) : object
key string Extended property name/key.
Résultat object