Class BeforeExecutionFileFilterSet
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilterSet
-
- All Implemented Interfaces:
BeforeExecutionFileFilter
public final class BeforeExecutionFileFilterSet extends Object implements BeforeExecutionFileFilter
A before execution file filter set applies filters to events. If a before execution file filter in the set rejects an event, then the event is rejected. Otherwise, the event is accepted.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<BeforeExecutionFileFilter>
beforeExecutionFileFilters
Filter set.
-
Constructor Summary
Constructors Constructor Description BeforeExecutionFileFilterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(String uri)
Determines whether or not a before execution file filtered event is accepted.void
addBeforeExecutionFileFilter(BeforeExecutionFileFilter filter)
Adds a Filter to the set.void
clear()
Clears the BeforeExecutionFileFilterSet.Set<BeforeExecutionFileFilter>
getBeforeExecutionFileFilters()
Returns the Filters of the filter set.void
removeBeforeExecutionFileFilter(BeforeExecutionFileFilter filter)
Removes filter.String
toString()
-
-
-
Field Detail
-
beforeExecutionFileFilters
private final Set<BeforeExecutionFileFilter> beforeExecutionFileFilters
Filter set.
-
-
Constructor Detail
-
BeforeExecutionFileFilterSet
public BeforeExecutionFileFilterSet()
-
-
Method Detail
-
addBeforeExecutionFileFilter
public void addBeforeExecutionFileFilter(BeforeExecutionFileFilter filter)
Adds a Filter to the set.- Parameters:
filter
- the Filter to add.
-
removeBeforeExecutionFileFilter
public void removeBeforeExecutionFileFilter(BeforeExecutionFileFilter filter)
Removes filter.- Parameters:
filter
- filter to remove.
-
getBeforeExecutionFileFilters
public Set<BeforeExecutionFileFilter> getBeforeExecutionFileFilters()
Returns the Filters of the filter set.- Returns:
- the Filters of the filter set.
-
accept
public boolean accept(String uri)
Description copied from interface:BeforeExecutionFileFilter
Determines whether or not a before execution file filtered event is accepted.- Specified by:
accept
in interfaceBeforeExecutionFileFilter
- Parameters:
uri
- the uri to filter.- Returns:
- true if the event is accepted.
-
clear
public void clear()
Clears the BeforeExecutionFileFilterSet.
-
-