Top Description Fields Constructors Methods
org.eclipse.jgit.ignore.internal

public Class WildCardMatcher

extends NameMatcher
Class Inheritance
Static Imports
org.eclipse.jgit.ignore.internal.Strings.convertGlob

Matcher built from path segments containing wildcards. This matcher converts glob wildcards to Java java.util.regex.Pattern's.

This class is immutable and thread safe.

Field Summary

Modifier and TypeField and Description
pack-priv final Pattern
p

Inherited from org.eclipse.jgit.ignore.internal.NameMatcher:
beginningslashsubPattern

Constructor Summary

AccessConstructor and Description
pack-priv
WildCardMatcher(String pattern, Character pathSeparator, boolean dirOnly)

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(String
string which is not null, but might be empty
segment
,
int
start index, inclusive
startIncl
,
int
end index, exclusive
endExcl
)

Overrides org.eclipse.jgit.ignore.internal.NameMatcher.matches.

Implements org.eclipse.jgit.ignore.IMatcher.matches.

Matches only part of given string

Inherited from org.eclipse.jgit.ignore.internal.NameMatcher:
matches

Field Detail

pback to summary
pack-priv final Pattern p

Constructor Detail

WildCardMatcherback to summary
pack-priv WildCardMatcher(String pattern, Character pathSeparator, boolean dirOnly) throws InvalidPatternException

Method Detail

matchesback to summary
public boolean matches(String segment, int startIncl, int endExcl)

Overrides org.eclipse.jgit.ignore.internal.NameMatcher.matches.

Implements org.eclipse.jgit.ignore.IMatcher.matches.

Doc from org.eclipse.jgit.ignore.IMatcher.matches.

Matches only part of given string

Parameters
segment:String

string which is not null, but might be empty

startIncl:int

start index, inclusive

endExcl:int

end index, exclusive

Returns:boolean

true if this matcher pattern matches given string

Annotations
@Override