com.puppycrawl.tools.checkstyle.filters
Class SuppressionFilter
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.filters.SuppressionFilter
- All 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
SuppressionFilter
public SuppressionFilter()
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.
accept
public boolean accept(AuditEvent aEvent)
- Determines whether or not a filtered AuditEvent is accepted.
- Specified by:
accept
in interface Filter
- Parameters:
aEvent
- the AudtiEvent to filter.
- Returns:
- true if the aEvent is accepted.
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object aObject)
- Overrides:
equals
in class Object
Copyright © 2001-2012. All Rights Reserved.