Class SuppressWarningsHolder.Entry
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder.Entry
- Enclosing class:
- SuppressWarningsHolder
Records a particular suppression for a region of a file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The source name of the suppressed check.private final int
The suppression region for the check - first column.private final int
The suppression region for the check - first line.private final int
The suppression region for the check - last column.private final int
The suppression region for the check - last line. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the source name of the suppressed check.int
Gets the first column of the suppression region.int
Gets the first line of the suppression region.int
Gets the last column of the suppression region.int
Gets the last line of the suppression region.
-
Field Details
-
checkName
The source name of the suppressed check. -
firstLine
The suppression region for the check - first line. -
firstColumn
The suppression region for the check - first column. -
lastLine
The suppression region for the check - last line. -
lastColumn
The suppression region for the check - last column.
-
-
Constructor Details
-
Entry
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 Details
-
getCheckName
Gets the source name of the suppressed check.- Returns:
- the source name of the suppressed check
-
getFirstLine
Gets the first line of the suppression region.- Returns:
- the first line of the suppression region
-
getFirstColumn
Gets the first column of the suppression region.- Returns:
- the first column of the suppression region
-
getLastLine
Gets the last line of the suppression region.- Returns:
- the last line of the suppression region
-
getLastColumn
Gets the last column of the suppression region.- Returns:
- the last column of the suppression region
-