public final class SuppressionsStringPrinter extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
LINE_SEPARATOR
OS specific line separator.
|
private static java.util.regex.Pattern |
VALID_SUPPRESSION_LINE_COLUMN_NUMBER_REGEX
Line and column number config value pattern.
|
| Modifier | Constructor and Description |
|---|---|
private |
SuppressionsStringPrinter()
Prevent instances.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
generate(FileText fileText,
DetailAST detailAST,
int lineNumber,
int columnNumber,
int tabWidth)
Creates
XpathQueryGenerator instance and generates suppressions. |
static java.lang.String |
printSuppressions(java.io.File file,
java.lang.String suppressionLineColumnNumber,
int tabWidth)
Prints generated suppressions.
|
private static final java.util.regex.Pattern VALID_SUPPRESSION_LINE_COLUMN_NUMBER_REGEX
private static final java.lang.String LINE_SEPARATOR
private SuppressionsStringPrinter()
public static java.lang.String printSuppressions(java.io.File file, java.lang.String suppressionLineColumnNumber, int tabWidth) throws java.io.IOException, CheckstyleException
file - the file to process.suppressionLineColumnNumber - line and column number of the suppressiontabWidth - length of the tab characterjava.io.IOException - if the file could not be read.java.lang.IllegalStateException - if suppressionLineColumnNumber is not of a valid format.CheckstyleException - if the file is not a Java source.private static java.lang.String generate(FileText fileText, DetailAST detailAST, int lineNumber, int columnNumber, int tabWidth)
XpathQueryGenerator instance and generates suppressions.fileText - FileText object.detailAST - DetailAST object.lineNumber - line number.columnNumber - column number.tabWidth - length of the tab character.Copyright © 2001-2022. All Rights Reserved.