Codegen util api

com.raghuraman.codegen
Class CodeFile

java.lang.Object
  extended bycom.raghuraman.codegen.CodeFile
All Implemented Interfaces:
ToJava

public class CodeFile
extends java.lang.Object
implements ToJava

Author:
R.Raghuraman

Field Summary
(package private)  Block[] blocks
           
 
Constructor Summary
CodeFile(java.lang.String text)
           
 
Method Summary
static void formatCode(CodeFormatter codeFormatter, Block[] blocks, boolean doStyle)
           
 CodeFormatter toJava()
           
 void toJava(CodeFormatter codeFormatter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blocks

Block[] blocks
Constructor Detail

CodeFile

public CodeFile(java.lang.String text)
         throws CodeGenException
Method Detail

toJava

public CodeFormatter toJava()
                     throws CodeGenException
Throws:
CodeGenException

toJava

public void toJava(CodeFormatter codeFormatter)
            throws CodeGenException
Specified by:
toJava in interface ToJava
Throws:
CodeGenException

formatCode

public static void formatCode(CodeFormatter codeFormatter,
                              Block[] blocks,
                              boolean doStyle)
                       throws CodeGenException
Throws:
CodeGenException

jxpress

Copyright © 2004 R.Raghuraman. Distributable under LGPL license.