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.
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 |
JavaFormatter
public JavaFormatter()
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 destinationsrc
- the java source file- Throws:
java.io.IOException
- from underlying parserjava.lang.InterruptedException
- from underlying parserantlr.RecognitionException
- from underlying parserantlr.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.