public final class RangeListMatcher extends InvertibleCharMatcher
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUMBER_OF_RANGES
This matcher should be used only if the number of ranges is less or equal to this threshold.
|
| Modifier and Type | Method and Description |
|---|---|
static RangeListMatcher |
create(boolean invert,
int[] ranges) |
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 final int MAX_NUMBER_OF_RANGES
public static RangeListMatcher create(boolean invert, int[] ranges)
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.