com.puppycrawl.tools.checkstyle.filters
public class SuppressElement extends Object implements Filter
This filter accepts AuditEvents according to file, check, line, and column conditions. It rejects an AuditEvent if the event's file name and check name match the filter's file name and check name patterns, and the event's line is in the filter's line CSV or the check's columns is in the filter's column CSV.
Constructor Summary | |
---|---|
SuppressElement(String aFiles, String aChecks)
Constructs a SuppressElement for a
file name pattern and and a check class pattern. |
Method Summary | |
---|---|
boolean | accept(AuditEvent aEvent) {@inheritDoc} |
boolean | equals(Object aObject) {@inheritDoc} |
int | hashCode() {@inheritDoc} |
void | setColumns(String aColumns)
Sets the CSV values and ranges for column number filtering.
|
void | setLines(String aLines)
Sets the CSV values and ranges for line number filtering.
|
String | toString() {@inheritDoc} |
SuppressElement
for a
file name pattern and and a check class pattern.Parameters: aFiles regular expression for names of filtered files. aChecks regular expression for filtered check classes.
Throws: PatternSyntaxException if there is an error.
Parameters: aColumns CSV values and ranges for column number filtering.
Parameters: aLines CSV values and ranges for line number filtering.