com.puppycrawl.tools.checkstyle.filters

Class SuppressionFilter

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
booleanaccept(AuditEvent aEvent)
{@inheritDoc}
booleanequals(Object aObject)
{@inheritDoc}
inthashCode()
{@inheritDoc}
voidsetFile(String aFileName)
Loads the suppressions for a file.
StringtoString()
{@inheritDoc}

Method Detail

accept

public boolean accept(AuditEvent aEvent)
{@inheritDoc}

equals

public boolean equals(Object aObject)
{@inheritDoc}

hashCode

public int hashCode()
{@inheritDoc}

setFile

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

Parameters: aFileName name of the suppressions file.

Throws: CheckstyleException if there is an error.

toString

public String toString()
{@inheritDoc}