EDU.purdue.jtb.misc
Class FileGenerator

java.lang.Object
  extended by EDU.purdue.jtb.misc.FileGenerator

public class FileGenerator
extends java.lang.Object

Class FileGenerator generates the .java files and the generic interface GJVisitor.java as well as GJDepthFirst.java.


Field Summary
static int INDENT_AMT
           
 
Constructor Summary
FileGenerator(java.util.Vector classes)
          Vector must contain objects of type ClassInfo
 
Method Summary
 void generateAutoClassFiles()
          Generates the automatic classes.
 void generateClassFiles()
          Generates node class source files.
 void generateVisitorFile()
          Generates the visitor source files.
 void printClassList(java.io.PrintWriter out)
          Method to list the classes generated in an easier-to-read form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDENT_AMT

public static final int INDENT_AMT
See Also:
Constant Field Values
Constructor Detail

FileGenerator

public FileGenerator(java.util.Vector classes)
Vector must contain objects of type ClassInfo

Method Detail

printClassList

public void printClassList(java.io.PrintWriter out)
Method to list the classes generated in an easier-to-read form


generateClassFiles

public void generateClassFiles()
                        throws FileExistsException
Generates node class source files.

Throws:
FileExistsException

generateAutoClassFiles

public void generateAutoClassFiles()
                            throws FileExistsException
Generates the automatic classes.

Throws:
FileExistsException

generateVisitorFile

public void generateVisitorFile()
                         throws FileExistsException
Generates the visitor source files.

Throws:
FileExistsException