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

public Class TrailingAsteriskMatcher

extends NameMatcher
Class Inheritance

Matcher for simple patterns ending with an asterisk, e.g. "Makefile.*"

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
TrailingAsteriskMatcher(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

Constructor Detail

TrailingAsteriskMatcherback to summary
pack-priv TrailingAsteriskMatcher(String pattern, Character pathSeparator, boolean dirOnly)

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