public class OrMatcher extends StringMatcher
StringMatcher tests whether strings matches at least one of the given StringMatcher instances.| Constructor and Description |
|---|
OrMatcher(StringMatcher... matchers)
Creates a new OrMatcher with the given string matchers.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
matchespublic OrMatcher(StringMatcher... matchers)
protected boolean matches(java.lang.String string,
int beginOffset,
int endOffset)
StringMatchermatches in class StringMatcherstring - the string to match.beginOffset - the start offset of the substring (inclusive).endOffset - the end offset of the substring (exclusive).