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

public final Class WildMatcher

extends AbstractMatcher
Class Inheritance

Wildmatch matcher for "double star" (**) pattern only. This matcher matches any path.

This class is immutable and thread safe.

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final String
Inherited from org.eclipse.jgit.ignore.internal.AbstractMatcher:
dirOnlypattern

Constructor Summary

AccessConstructor and Description
pack-priv
WildMatcher(boolean dirOnly)

Method Summary

Modifier and TypeMethod and Description
private static boolean
public final boolean
matches(String
string which is not null, but might be empty
path
,
boolean
true to assume this path as directory (even if it doesn't end with a slash)
assumeDirectory
,
boolean
true if the match is for the full path: prefix-only matches are not allowed
pathMatch
)

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

Matches entire given string

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

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

Matches only part of given string

Inherited from org.eclipse.jgit.ignore.internal.AbstractMatcher:
equalshashCodetoString

Field Detail

WILDMATCHback to summary
pack-priv static final String WILDMATCH
WILDMATCH2back to summary
pack-priv static final String WILDMATCH2

Constructor Detail

WildMatcherback to summary
pack-priv WildMatcher(boolean dirOnly)

Method Detail

isSubdirectoryback to summary
private static boolean isSubdirectory(String path)
matchesback to summary
public final boolean matches(String path, boolean assumeDirectory, boolean pathMatch)

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

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

Matches entire given string

Parameters
path:String

string which is not null, but might be empty

assumeDirectory:boolean

true to assume this path as directory (even if it doesn't end with a slash)

pathMatch:boolean

true if the match is for the full path: prefix-only matches are not allowed

Returns:boolean

true if this matcher pattern matches given string

Annotations
@Override
matchesback to summary
public final boolean matches(String segment, int startIncl, int endExcl)

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