Package org.apache.rat.mp.util.ignore
Interface IgnoreMatcher
- All Known Implementing Classes:
GitIgnoreMatcher,GlobIgnoreMatcher
public interface IgnoreMatcher
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()Returnstrueif this IgnoreMatcher contains no rules.isIgnoredFile(String filename)Checks if the file matches the stored expressions.
-
Method Details
-
isIgnoredFile
Checks if the file matches the stored expressions.- Parameters:
filename- The filename to be checked- Returns:
- empty: not matched, True: must be ignored, False: it must be UNignored
-
isEmpty
boolean isEmpty()Returnstrueif this IgnoreMatcher contains no rules.- Returns:
trueif this IgnoreMatcher contains no rules
-