public final class SingleRangeMatcher extends InvertibleCharMatcher
| Modifier and Type | Method and Description |
|---|---|
static SingleRangeMatcher |
create(boolean invert,
int lo,
int hi) |
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.match(int). |
int |
getHi() |
int |
getLo() |
boolean |
match(int c)
Check if a given code point matches this
CharMatcher. |
String |
toString() |
modifiersToString, result, resultpublic static SingleRangeMatcher create(boolean invert, int lo, int hi)
public int getLo()
public int getHi()
public boolean match(int c)
CharMatcherCharMatcher.match in class CharMatcherc - any code point.true if the character matches.CompilerDirectives.isPartialEvaluationConstant(Object)public int estimatedCost()
CharMatcherCharMatcher.match(int).estimatedCost in class CharMatcherCharMatcher.match(int) is roughly
equivalent to. Array loads are treated as two comparisons.