public class PrettyPrinterConfiguration extends Object
PrettyPrinter
.Constructor and Description |
---|
PrettyPrinterConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getEndOfLineCharacter() |
String |
getIndent() |
Function<PrettyPrinterConfiguration,PrettyPrintVisitor> |
getVisitorFactory() |
boolean |
isColumnAlignFirstMethodChain() |
boolean |
isColumnAlignParameters() |
boolean |
isIgnoreComments() |
boolean |
isNormalizeEolInComment()
Deprecated.
this is always on.
|
boolean |
isOrderImports() |
boolean |
isPrintComments() |
boolean |
isPrintJavadoc() |
PrettyPrinterConfiguration |
setColumnAlignFirstMethodChain(boolean columnAlignFirstMethodChain) |
PrettyPrinterConfiguration |
setColumnAlignParameters(boolean columnAlignParameters) |
PrettyPrinterConfiguration |
setEndOfLineCharacter(String endOfLineCharacter)
Set the character to append when a line should end.
|
PrettyPrinterConfiguration |
setIndent(String indent)
Set the string to use for indenting.
|
PrettyPrinterConfiguration |
setNormalizeEolInComment(boolean normalizeEolInComment)
Deprecated.
this is always on.
|
PrettyPrinterConfiguration |
setOrderImports(boolean orderImports)
When true, orders imports by alphabetically.
|
PrettyPrinterConfiguration |
setPrintComments(boolean printComments)
When true, all comments will be printed, unless printJavadoc is false, then only line and block comments will be
printed.
|
PrettyPrinterConfiguration |
setPrintJavadoc(boolean printJavadoc)
When true, Javadoc will be printed.
|
PrettyPrinterConfiguration |
setVisitorFactory(Function<PrettyPrinterConfiguration,PrettyPrintVisitor> visitorFactory)
Set the factory that creates the PrettyPrintVisitor.
|
public String getIndent()
public PrettyPrinterConfiguration setIndent(String indent)
public boolean isOrderImports()
@Deprecated public boolean isNormalizeEolInComment()
@Deprecated public PrettyPrinterConfiguration setNormalizeEolInComment(boolean normalizeEolInComment)
public boolean isPrintComments()
public boolean isIgnoreComments()
public boolean isPrintJavadoc()
public boolean isColumnAlignParameters()
public boolean isColumnAlignFirstMethodChain()
public PrettyPrinterConfiguration setPrintComments(boolean printComments)
public PrettyPrinterConfiguration setPrintJavadoc(boolean printJavadoc)
public PrettyPrinterConfiguration setColumnAlignParameters(boolean columnAlignParameters)
public PrettyPrinterConfiguration setColumnAlignFirstMethodChain(boolean columnAlignFirstMethodChain)
public Function<PrettyPrinterConfiguration,PrettyPrintVisitor> getVisitorFactory()
public PrettyPrinterConfiguration setVisitorFactory(Function<PrettyPrinterConfiguration,PrettyPrintVisitor> visitorFactory)
public String getEndOfLineCharacter()
public PrettyPrinterConfiguration setEndOfLineCharacter(String endOfLineCharacter)
public PrettyPrinterConfiguration setOrderImports(boolean orderImports)
Copyright © 2007–2017. All rights reserved.