コード例 #1
0
        public string Generate(string classAsAString)
        {
            var analyzer       = new ClassAnalyzer();
            var analysisResult = analyzer.Analyze(classAsAString);

            var modelCreator = new BuilderModelCreator();
            var model        = modelCreator.Create(analysisResult);

            var codeGenerator = new BuilderCodeGenerator();

            return(codeGenerator.Generate(model));
        }
コード例 #2
0
        public string Execute(BuilderModel builderModel)
        {
            var creator = new BuilderCodeGenerator();

            return(creator.Generate(builderModel));
        }