|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.filters.SuppressElement
public class SuppressElement
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)
Determines whether or not a filtered AuditEvent is accepted. |
boolean |
equals(Object aObject)
|
int |
hashCode()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SuppressElement(String aFiles, String aChecks) throws PatternSyntaxException
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.
PatternSyntaxException
- if there is an error.Method Detail |
---|
public void setLines(String aLines)
aLines
- CSV values and ranges for line number filtering.public void setColumns(String aColumns)
aColumns
- CSV values and ranges for column number filtering.public boolean accept(AuditEvent aEvent)
accept
in interface Filter
aEvent
- the AudtiEvent to filter.
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object aObject)
equals
in class Object
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |