|
||||||||||
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 processes AuditEvent
objects based on the criteria of file, check, module id, line, and
column. It rejects an AuditEvent if the following match:
Constructor Summary | |
---|---|
SuppressElement(String aFiles)
Constructs a SuppressElement for a
file name pattern. |
Method Summary | |
---|---|
boolean |
accept(AuditEvent aEvent)
Determines whether or not a filtered AuditEvent is accepted. |
boolean |
equals(Object aObject)
|
int |
hashCode()
|
void |
setChecks(String aChecks)
Set the check class pattern. |
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. |
void |
setModuleId(String aModuleId)
Set the module id for filtering. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SuppressElement(String aFiles) throws PatternSyntaxException
SuppressElement
for a
file name pattern. Must either call setColumns(String)
or
setModuleId(String)
before using this object.
aFiles
- regular expression for names of filtered files.
PatternSyntaxException
- if there is an error.Method Detail |
---|
public void setChecks(String aChecks)
aChecks
- regular expression for filtered check classes.public void setModuleId(String aModuleId)
aModuleId
- the idpublic 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 |