public class BeautifyOption
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
BeautifyOption |
breakChainedMethods(boolean breakChainedMethods) |
BeautifyOption |
commaFirst(boolean commaFirst) |
static BeautifyOption |
create() |
BeautifyOption |
e4x(boolean e4x) |
BeautifyOption |
endWithNewline(boolean endWithNewline) |
BeautifyOption |
eol(java.lang.String eol)
换行符,默认为"\n"
|
BeautifyOption |
indentChar(java.lang.String indentChar)
缩进使用的字符,默认为一个空格
|
BeautifyOption |
indentLevel(int indentLevel) |
BeautifyOption |
indentSize(int indentSize)
缩进个数,默认为4
|
BeautifyOption |
indentWithTabs(boolean indentWithTabs)
是否使用tab来作为缩进字符,默认为false
|
BeautifyOption |
jslintHappy(boolean jslintHappy) |
BeautifyOption |
keepArrayIndentation(boolean keepArrayIndentation) |
BeautifyOption |
maxPreserveNewlines(int maxPreserveNewlines) |
BeautifyOption |
operatorPosition(java.lang.String operatorPosition) |
BeautifyOption |
preserveNewlines(boolean preserveNewlines) |
BeautifyOption |
spaceAfterAnonFunction(boolean spaceAfterAnonFunction) |
BeautifyOption |
spaceInEmptyParen(boolean spaceInEmptyParen) |
BeautifyOption |
spaceInParen(boolean spaceInParen) |
java.util.Map<java.lang.String,java.lang.Object> |
toFormatArgument() |
BeautifyOption |
unescapeStrings(boolean unescapeStrings) |
BeautifyOption |
unindentChainedMethods(boolean unindentChainedMethods) |
BeautifyOption |
wrapLineLength(int wrapLineLength) |
public static BeautifyOption create()
public BeautifyOption indentSize(int indentSize)
indentSize
- 缩进个数public BeautifyOption indentChar(java.lang.String indentChar)
indentChar
- 缩进字符public BeautifyOption indentWithTabs(boolean indentWithTabs)
indentWithTabs
- 使用tab作为缩进字符则返回true,否则返回falsepublic BeautifyOption eol(java.lang.String eol)
eol
- 换行符public BeautifyOption endWithNewline(boolean endWithNewline)
public BeautifyOption indentLevel(int indentLevel)
public BeautifyOption preserveNewlines(boolean preserveNewlines)
public BeautifyOption maxPreserveNewlines(int maxPreserveNewlines)
public BeautifyOption spaceInParen(boolean spaceInParen)
public BeautifyOption spaceInEmptyParen(boolean spaceInEmptyParen)
public BeautifyOption jslintHappy(boolean jslintHappy)
public BeautifyOption spaceAfterAnonFunction(boolean spaceAfterAnonFunction)
public BeautifyOption unindentChainedMethods(boolean unindentChainedMethods)
public BeautifyOption breakChainedMethods(boolean breakChainedMethods)
public BeautifyOption keepArrayIndentation(boolean keepArrayIndentation)
public BeautifyOption unescapeStrings(boolean unescapeStrings)
public BeautifyOption wrapLineLength(int wrapLineLength)
public BeautifyOption e4x(boolean e4x)
public BeautifyOption commaFirst(boolean commaFirst)
public BeautifyOption operatorPosition(java.lang.String operatorPosition)
public java.util.Map<java.lang.String,java.lang.Object> toFormatArgument()