Modifier and Type | Field and Description |
---|---|
protected static Range<Integer> |
EMPTY_RANGE |
protected List<Range<Integer>> |
range0s
The
Range s of the tokens or comments beginning on each line. |
protected List<Range<Integer>> |
range1s
The
Range s of the tokens or comments ending on each line. |
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> |
getRange0s(int lineI)
|
Range<Integer> |
getRange1s(int lineI)
|
Range<Integer> |
getRanges(int lineI)
|
static Map<Integer,Range<Integer>> |
makeKToIJ(InputOutput put,
int kN)
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 List<Range<Integer>> range0s
Range
s of the tokens or comments beginning on each line.protected final List<Range<Integer>> ranges
Range
s of the tokens or comments lying on each line, in any part.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, int kN)
InputOutput
, compute the map from tok indices to line ranges.put
- the InputOutput
kN
- the number of tokensJavaInput.Tok
indices to line
ranges in this put
Copyright © 2015–2017 Google Inc.. All rights reserved.