Constructor and Description |
---|
LineSet() |
Modifier and Type | Method and Description |
---|---|
void |
addLineAndCol(int lineNum,
int col)
Add a line to this set of lines.
|
int |
firstLine()
Get the line number of the first line.
|
int |
firstLineCol()
Get the starting column for the first line.
|
Integer |
getStartColumn(Integer lineNum)
Get the starting column for a given line number.
|
boolean |
isEmpty()
Determines if this set of lines is empty.
|
int |
lastLine()
Get the line number of the last line.
|
String |
toString() |
public LineSet()
public Integer getStartColumn(Integer lineNum)
lineNum
- the specified line numberpublic int firstLineCol()
public int firstLine()
public int lastLine()
public void addLineAndCol(int lineNum, int col)
lineNum
- the line to addcol
- the starting column of the new linepublic boolean isEmpty()
Copyright © 2001–2018. All rights reserved.