C# Class NClass.CodeGenerator.SourceFileGenerator

ファイルを表示 Open project: gbaychev/NClass Class Usage Examples

Public Methods

Method Description
Generate ( string directory ) : string

Protected Methods

Method Description
AddBlankLine ( ) : void
AddBlankLine ( bool indentation ) : void
SourceFileGenerator ( TypeBase type, string rootNamespace ) : System
WriteFileContent ( ) : void
WriteLine ( string text ) : void
WriteLine ( string text, bool indentation ) : void

Private Methods

Method Description
AddIndent ( ) : void
FinishWork ( ) : void
WriteFileContent ( TextWriter writer ) : void

Method Details

AddBlankLine() protected method

protected AddBlankLine ( ) : void
return void

AddBlankLine() protected method

protected AddBlankLine ( bool indentation ) : void
indentation bool
return void

Generate() public method

/// An error has occured while generating the source file. ///
public Generate ( string directory ) : string
directory string
return string

SourceFileGenerator() protected method

/// is null. ///
protected SourceFileGenerator ( TypeBase type, string rootNamespace ) : System
type NClass.Core.TypeBase
rootNamespace string
return System

WriteFileContent() protected abstract method

protected abstract WriteFileContent ( ) : void
return void

WriteLine() protected method

protected WriteLine ( string text ) : void
text string
return void

WriteLine() protected method

protected WriteLine ( string text, bool indentation ) : void
text string
indentation bool
return void