Java Source Code Beautifier - JPrettyTM

Java Souce Code Beautifier
HOME
PRODUCTS
CLIENTS
TECHNICAL PUBLICATIONS
WHITE PAPERS
ONSITE SEMINARS
CONTACT US
RESELLERS

JPretty is a Java source beautifier.  It takes a syntactically correct Java  program  and reformats it according to specified options. The following formatting categories are currently supported:

PRODUCT HIGHLIGHTS
F Smart indentation of statements F Rearranging members of a class
F Control of braces F Method parameter alignment
F Control of spaces between local variable and its type F Control of spaces between field  name and its type across multiple lines
F Parameter alignment of a method  F Ordering of class elements based on: 
bullet.gif Class Elements
bullet.gif Access Specifier
bullet.gif Static - Non Static
bullet.gif Final - Non Final
bullet.gif Native - Non Native
 
Before Using JPretty After Using JPretty
package com.mmsindia.jpretty;   
class SayHello {   
 private    
String Hello = "Hello: ";    
// Maximum printable size   
 static final    
int MAXPRINT = 5;   

public void say(String name, int val)    
      throws              Exception {   
  for(int i = 0; i < val; i++)   
  if(i < MAXPRINT)   
    System.out.println(Hello + name);   
  else throw new Exception();   
}   
public static void main(String args[]) {   
 try {   
    new SayHello().say(args[0],    
       Integer.parseInt(args[1]));   
 } catch(Exception e) { System.out.println(e); }   

 }   
}   

package com.mmsindia.jpretty;  

class SayHello  
{  
    public void say(String name, int val) throws Exception {  
        for(int i = 0;i < val;i++)  
            if(i < MAXPRINT)  
                System.out.println(Hello + name);  
            else  
                throw new Exception();  
    }  
    public static void main(String args[]) {  
        try {  
           new SayHello().say(args[0],Integer.parseInt(args[1]));  
        }  
        catch(Exception e) {  
            System.out.println(e);  
        }  
    }  
    // Maximum printable size  
    static final int MAXPRINT = 5;  
    private String Hello = "Hello: ";  
}  
 

PLATFORM REQUIREMENTS
Processor Intel Pentium or higher
Operating Systems Windows 95/98/ME/2000/XP/NT (patch 4)
JDK Version 1.0 to 1.4
RAM 64 MB or higher
Hard disk At least 10 MB of free space for installation

All product names referenced are trademarks of their respective companies. 
This site is copyright 1997-2009 Man Machine Systems
Materials found in this site may not be copied and reproduced without prior permission.
This page updated on 12 November, 2009 12:49:51