com.octagroup.foregej.ant
Class JavaFormatter

java.lang.Object
  |
  +--com.octagroup.foregej.ant.JavaFormatter

public class JavaFormatter
extends java.lang.Object

This class formats a java file.


Constructor Summary
JavaFormatter()
           
 
Method Summary
static void format(java.io.File src, java.io.File dest)
          Reads the source file and writes the formatted content to the destination file.
static CompilationUnit parseFile(java.io.File src)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFormatter

public JavaFormatter()
Method Detail

format

public static void format(java.io.File src,
                          java.io.File dest)
                   throws antlr.TokenStreamException,
                          antlr.RecognitionException,
                          java.io.IOException,
                          java.lang.InterruptedException
Reads the source file and writes the formatted content to the destination file.
Parameters:
dest - the java destination
src - the java source file
Throws:
java.io.IOException - from underlying parser
java.lang.InterruptedException - from underlying parser
antlr.RecognitionException - from underlying parser
antlr.TokenStreamException - from underlying parser

parseFile

public static CompilationUnit parseFile(java.io.File src)
                                 throws antlr.TokenStreamException,
                                        antlr.RecognitionException,
                                        java.io.IOException,
                                        java.lang.InterruptedException
DOCUMENT ME!
Parameters:
src - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.lang.InterruptedException - DOCUMENT ME!
antlr.RecognitionException - DOCUMENT ME!
antlr.TokenStreamException - DOCUMENT ME!


Copyright © 2003 El Icognito des Noboby. All Rights Reserved.