Package org.eclipse.jgit.ignore.internal
Class WildCardMatcher
java.lang.Object
org.eclipse.jgit.ignore.internal.AbstractMatcher
org.eclipse.jgit.ignore.internal.NameMatcher
org.eclipse.jgit.ignore.internal.WildCardMatcher
- All Implemented Interfaces:
IMatcher
Matcher built from path segments containing wildcards. This matcher converts
glob wildcards to Java
Pattern's.
This class is immutable and thread safe.
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.ignore.internal.NameMatcher
beginning, slash, subPatternFields inherited from class org.eclipse.jgit.ignore.internal.AbstractMatcher
dirOnly, pattern -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.ignore.internal.NameMatcher
matchesMethods inherited from class org.eclipse.jgit.ignore.internal.AbstractMatcher
equals, hashCode, toString
-
Field Details
-
p
-
-
Constructor Details
-
WildCardMatcher
WildCardMatcher(String pattern, Character pathSeparator, boolean dirOnly) throws InvalidPatternException - Throws:
InvalidPatternException
-
-
Method Details
-
matches
Matches only part of given string- Specified by:
matchesin interfaceIMatcher- Overrides:
matchesin classNameMatcher- Parameters:
segment- string which is not null, but might be emptystartIncl- start index, inclusiveendExcl- end index, exclusive- Returns:
- true if this matcher pattern matches given string
-