C# 클래스 SilentOrbit.Code.CodeWriter

Static and instance helpers for code generation
상속: IDisposable
파일 보기 프로젝트 열기: hultqvist/protobuf

공개 프로퍼티들

프로퍼티 타입 설명
DefaultIndentPrefix string
DefaultNewLine string
IndentPrefix string
NewLine string

공개 메소드들

메소드 설명
Attribute ( string attributeConstructor ) : void
Bracket ( ) : void

Write leading bracket and indent

Bracket ( string str ) : void

Write leading bracket and indent

Case ( int id ) : void
Case ( string str ) : void
CaseDefault ( ) : void
CodeWriter ( ) : System

Writes to memory, get the code using the "Code" property

CodeWriter ( string csPath ) : System

Writes code directly to file

Comment ( string code ) : void
Dedent ( ) : void
Dispose ( ) : void
ElseBracket ( ) : void

Close a previous IfBracket and start an else

ElseIfBracket ( string str ) : void

Close a previous Bracket and start an "else if"

EndBracket ( ) : void
EndBracketSpace ( ) : void
Flush ( ) : void
ForeachBracket ( string str ) : void
IfBracket ( string str ) : void
Indent ( ) : void
Summary ( string summary ) : void
SummaryParam ( string name, string description ) : void

Switch ( string str ) : void
SwitchEnd ( ) : void
Using ( string str ) : void
WhileBracket ( string str ) : void
WriteIndent ( string str ) : void

Writes a singe line indented.

WriteLine ( ) : void
WriteLine ( string line ) : void
WritePragma ( string line ) : void

비공개 메소드들

메소드 설명
SplitTrimEnd ( string text ) : string[]

Split string into an array of lines and trim whitespace at the end

메소드 상세

Attribute() 공개 메소드

public Attribute ( string attributeConstructor ) : void
attributeConstructor string
리턴 void

Bracket() 공개 메소드

Write leading bracket and indent
public Bracket ( ) : void
리턴 void

Bracket() 공개 메소드

Write leading bracket and indent
public Bracket ( string str ) : void
str string Line before bracket
리턴 void

Case() 공개 메소드

public Case ( int id ) : void
id int
리턴 void

Case() 공개 메소드

public Case ( string str ) : void
str string
리턴 void

CaseDefault() 공개 메소드

public CaseDefault ( ) : void
리턴 void

CodeWriter() 공개 메소드

Writes to memory, get the code using the "Code" property
public CodeWriter ( ) : System
리턴 System

CodeWriter() 공개 메소드

Writes code directly to file
public CodeWriter ( string csPath ) : System
csPath string
리턴 System

Comment() 공개 메소드

public Comment ( string code ) : void
code string
리턴 void

Dedent() 공개 메소드

public Dedent ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ElseBracket() 공개 메소드

Close a previous IfBracket and start an else
public ElseBracket ( ) : void
리턴 void

ElseIfBracket() 공개 메소드

Close a previous Bracket and start an "else if"
public ElseIfBracket ( string str ) : void
str string
리턴 void

EndBracket() 공개 메소드

public EndBracket ( ) : void
리턴 void

EndBracketSpace() 공개 메소드

public EndBracketSpace ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

ForeachBracket() 공개 메소드

public ForeachBracket ( string str ) : void
str string
리턴 void

IfBracket() 공개 메소드

public IfBracket ( string str ) : void
str string
리턴 void

Indent() 공개 메소드

public Indent ( ) : void
리턴 void

Summary() 공개 메소드

public Summary ( string summary ) : void
summary string
리턴 void

SummaryParam() 공개 메소드

public SummaryParam ( string name, string description ) : void
name string
description string
리턴 void

Switch() 공개 메소드

public Switch ( string str ) : void
str string
리턴 void

SwitchEnd() 공개 메소드

public SwitchEnd ( ) : void
리턴 void

Using() 공개 메소드

public Using ( string str ) : void
str string
리턴 void

WhileBracket() 공개 메소드

public WhileBracket ( string str ) : void
str string
리턴 void

WriteIndent() 공개 메소드

Writes a singe line indented.
public WriteIndent ( string str ) : void
str string
리턴 void

WriteLine() 공개 메소드

public WriteLine ( ) : void
리턴 void

WriteLine() 공개 메소드

public WriteLine ( string line ) : void
line string
리턴 void

WritePragma() 공개 메소드

public WritePragma ( string line ) : void
line string
리턴 void

프로퍼티 상세

DefaultIndentPrefix 공개적으로 정적으로 프로퍼티

public static string DefaultIndentPrefix
리턴 string

DefaultNewLine 공개적으로 정적으로 프로퍼티

public static string DefaultNewLine
리턴 string

IndentPrefix 공개적으로 프로퍼티

public string IndentPrefix
리턴 string

NewLine 공개적으로 프로퍼티

public string NewLine
리턴 string