コード例 #1
0
        public static void emitPartialType(string name, ClassDescriptorSerialized serTy)
        {
            JavaPrettyPrint outputMaker = new JavaPrettyPrint(null);

            outputMaker.Filename         = serTy.FileName;
            outputMaker.TraceDestination = Console.Error;
            outputMaker.TemplateLib      = templates;
            outputMaker.Cfg = cfg;

            StringTemplate pkgST = outputMaker.emitPackage(serTy);

            if (cfg.DebugLevel >= 1)
            {
                Console.Out.WriteLine("Writing out {0}", serTy.FileName);
            }
            StreamWriter javaW = new StreamWriter(serTy.FileName);

            javaW.Write(pkgST.ToString());
            javaW.Close();
        }
コード例 #2
0
ファイル: CS2JMain.cs プロジェクト: exaphaser/cs2j
       public static void emitPartialType(string name, ClassDescriptorSerialized serTy)
       {
          JavaPrettyPrint outputMaker = new JavaPrettyPrint(null);
          outputMaker.Filename = serTy.FileName;
          outputMaker.TraceDestination = Console.Error;
          outputMaker.TemplateLib = templates;
          outputMaker.Cfg = cfg;

          StringTemplate pkgST = outputMaker.emitPackage(serTy);

          if (cfg.DebugLevel >= 1) Console.Out.WriteLine("Writing out {0}", serTy.FileName);
          StreamWriter javaW = new StreamWriter(serTy.FileName);
          javaW.Write(pkgST.ToString());
          javaW.Close();
       }