类 JavaOutput
java.lang.Object
com.palantir.javaformat.InputOutput
com.palantir.javaformat.Output
com.palantir.javaformat.java.JavaOutput
JavaOutput extends Output to represent a Java output document. It includes methods to emit the
output document.-
字段概要
从类继承的字段 com.palantir.javaformat.InputOutput
EMPTY_RANGE, ranges -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidOutput a string.static Input.TokendTok(Input.Token token) The last non-whitespace Tok in the Token.com.google.common.collect.ImmutableList<com.palantir.javaformat.java.Replacement> getFormatReplacements(com.google.common.collect.RangeSet<Integer> iRangeSet0) Emit a list ofReplacements to convert from input to output.voidindent(int indent) Indent by outputtingindentspaces.static intstartPosition(Input.Token token) The earliest position of any Tok in the Token, including leading whitespace.static Input.TokstartTok(Input.Token token) The earliest non-whitespace Tok in the Token.toString()从类继承的方法 com.palantir.javaformat.InputOutput
computeRanges, getLine, getLineCount, getRanges, makeKToIJ, setLines
-
构造器详细资料
-
JavaOutput
JavaOutputconstructor.- 参数:
javaInput- theJavaInput, used to match up blank lines in the output
-
-
方法详细资料
-
append
从类复制的说明:OutputOutput a string. -
indent
public void indent(int indent) 从类复制的说明:OutputIndent by outputtingindentspaces. -
getFormatReplacements
public com.google.common.collect.ImmutableList<com.palantir.javaformat.java.Replacement> getFormatReplacements(com.google.common.collect.RangeSet<Integer> iRangeSet0) Emit a list ofReplacements to convert from input to output.- 返回:
- a list of
Replacements, sorted by start index, without overlaps
-
startPosition
The earliest position of any Tok in the Token, including leading whitespace. -
startTok
The earliest non-whitespace Tok in the Token. -
endTok
The last non-whitespace Tok in the Token. -
toString
-