C# 클래스 NArrange.Core.CodeElements.CodeElement

Code element base class.
상속: ICodeElement
파일 보기 프로젝트 열기: MarcStan/NArrange 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
CodeElement ( ) : System.Collections.Generic

Default constructor.

DoClone ( ) : CodeElement

Creates a clone of the instance and assigns any state.

메소드 상세

Accept() 공개 추상적인 메소드

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.
리턴 void

AddChild() 공개 메소드

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

ClearChildren() 공개 메소드

Removes all child elements.
public ClearChildren ( ) : void
리턴 void

Clone() 공개 메소드

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

CodeElement() 보호된 메소드

Default constructor.
protected CodeElement ( ) : System.Collections.Generic
리턴 System.Collections.Generic

DoClone() 보호된 추상적인 메소드

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

InsertChild() 공개 메소드

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.
리턴 void

RemoveChild() 공개 메소드

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

ToString() 공개 메소드

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

ToString() 공개 메소드

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

this() 공개 메소드

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