Class LineSet
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.indentation.LineSet
-
-
Constructor Summary
Constructors Constructor Description LineSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
LineSet
public LineSet()
-
-
Method Detail
-
getStartColumn
public Integer getStartColumn(Integer lineNum)
Get the starting column for a given line number.- Parameters:
lineNum
- the specified line number- Returns:
- the starting column for the given line number
-
firstLineCol
public int firstLineCol()
Get the starting column for the first line.- Returns:
- the starting column for the first line.
-
firstLine
public int firstLine()
Get the line number of the first line.- Returns:
- the line number of the first line
-
lastLine
public int lastLine()
Get the line number of the last line.- Returns:
- the line number of the last line
-
addLineAndCol
public void addLineAndCol(int lineNum, int col)
Add a line to this set of lines.- Parameters:
lineNum
- the line to addcol
- the starting column of the new line
-
isEmpty
public boolean isEmpty()
Determines if this set of lines is empty.- Returns:
- true if it is empty, false otherwise
-
-