public class RegexPathMatcher extends Object implements PathMatcher
ANT, REGEX
Constructor and Description |
---|
RegexPathMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String pattern,
String source)
Returns
true if the given source matches the specified pattern ,
false otherwise. |
public boolean matches(String pattern, String source)
PathMatcher
true
if the given source
matches the specified pattern
,
false
otherwise.matches
in interface PathMatcher
pattern
- the pattern to match againstsource
- the source to matchtrue
if the given source
matches the specified pattern
,
false
otherwise.