public final class MultiBitSetMatcher extends InvertibleCharMatcher
| Modifier and Type | Method and Description |
|---|---|
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.match(int). |
static MultiBitSetMatcher |
fromRanges(boolean inverse,
ImmutableSortedListOfIntRanges cps) |
boolean |
match(int c)
Check if a given code point matches this
CharMatcher. |
String |
toString() |
modifiersToString, result, resultpublic static MultiBitSetMatcher fromRanges(boolean inverse, ImmutableSortedListOfIntRanges cps)
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.