public class FmtOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
check |
protected boolean |
diff |
protected boolean |
list |
protected boolean |
recursive |
protected boolean |
write |
| Constructor and Description |
|---|
FmtOptions(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(boolean check)
Checks if the input is formatted if
true is specified. |
void |
diff(boolean diff)
Displays diffs of formatting changes if
true is specified. |
void |
list(boolean list)
Lists the files containing formatting inconsistencies if
true is specified. |
void |
recursive(boolean recursive)
Processes files in subdirectories if
true is specified. |
void |
write(boolean write)
Overwrites the input files if
true is specified. |
protected boolean list
protected boolean write
protected boolean diff
protected boolean check
protected boolean recursive
public void list(boolean list)
true is specified.
Default is false.
list - true to list the files containing formatting inconsistencies.public void write(boolean write)
true is specified.
Default is false.
write - true to overwrite the input files.public void diff(boolean diff)
true is specified.
Default is false.
diff - true to display diffs of formatting changes.public void check(boolean check)
true is specified.
Exit status will be 0 if all input is properly formatted and non-zero otherwise.
Default is false.
check - true to check if the input is formatted.public void recursive(boolean recursive)
true is specified.
By default, only the given directory (or current directory) is processed.
Default is false.
recursive - true to process files in subdirectories.