C# 클래스 NArrange.Core.CodeWriteVisitor

Abstract code write visitor implementation.
상속: ICodeElementVisitor
파일 보기 프로젝트 열기: MarcStan/NArrange

공개 메소드들

메소드 설명
VisitAttributeElement ( AttributeElement element ) : void

Processes an attribute element.

VisitCommentElement ( CommentElement element ) : void

Processes a comment element.

VisitConditionDirectiveElement ( ConditionDirectiveElement element ) : void

Processes a condition directive element.

VisitConstructorElement ( ConstructorElement element ) : void

Processes a constructor element.

VisitDelegateElement ( DelegateElement element ) : void

Processes a delegate element.

VisitEventElement ( EventElement element ) : void

Processes a event element.

VisitFieldElement ( FieldElement element ) : void

Processes a field element.

VisitGroupElement ( GroupElement element ) : void

Processes a group element.

VisitMethodElement ( MethodElement element ) : void

Processes a method element.

VisitNamespaceElement ( NamespaceElement element ) : void

Processes a namespace element.

VisitPropertyElement ( PropertyElement element ) : void

Processes a property element.

VisitRegionElement ( RegionElement element ) : void

Processes a region element.

VisitTypeElement ( TypeElement element ) : void

Processes a type element.

VisitUsingElement ( UsingElement element ) : void

Processes a using element.

보호된 메소드들

메소드 설명
CodeWriteVisitor ( TextWriter writer, CodeConfiguration configuration ) : System

Creates a new VBWriteVisitor.

FormatCommentText ( ICommentElement comment ) : string

Gets the formatted text to write for a comment.

WriteBlockChildren ( ICodeElement element ) : void

Writes children for a block element.

WriteChildren ( ICodeElement element ) : void

Writes child elements.

WriteClosingComment ( TextCodeElement element, string commentPrefix ) : void

Writes a closing comment.

WriteComments ( ReadOnlyCollection comments ) : void

Writes a collection of comment lines.

WriteIndented ( string text ) : void

Writes the specified text using the current TabCount.

WriteIndentedLine ( ) : void

Writes a new line using the current TabCount.

WriteIndentedLine ( string text ) : void

Writes a line of text using the current TabCount.

WriteRegionBeginDirective ( RegionElement element ) : void

Writes a starting region directive.

WriteRegionEndDirective ( RegionElement element ) : void

Writes an ending region directive.

WriteTextBlock ( string text ) : void

Writes a block of text.

비공개 메소드들

메소드 설명
CreateTabWhitespace ( int tabCount ) : string

Creates whitespace for the specified number of tabs.

ProcessLineWhitepace ( string line, int &lineTabCount ) : string

Processes leading/trailing whitespace for a line of text.

메소드 상세

CodeWriteVisitor() 보호된 메소드

Creates a new VBWriteVisitor.
protected CodeWriteVisitor ( TextWriter writer, CodeConfiguration configuration ) : System
writer System.IO.TextWriter The writer.
configuration NArrange.Core.Configuration.CodeConfiguration The configuration.
리턴 System

FormatCommentText() 보호된 메소드

Gets the formatted text to write for a comment.
protected FormatCommentText ( ICommentElement comment ) : string
comment ICommentElement Comment with text.
리턴 string

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

Processes an attribute element.
public abstract VisitAttributeElement ( AttributeElement element ) : void
element NArrange.Core.CodeElements.AttributeElement Attribute code element.
리턴 void

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

Processes a comment element.
public abstract VisitCommentElement ( CommentElement element ) : void
element NArrange.Core.CodeElements.CommentElement Comment code element.
리턴 void

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

Processes a condition directive element.
public abstract VisitConditionDirectiveElement ( ConditionDirectiveElement element ) : void
element NArrange.Core.CodeElements.ConditionDirectiveElement Condition directive code element.
리턴 void

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

Processes a constructor element.
public abstract VisitConstructorElement ( ConstructorElement element ) : void
element NArrange.Core.CodeElements.ConstructorElement Constructor code element.
리턴 void

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

Processes a delegate element.
public abstract VisitDelegateElement ( DelegateElement element ) : void
element NArrange.Core.CodeElements.DelegateElement Delegate code element.
리턴 void

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

Processes a event element.
public abstract VisitEventElement ( EventElement element ) : void
element NArrange.Core.CodeElements.EventElement Event code element.
리턴 void

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

Processes a field element.
public abstract VisitFieldElement ( FieldElement element ) : void
element NArrange.Core.CodeElements.FieldElement Field code element.
리턴 void

VisitGroupElement() 공개 메소드

Processes a group element.
public VisitGroupElement ( GroupElement element ) : void
element NArrange.Core.CodeElements.GroupElement Group element.
리턴 void

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

Processes a method element.
public abstract VisitMethodElement ( MethodElement element ) : void
element NArrange.Core.CodeElements.MethodElement Method code element.
리턴 void

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

Processes a namespace element.
public abstract VisitNamespaceElement ( NamespaceElement element ) : void
element NArrange.Core.CodeElements.NamespaceElement Namespace code element.
리턴 void

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

Processes a property element.
public abstract VisitPropertyElement ( PropertyElement element ) : void
element NArrange.Core.CodeElements.PropertyElement Property code element.
리턴 void

VisitRegionElement() 공개 메소드

Processes a region element.
public VisitRegionElement ( RegionElement element ) : void
element NArrange.Core.CodeElements.RegionElement Region code element.
리턴 void

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

Processes a type element.
public abstract VisitTypeElement ( TypeElement element ) : void
element NArrange.Core.CodeElements.TypeElement Type code element.
리턴 void

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

Processes a using element.
public abstract VisitUsingElement ( UsingElement element ) : void
element NArrange.Core.CodeElements.UsingElement Using/Import directive code element.
리턴 void

WriteBlockChildren() 보호된 메소드

Writes children for a block element.
protected WriteBlockChildren ( ICodeElement element ) : void
element ICodeElement Element whose children will be written.
리턴 void

WriteChildren() 보호된 메소드

Writes child elements.
protected WriteChildren ( ICodeElement element ) : void
element ICodeElement Element whose children will be written.
리턴 void

WriteClosingComment() 보호된 메소드

Writes a closing comment.
protected WriteClosingComment ( TextCodeElement element, string commentPrefix ) : void
element NArrange.Core.CodeElements.TextCodeElement The element.
commentPrefix string Comment prefix.
리턴 void

WriteComments() 보호된 메소드

Writes a collection of comment lines.
protected WriteComments ( ReadOnlyCollection comments ) : void
comments ReadOnlyCollection The comments.
리턴 void

WriteIndented() 보호된 메소드

Writes the specified text using the current TabCount.
protected WriteIndented ( string text ) : void
text string The text to write.
리턴 void

WriteIndentedLine() 보호된 메소드

Writes a new line using the current TabCount.
protected WriteIndentedLine ( ) : void
리턴 void

WriteIndentedLine() 보호된 메소드

Writes a line of text using the current TabCount.
protected WriteIndentedLine ( string text ) : void
text string The text to write.
리턴 void

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

Writes a starting region directive.
protected abstract WriteRegionBeginDirective ( RegionElement element ) : void
element NArrange.Core.CodeElements.RegionElement The region element.
리턴 void

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

Writes an ending region directive.
protected abstract WriteRegionEndDirective ( RegionElement element ) : void
element NArrange.Core.CodeElements.RegionElement The region element.
리턴 void

WriteTextBlock() 보호된 메소드

Writes a block of text.
protected WriteTextBlock ( string text ) : void
text string Block of text to write.
리턴 void