org.hibernate.tool.ide.formatting
Class JavaFormatter
java.lang.Object
org.hibernate.tool.ide.formatting.JavaFormatter
public class JavaFormatter
- extends Object
Method Summary |
boolean |
formatFile(File file)
Throws exception if not possible to read or write the file. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaFormatter
public JavaFormatter(Map settings)
main
public static void main(String[] args)
- Parameters:
args
-
formatFile
public boolean formatFile(File file)
throws ExporterException
- Throws exception if not possible to read or write the file.
Returns true if formatting went ok; returns false if the formatting could not finish because of errors in the input.
- Parameters:
file
- codeFormatter
-
- Returns:
-
- Throws:
ExporterException