Class PrettyPrinterConfiguration
java.lang.Object
com.github.javaparser.printer.configuration.PrettyPrinterConfiguration
- All Implemented Interfaces:
PrinterConfiguration
Deprecated.
This class could be removed in a future version. Use default DefaultPrinterConfiguration.
Configuration options for the
PrettyPrinter
.
This class is no longer acceptable to use because it is not sufficiently configurable and it is too tied to a specific implementation
Use interface or DefaultPrinterConfiguration default implementation
instead.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOption(ConfigurationOption option)
Deprecated.get()
Deprecated.get(ConfigurationOption option)
Deprecated.Deprecated.Deprecated.(@see Indentation.getIndent())Deprecated.int
Deprecated.(@see Indentation.size)Deprecated.(@see Indentation.type)int
Deprecated.int
Deprecated.(@see Indentation.size)boolean
isActivated(ConfigurationOption option)
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.removeOption(ConfigurationOption option)
Deprecated.setColumnAlignFirstMethodChain(boolean columnAlignFirstMethodChain)
Deprecated.setColumnAlignParameters(boolean columnAlignParameters)
Deprecated.setEndOfLineCharacter(String endOfLineCharacter)
Deprecated.Set the character to append when a line should end.setIndentation(Indentation indentation)
Deprecated.setIndentCaseInSwitch(boolean indentInSwitch)
Deprecated.setIndentSize(int indentSize)
Deprecated.(@see Indentation.size())setIndentType(Indentation.IndentType indentType)
Deprecated.(@see Indentation.type())setMaxEnumConstantsToAlignHorizontally(int maxEnumConstantsToAlignHorizontally)
Deprecated.By default enum constants get aligned like this:setOrderImports(boolean orderImports)
Deprecated.When true, orders imports by alphabetically.setPrintComments(boolean printComments)
Deprecated.When true, all comments will be printed, unless printJavadoc is false, then only line and block comments will be printed.setPrintJavadoc(boolean printJavadoc)
Deprecated.When true, Javadoc will be printed.setSpaceAroundOperators(boolean spaceAroundOperators)
Deprecated.Set if there should be spaces between operatorssetTabWidth(int tabWidth)
Deprecated.(@see Indentation.size)
-
Constructor Details
-
PrettyPrinterConfiguration
public PrettyPrinterConfiguration()Deprecated.
-
-
Method Details
-
getIndentation
Deprecated. -
setIndentation
Deprecated. -
getIndent
Deprecated.(@see Indentation.getIndent())- Returns:
- the string that will be used to indent.
-
getIndentSize
Deprecated.(@see Indentation.size)- Returns:
- the indentation size.
-
setIndentSize
Deprecated.(@see Indentation.size())Set the size of the indent in characters. -
getIndentType
Deprecated.(@see Indentation.type)Get the type of indent to produce. -
setIndentType
Deprecated.(@see Indentation.type())Set the type of indent to produce. -
getTabWidth
Deprecated.(@see Indentation.size)Get the tab width for pretty aligning. -
setTabWidth
Deprecated.(@see Indentation.size)Set the tab width for pretty aligning. -
isOrderImports
public boolean isOrderImports()Deprecated. -
isPrintComments
public boolean isPrintComments()Deprecated. -
isIgnoreComments
public boolean isIgnoreComments()Deprecated. -
isSpaceAroundOperators
public boolean isSpaceAroundOperators()Deprecated. -
isPrintJavadoc
public boolean isPrintJavadoc()Deprecated. -
isColumnAlignParameters
public boolean isColumnAlignParameters()Deprecated. -
isColumnAlignFirstMethodChain
public boolean isColumnAlignFirstMethodChain()Deprecated. -
isIndentCaseInSwitch
public boolean isIndentCaseInSwitch()Deprecated. -
setPrintComments
Deprecated.When true, all comments will be printed, unless printJavadoc is false, then only line and block comments will be printed. -
setPrintJavadoc
Deprecated.When true, Javadoc will be printed. -
setSpaceAroundOperators
Deprecated.Set if there should be spaces between operators -
setColumnAlignParameters
Deprecated. -
setColumnAlignFirstMethodChain
public PrettyPrinterConfiguration setColumnAlignFirstMethodChain(boolean columnAlignFirstMethodChain)Deprecated. -
setIndentCaseInSwitch
Deprecated. -
getEndOfLineCharacter
Deprecated. -
setEndOfLineCharacter
Deprecated.Set the character to append when a line should end. Example values: "\n", "\r\n", "". -
setOrderImports
Deprecated.When true, orders imports by alphabetically. -
getMaxEnumConstantsToAlignHorizontally
public int getMaxEnumConstantsToAlignHorizontally()Deprecated. -
setMaxEnumConstantsToAlignHorizontally
public PrettyPrinterConfiguration setMaxEnumConstantsToAlignHorizontally(int maxEnumConstantsToAlignHorizontally)Deprecated.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). Then they get aligned like this:enum X { A, B, C, D, E, F, G }
Set it to a large number to always align horizontally. Set it to 1 or less to always align vertically. -
addOption
Deprecated.- Specified by:
addOption
in interfacePrinterConfiguration
-
isActivated
Deprecated.- Specified by:
isActivated
in interfacePrinterConfiguration
-
get
Deprecated.- Specified by:
get
in interfacePrinterConfiguration
-
get
Deprecated.- Specified by:
get
in interfacePrinterConfiguration
-
removeOption
Deprecated.- Specified by:
removeOption
in interfacePrinterConfiguration
-