Modifier and Type | Field and Description |
---|---|
protected static Range<Integer> |
EMPTY_RANGE |
protected List<Range<Integer>> |
ranges
The
Range s of the tokens or comments lying on each line, in any part. |
Constructor and Description |
---|
InputOutput() |
Modifier and Type | Method and Description |
---|---|
protected void |
computeRanges(List<? extends Input.Tok> toks) |
String |
getLine(int lineI)
Get a line.
|
int |
getLineCount()
Get the line count.
|
Range<Integer> |
getRanges(int lineI)
|
static Map<Integer,Range<Integer>> |
makeKToIJ(InputOutput put)
Given an
InputOutput , compute the map from tok indices to line ranges. |
protected void |
setLines(ImmutableList<String> lines)
Set the lines.
|
String |
toString() |
protected final void setLines(ImmutableList<String> lines)
public final int getLineCount()
public final String getLine(int lineI)
lineI
- the line numberpublic static Map<Integer,Range<Integer>> makeKToIJ(InputOutput put)
InputOutput
, compute the map from tok indices to line ranges.put
- the InputOutput
JavaInput.Tok
indices to line
ranges in this put
Copyright © 2015–2017 Google Inc.. All rights reserved.