public class FileExtensionMatcher 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 FileExtensionMatcher |
of(String extension) |
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 PathMatcherpublic com.google.common.collect.ImmutableList<?> toWatchmanMatchQuery(Set<Capability> capabilities)
PathMatcherpublic String getPathOrGlob()
PathMatcherpublic static FileExtensionMatcher of(String extension)
extension as an extension.