Class FilterSet
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.FilterSet
-
-
Constructor Summary
Constructors Constructor Description FilterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(AuditEvent event)Determines whether or not a filtered AuditEvent is accepted.voidaddFilter(Filter filter)Adds a Filter to the set.voidclear()Clears the FilterSet.java.util.Set<Filter>getFilters()Returns the Filters of the filter set.voidremoveFilter(Filter filter)Removes filter.java.lang.StringtoString()
-
-
-
Constructor Detail
-
FilterSet
public FilterSet()
-
-
Method Detail
-
addFilter
public void addFilter(Filter filter)
Adds a Filter to the set.- Parameters:
filter- the Filter to add.
-
removeFilter
public void removeFilter(Filter filter)
Removes filter.- Parameters:
filter- filter to remove.
-
getFilters
public java.util.Set<Filter> getFilters()
Returns the Filters of the filter set.- Returns:
- the Filters of the filter set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
accept
public boolean accept(AuditEvent event)
Description copied from interface:FilterDetermines whether or not a filtered AuditEvent is accepted.
-
clear
public void clear()
Clears the FilterSet.
-
-