public class LineSet extends Object
| Constructor and Description |
|---|
LineSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLineAndCol(int aLineNum,
int aCol)
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 aLineNum)
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 Integer getStartColumn(Integer aLineNum)
aLineNum - the specified line numberpublic int firstLineCol()
public int firstLine()
public int lastLine()
public void addLineAndCol(int aLineNum,
int aCol)
aLineNum - the line to addaCol - the starting column of the new linepublic boolean isEmpty()
Copyright © 2001-2014. All Rights Reserved.