Class SuppressWarningsHolder.Entry
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder.Entry
-
- Enclosing class:
- SuppressWarningsHolder
private static class SuppressWarningsHolder.Entry extends java.lang.Object
Records a particular suppression for a region of a file.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcheckNameThe source name of the suppressed check.private intfirstColumnThe suppression region for the check - first column.private intfirstLineThe suppression region for the check - first line.private intlastColumnThe suppression region for the check - last column.private intlastLineThe suppression region for the check - last line.
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String checkName, int firstLine, int firstColumn, int lastLine, int lastColumn)Constructs a new suppression region entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCheckName()Gets he source name of the suppressed check.intgetFirstColumn()Gets the first column of the suppression region.intgetFirstLine()Gets the first line of the suppression region.intgetLastColumn()Gets the last column of the suppression region.intgetLastLine()Gets the last line of the suppression region.
-
-
-
Field Detail
-
checkName
private final java.lang.String checkName
The source name of the suppressed check.
-
firstLine
private final int firstLine
The suppression region for the check - first line.
-
firstColumn
private final int firstColumn
The suppression region for the check - first column.
-
lastLine
private final int lastLine
The suppression region for the check - last line.
-
lastColumn
private final int lastColumn
The suppression region for the check - last column.
-
-
Constructor Detail
-
Entry
Entry(java.lang.String checkName, int firstLine, int firstColumn, int lastLine, int lastColumn)
Constructs a new suppression region entry.- Parameters:
checkName- the source name of the suppressed checkfirstLine- the first line of the suppression regionfirstColumn- the first column of the suppression regionlastLine- the last line of the suppression regionlastColumn- the last column of the suppression region
-
-
Method Detail
-
getCheckName
public java.lang.String getCheckName()
Gets he source name of the suppressed check.- Returns:
- the source name of the suppressed check
-
getFirstLine
public int getFirstLine()
Gets the first line of the suppression region.- Returns:
- the first line of the suppression region
-
getFirstColumn
public int getFirstColumn()
Gets the first column of the suppression region.- Returns:
- the first column of the suppression region
-
getLastLine
public int getLastLine()
Gets the last line of the suppression region.- Returns:
- the last line of the suppression region
-
getLastColumn
public int getLastColumn()
Gets the last column of the suppression region.- Returns:
- the last column of the suppression region
-
-