Package com.puppycrawl.tools.checkstyle
Class SuppressionsStringPrinter
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.SuppressionsStringPrinter
-
public final class SuppressionsStringPrinter extends Object
Class for constructing xpath queries to suppress nodes with specified line and column number.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
printSuppressions(File file, String suppressionLineColumnNumber, int tabWidth)
Prints generated suppressions.
-
-
-
Method Detail
-
printSuppressions
public static String printSuppressions(File file, String suppressionLineColumnNumber, int tabWidth) throws IOException, CheckstyleException
Prints generated suppressions.- Parameters:
file
- the file to process.suppressionLineColumnNumber
- line and column number of the suppressiontabWidth
- length of the tab character- Returns:
- generated suppressions.
- Throws:
IOException
- if the file could not be read.CheckstyleException
- if the file is not a Java source.
-
-