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,
CompilationFinalBitSet bitSet)
Constructs a new bit-set-based character matcher.
|
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.execute(char, boolean). |
CompilationFinalBitSet |
getBitSet() |
boolean |
match(char c,
boolean compactString) |
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, CompilationFinalBitSet 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 CompilationFinalBitSet getBitSet()
public boolean match(char c,
boolean compactString)
public int estimatedCost()
CharMatcherCharMatcher.execute(char, boolean).estimatedCost in class CharMatcherCharMatcher.execute(char, boolean) is
roughly equivalent to. Array loads are treated as two comparisons.public String toString()
toString in class com.oracle.truffle.api.nodes.Node