public final class AStyle extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CPLUS
Constant for default C++ indentation.
|
static String |
CSHARP
Constant for default C# indentation.
|
static String |
JAVA
Constant for default Java indentation.
|
public static final String CPLUS
public static final String CSHARP
public static final String JAVA
public static String format(String textIn, String options)
textIn - A string containing the source code to be formatted.options - A string of options to Artistic Style.public static void format(File inputFile, File outputFile, String options) throws IOException
inputFile - A file containing the source code to be formatted.outputFile - The file which will contain the formatted source from Artistic Style, or an empty string on error.options - A string of options to Artistic Style.IOException - Occurs when the input or output files are invalid or can't be accessed.