public final class TwoCharMatcher extends InvertibleCharMatcher
| Modifier and Type | Method and Description |
|---|---|
static TwoCharMatcher |
create(boolean invert,
int c1,
int c2) |
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.match(int). |
boolean |
match(int m)
Check if a given code point matches this
CharMatcher. |
String |
toString() |
modifiersToString, result, resultpublic static TwoCharMatcher create(boolean invert, int c1, int c2)
public boolean match(int m)
CharMatcherCharMatcher.match in class CharMatcherm - 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.