public final class NullHighByteBitSetMatcher extends InvertibleCharMatcher
BitSetMatcher that exists simply because ascii bit set matchers occur often
and we can save one comparison when the high byte is 0x00.| Modifier and Type | Method and Description |
|---|---|
static NullHighByteBitSetMatcher |
create(boolean inverse,
long[] bitSet) |
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.match(int). |
boolean |
match(int c)
Check if a given code point matches this
CharMatcher. |
String |
toString() |
modifiersToString, result, resultpublic static NullHighByteBitSetMatcher create(boolean inverse, long[] bitSet)
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.