C# Class NArrange.Core.CodeElements.CodeElement

Code element base class.
Inheritance: ICodeElement
Mostrar archivo Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
CodeElement ( ) : System.Collections.Generic

Default constructor.

DoClone ( ) : CodeElement

Creates a clone of the instance and assigns any state.

Method Details

Accept() public abstract method

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.
return void

AddChild() public method

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

ClearChildren() public method

Removes all child elements.
public ClearChildren ( ) : void
return void

Clone() public method

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

CodeElement() protected method

Default constructor.
protected CodeElement ( ) : System.Collections.Generic
return System.Collections.Generic

DoClone() protected abstract method

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

InsertChild() public method

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.
return void

RemoveChild() public method

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

ToString() public method

Gets the string representation of this object.
public ToString ( ) : string
return string

ToString() public method

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

this() public method

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