Class RegexMatcher
java.lang.Object
org.jdrupes.gitversioning.core.RegexMatcher
- All Implemented Interfaces:
IncludeMatcher
Matches paths against a Java regular expression.
Delegates to PathMatcher with the regex: scheme.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegexMatcher
Creates a new regex matcher.- Parameters:
pattern- the regular expression pattern
-
-
Method Details
-
matches
Description copied from interface:IncludeMatcherChecks whether the path matches the pattern.- Specified by:
matchesin interfaceIncludeMatcher- Parameters:
path- the file path (relative to the work tree)- Returns:
trueif the path matches
-