Shopping Cart My Cart Account Log In Walkthrough IDE Integrations Contact Partner  
Polystyle
The Elegant, Intelligent Source Code Formatter

Click Here To Download A Free Trial!
C/C++   PerlPascal/Delphi
C#   CSSCMAC
Java Javascript   PHP 
JSP HTMLPython
ASP Visual BasicActionscript
Home Features Documentation Buy Polystyle Download  
Java Beautifier Features

  • Overall Java Features
  • Step 1: Unformatted Source
  • Step 2: Example Source
  • Step 3: Formatted Source

    The following are a few of the main features to be found in Polystyle's Java beautifier.

    To see a preview of Polystyle in action, use the Step 1, 2, 3 links above.

    Context-Sensitive Formatting

    Polystyle formats entities depending on their location in the source. The default example file gives examples for formatting array creation two ways. The first applies when created inside a class body:

    Example:

        class C {
            private final int [][] array = new int [][] {
                  { 1, 2, 3 },
                  { 1, 2, 3 },
                  { 1, 2, 3 }
            };
        }
    
    The second applies when inside expressions:

    Example:

        for (int [] i = { 1, 2, 3 }; false; i++) {
        }
    
     
    C++ Style Comment Alignment:

    Polystyle intelligently groups together and aligns C++ style comments.

    Example:

        int i = 0;              // id counter
        s.optimize(i, a, b);    // optimize transaction
    
        do {
            i++;                // scan through
        } while (s.inspect(i)); // find any bad ids
    
        // clean up bad files
        for (int j = 0; i != h; j++) {
            File f = open(myFiles[j]); // get latest copy
            f.delete();                // wipe it out
        }
    
     

    Next, take a look at what Polystyle can do for you with this quick test case:

  • Step 1: Unformatted Source
  • Step 2: Example Source
  • Step 3: Formatted Source
  • Home Features Documentation Buy Polystyle Download  

    Click Here To Download A Free Trial!

    Copyright © Flashbulb Studios. All rights reserved.