public abstract class CharMatcher extends Object
| Constructor and Description |
|---|
CharMatcher() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.match(int). |
abstract boolean |
match(int c)
Check if a given code point matches this
CharMatcher. |
public abstract boolean match(int c)
CharMatcher.c - any code point.true if the character matches.CompilerDirectives.isPartialEvaluationConstant(Object)public abstract int estimatedCost()
CharMatcher.match(int).CharMatcher.match(int) is roughly
equivalent to. Array loads are treated as two comparisons.