类 InputOutput
java.lang.Object
com.palantir.javaformat.InputOutput
-
字段概要
字段修饰符和类型字段说明protected static final com.google.common.collect.Range<Integer> TheRanges of the tokens or comments lying on each line, in any part. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final voidcomputeRanges(List<? extends Input.Tok> toks) final StringgetLine(int lineI) Get a line.final intGet the line count.final com.google.common.collect.Range<Integer> getRanges(int lineI) Get theRangeofInput.Toks lying in any part on a line.makeKToIJ(InputOutput put) Given anInputOutput, compute the map from tok indices to line ranges.protected final voidSet the lines.toString()
-
字段详细资料
-
EMPTY_RANGE
-
ranges
TheRanges of the tokens or comments lying on each line, in any part.
-
-
构造器详细资料
-
InputOutput
public InputOutput()
-
-
方法详细资料
-
setLines
Set the lines. -
getLineCount
public final int getLineCount()Get the line count.- 返回:
- the line count
-
getLine
Get a line.- 参数:
lineI- the line number- 返回:
- the line
-
computeRanges
-
makeKToIJ
Given anInputOutput, compute the map from tok indices to line ranges.- 参数:
put- theInputOutput- 返回:
- the map from
com.google.googlejavaformat.java.JavaInput.Tokindices to line ranges in thisput
-
getRanges
Get theRangeofInput.Toks lying in any part on a line.- 参数:
lineI- the line number- 返回:
- the
RangeofInput.Toks on the specified line
-
toString
-