Cleaner

  1,371 downloads
0.1 GPL (GNU General Public License)    
3.0/5 17
Cleaner is a Java beautifier that transforms ugly syntax into beautiful syntax.

description

download

2  

specifications

Cleaner is a Java beautifier that transforms ugly syntax into beautiful syntax. The Java code syntax is parsed using ANTLR and then printed to standard output.

Source is included.

Something like this:

public void foo(String bar)
{
for(int x=0; x < 9; x++ )
{
System.out.println ("X = " + x);
}
}

Will become

public void foo( String bar ){
for ( int x = 0; x < 9; x++ ){
System.out.println( "X = " + x );
}
}

Compile:

$ ant

Run:

$ java -classpath cleaner.jar:lib/antlr.jar cleaner.Cleaner < some-file >
READ MORE   
Last updated on April 17th, 2006
2  
CleanerCleaner

0 User reviews so far.

SUBMIT