public class GlobPatternMatcher extends Object implements PathMatcher
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getPathOrGlob()
Returns a path or glob pattern identifying paths that should be matched by this matcher.
|
int |
hashCode() |
boolean |
matches(Path path) |
static GlobPatternMatcher |
of(String globPattern) |
String |
toString() |
com.google.common.collect.ImmutableList<?> |
toWatchmanMatchQuery(Set<Capability> capabilities)
Transforms this matcher into a Watchman match query arguments matching the same set of paths as
this matcher.
|
public boolean matches(Path path)
matches
in interface PathMatcher
public com.google.common.collect.ImmutableList<?> toWatchmanMatchQuery(Set<Capability> capabilities)
PathMatcher
public String getPathOrGlob()
PathMatcher
public static GlobPatternMatcher of(String globPattern)
basePath
.