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