java.lang.Object
com.google.googlejavaformat.InputOutput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcomputeRanges(List<? extends Input.Tok> toks) final StringgetLine(int lineI) Get a line.final intGet the line count.getRanges(int lineI) makeKToIJ(InputOutput put) Given anInputOutput, compute the map from tok indices to line ranges.protected final voidsetLines(ImmutableList<String> lines) Set the lines.toString()
-
Field Details
-
EMPTY_RANGE
-
ranges
TheRanges of the tokens or comments lying on each line, in any part.
-
-
Constructor Details
-
InputOutput
public InputOutput()
-
-
Method Details
-
setLines
Set the lines. -
getLineCount
public final int getLineCount()Get the line count.- Returns:
- the line count
-
getLine
Get a line.- Parameters:
lineI- the line number- Returns:
- the line
-
computeRanges
-
makeKToIJ
Given anInputOutput, compute the map from tok indices to line ranges.- Parameters:
put- theInputOutput- Returns:
- the map from
com.google.googlejavaformat.java.JavaInput.Tokindices to line ranges in thisput
-
getRanges
-
toString
-