com.puppycrawl.tools.checkstyle.filters
Class SuppressElement
java.lang.Object
com.puppycrawl.tools.checkstyle.filters.SuppressElement
- Filter
public class SuppressElement
extends java.lang.Object
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.
- Rick Giles
SuppressElement(String aFiles, String aChecks) - Constructs a
SuppressElement for a
file name pattern and and a check class pattern.
|
SuppressElement
public SuppressElement(String aFiles,
String aChecks)
throws RESyntaxException
Constructs a SuppressElement
for a
file name pattern and and a check class pattern.
aFiles
- regular expression for names of filtered files.aChecks
- regular expression for filtered check classes.
equals
public boolean equals(Object aObject)
java.lang.Object.equals(java.lang.Object)
hashCode
public int hashCode()
java.lang.Object.hashCode()
setColumns
public void setColumns(String aColumns)
Sets the CSV values and ranges for column number filtering.
E.g. "1,7-15,18".
aColumns
- CSV values and ranges for column number filtering.
setLines
public void setLines(String aLines)
Sets the CSV values and ranges for line number filtering.
E.g. "1,7-15,18".
aLines
- CSV values and ranges for line number filtering.
toString
public String toString()
java.lang.Object.toString()