public static enum DefaultPrinterConfiguration.ConfigOption extends Enum<DefaultPrinterConfiguration.ConfigOption>
Enum Constant and Description |
---|
COLUMN_ALIGN_FIRST_METHOD_CHAIN |
COLUMN_ALIGN_PARAMETERS |
END_OF_LINE_CHARACTER |
INDENT_CASE_IN_SWITCH
Indent the case when it is true, don't if false
switch(x) { switch(x) {
case 1: case 1:
return y; return y;
case 2: case 2:
return z; return x;
} }
|
INDENT_PRINT_ARRAYS_OF_ANNOTATIONS
This parameter allows to print pretty formatted arrays
{@code
|
INDENTATION
Indentation proprerty
|
MAX_ENUM_CONSTANTS_TO_ALIGN_HORIZONTALLY
By default enum constants get aligned like this:
enum X {
A, B, C, D
}
until the amount of constants passes this currentValue (5 by default). |
ORDER_IMPORTS
Order imports alphabetically
|
PRINT_COMMENTS
Print comments only.
|
PRINT_JAVADOC
Print javadoc comments only.
|
SORT_IMPORTS_STRATEGY
The logic to be used when ordering the imports.
|
SPACE_AROUND_OPERATORS |
Modifier and Type | Method and Description |
---|---|
static DefaultPrinterConfiguration.ConfigOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultPrinterConfiguration.ConfigOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultPrinterConfiguration.ConfigOption ORDER_IMPORTS
public static final DefaultPrinterConfiguration.ConfigOption SORT_IMPORTS_STRATEGY
public static final DefaultPrinterConfiguration.ConfigOption PRINT_COMMENTS
PRINT_JAVADOC
to print regular comments and javadoc.public static final DefaultPrinterConfiguration.ConfigOption PRINT_JAVADOC
PRINT_COMMENTS
to print regular javadoc and commentspublic static final DefaultPrinterConfiguration.ConfigOption SPACE_AROUND_OPERATORS
public static final DefaultPrinterConfiguration.ConfigOption COLUMN_ALIGN_PARAMETERS
public static final DefaultPrinterConfiguration.ConfigOption COLUMN_ALIGN_FIRST_METHOD_CHAIN
public static final DefaultPrinterConfiguration.ConfigOption INDENT_CASE_IN_SWITCH
switch(x) { switch(x) {
case 1: case 1:
return y; return y;
case 2: case 2:
return z; return x;
} }
public static final DefaultPrinterConfiguration.ConfigOption MAX_ENUM_CONSTANTS_TO_ALIGN_HORIZONTALLY
enum X { A, B, C, D }
until the amount of constants passes this currentValue (5 by default). Then they get aligned like this:Set it to a very large number (e.g.enum X { A, B, C, D, E, F, G }
Integer.MAX_VALUE
to always align horizontally. Set it to 1 or less to always align vertically.
public static final DefaultPrinterConfiguration.ConfigOption END_OF_LINE_CHARACTER
public static final DefaultPrinterConfiguration.ConfigOption INDENTATION
public static final DefaultPrinterConfiguration.ConfigOption INDENT_PRINT_ARRAYS_OF_ANNOTATIONS
{@code
public static DefaultPrinterConfiguration.ConfigOption[] values()
for (DefaultPrinterConfiguration.ConfigOption c : DefaultPrinterConfiguration.ConfigOption.values()) System.out.println(c);
public static DefaultPrinterConfiguration.ConfigOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2007–2024. All rights reserved.