Enum DefaultPrinterConfiguration.ConfigOption
java.lang.Object
java.lang.Enum<DefaultPrinterConfiguration.ConfigOption>
com.github.javaparser.printer.configuration.DefaultPrinterConfiguration.ConfigOption
- All Implemented Interfaces:
Serializable
,Comparable<DefaultPrinterConfiguration.ConfigOption>
,java.lang.constant.Constable
- Enclosing class:
- DefaultPrinterConfiguration
public static enum DefaultPrinterConfiguration.ConfigOption
extends Enum<DefaultPrinterConfiguration.ConfigOption>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndent the case when it is true, don't if falseIndentation proprertyBy default enum constants get aligned like this:Order imports alphabeticallyPrint comments only.Print javadoc comments only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ORDER_IMPORTS
Order imports alphabetically -
PRINT_COMMENTS
Print comments only. It can be combined withPRINT_JAVADOC
to print regular comments and javadoc. -
PRINT_JAVADOC
Print javadoc comments only. It can be combined withPRINT_COMMENTS
to print regular javadoc and comments -
SPACE_AROUND_OPERATORS
-
COLUMN_ALIGN_PARAMETERS
-
COLUMN_ALIGN_FIRST_METHOD_CHAIN
-
INDENT_CASE_IN_SWITCH
Indent the case when it is true, don't if falseswitch(x) { switch(x) { case 1: case 1: return y; return y; case 2: case 2: return z; return x; } }
-
MAX_ENUM_CONSTANTS_TO_ALIGN_HORIZONTALLY
public static final DefaultPrinterConfiguration.ConfigOption MAX_ENUM_CONSTANTS_TO_ALIGN_HORIZONTALLYBy default enum constants get aligned like this: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. -
END_OF_LINE_CHARACTER
-
INDENTATION
Indentation proprerty
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-