com.puppycrawl.tools.checkstyle.checks.indentation
Class LineSet
Represents a set of lines.
void | addLineAndCol(Integer 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()
|
addLineAndCol
public void addLineAndCol(Integer aLineNum,
int aCol) Add a line to this set of lines.
aLineNum - the line to addaCol - the starting column of the new line
firstLine
public int firstLine()
Get the line number of the first line.
- the line number of the first line
firstLineCol
public int firstLineCol()
Get the starting column for the first line.
- the starting column for the first line.
getStartColumn
public Integer getStartColumn(Integer aLineNum)
Get the starting column for a given line number.
aLineNum - the specified line number
- the starting column for the given line number
isEmpty
public boolean isEmpty()
Determines if this set of lines is empty.
- true if it is empty, false otherwise
lastLine
public int lastLine()
Get the line number of the last line.
- the line number of the last line
toString
public String toString()