Package org.eclipse.jgit.ignore.internal
Class LeadingAsteriskMatcher
- java.lang.Object
-
- org.eclipse.jgit.ignore.internal.AbstractMatcher
-
- org.eclipse.jgit.ignore.internal.NameMatcher
-
- org.eclipse.jgit.ignore.internal.LeadingAsteriskMatcher
-
- All Implemented Interfaces:
IMatcher
public class LeadingAsteriskMatcher extends NameMatcher
Matcher for simple regex patterns starting with an asterisk, e.g. "*.tmp"
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(String segment, int startIncl, int endExcl)
Matches only part of given string-
Methods inherited from class org.eclipse.jgit.ignore.internal.NameMatcher
matches
-
Methods inherited from class org.eclipse.jgit.ignore.internal.AbstractMatcher
equals, hashCode, toString
-
-
-
-
Method Detail
-
matches
public boolean matches(String segment, int startIncl, int endExcl)
Matches only part of given string- Specified by:
matches
in interfaceIMatcher
- Overrides:
matches
in 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
-
-