public class FixedStringMatcher extends StringMatcher
| Constructor and Description |
|---|
FixedStringMatcher(String fixedString)
Creates a new FixedStringMatcher.
|
FixedStringMatcher(String fixedString,
StringMatcher nextMatcher)
Creates a new FixedStringMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
matchespublic FixedStringMatcher(String fixedString)
fixedString - the string to match.public FixedStringMatcher(String fixedString, StringMatcher nextMatcher)
fixedString - the string prefix to match.nextMatcher - an optional string matcher to match the remainder of
the string.protected boolean matches(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).Copyright © 2019. All rights reserved.