public final class AStyle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CPLUS
Constant for default C++ indentation.
|
static java.lang.String |
CSHARP
Constant for default C# indentation.
|
static java.lang.String |
JAVA
Constant for default Java indentation.
|
Modifier and Type | Method and Description |
---|---|
static void |
format(java.io.File inputFile,
java.io.File outputFile,
java.lang.String options)
Call the AStyleMain function in Artistic Style.
|
static java.lang.String |
format(java.lang.String textIn,
java.lang.String options)
Call the AStyleMain function in Artistic Style.
|
public static final java.lang.String CPLUS
public static final java.lang.String CSHARP
public static final java.lang.String JAVA
public static java.lang.String format(java.lang.String textIn, java.lang.String options)
textIn
- A string containing the source code to be formatted.options
- A string of options to Artistic Style.public static void format(java.io.File inputFile, java.io.File outputFile, java.lang.String options) throws java.io.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.java.io.IOException
- Occurs when the input or output files are invalid or can't be accessed.