public abstract class BitSetMatcher extends InvertibleCharMatcher
တ, ဠ, ူ have a common high byte 0x10, so they
are matched by this high byte and a bit set that matches 0x10, 0x20 and
0x30.EMPTY| Modifier and Type | Method and Description |
|---|---|
static InvertibleCharMatcher |
create(boolean invert,
int highByte,
long[] bitSet)
Constructs a new bit-set-based character matcher.
|
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.execute(int). |
long[] |
getBitSet() |
boolean |
match(int c) |
String |
toString() |
modifiersToString, resultexecuteaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic static InvertibleCharMatcher create(boolean invert, int highByte, long[] bitSet)
invert - see InvertibleCharMatcher.highByte - the high byte common to all characters to match.bitSet - the bit set to match the low byte of the characters to match.BitSetMatcher or a NullHighByteBitSetMatcher.public long[] getBitSet()
public boolean match(int c)
public int estimatedCost()
CharMatcherCharMatcher.execute(int).estimatedCost in class CharMatcherCharMatcher.execute(int) is roughly
equivalent to. Array loads are treated as two comparisons.public String toString()
toString in class com.oracle.truffle.api.nodes.Node