com.puppycrawl.tools.checkstyle.filters

Class SuppressionFilter

Implemented Interfaces:
Configurable, Contextualizable, Filter

public class SuppressionFilter
extends AutomaticBean
implements Filter

This filter accepts AuditEvents according to file, check, line, and column, as specified in a suppression file.

Author:
Rick Giles

Method Summary

boolean
accept(AuditEvent aEvent)
boolean
equals(Object aObject)
int
hashCode()
void
setFile(String aFileName)
Loads the suppressions for a file.
String
toString()

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Method Details

accept

public boolean accept(AuditEvent aEvent)
Specified by:
accept in interface Filter

See Also:
Filter


equals

public boolean equals(Object aObject)

See Also:
java.lang.Object.equals(java.lang.Object)


hashCode

public int hashCode()

See Also:
java.lang.Object.hashCode()


setFile

public void setFile(String aFileName)
            throws CheckstyleException
Loads the suppressions for a file.

Parameters:
aFileName - name of the suppressions file.

Throws:
CheckstyleException - if there is an error.


toString

public String toString()

See Also:
java.lang.Object.toString()