Class BeforeExecutionFileFilterSet
java.lang.Object
com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilterSet
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
beforeExecutionFileFilters
Filter set.
-
-
Constructor Details
-
BeforeExecutionFileFilterSet
public BeforeExecutionFileFilterSet()
-
-
Method Details
-
addBeforeExecutionFileFilter
Adds a Filter to the set.- Parameters:
filter
- the Filter to add.
-
removeBeforeExecutionFileFilter
Removes filter.- Parameters:
filter
- filter to remove.
-
getBeforeExecutionFileFilters
Returns the Filters of the filter set.- Returns:
- the Filters of the filter set.
-
toString
-
accept
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
Clears the BeforeExecutionFileFilterSet.
-