C# Class NClass.CodeGenerator.SourceFileGenerator

Afficher le fichier Open project: gbaychev/NClass Class Usage Examples

Méthodes publiques

Méthode Description
Generate ( string directory ) : string

Méthodes protégées

Méthode 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

Méthode Description
AddIndent ( ) : void
FinishWork ( ) : void
WriteFileContent ( TextWriter writer ) : void

Method Details

AddBlankLine() protected méthode

protected AddBlankLine ( ) : void
Résultat void

AddBlankLine() protected méthode

protected AddBlankLine ( bool indentation ) : void
indentation bool
Résultat void

Generate() public méthode

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

SourceFileGenerator() protected méthode

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

WriteFileContent() protected abstract méthode

protected abstract WriteFileContent ( ) : void
Résultat void

WriteLine() protected méthode

protected WriteLine ( string text ) : void
text string
Résultat void

WriteLine() protected méthode

protected WriteLine ( string text, bool indentation ) : void
text string
indentation bool
Résultat void