public final class AnyMatcher extends CharMatcher
| Constructor and Description |
|---|
AnyMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static CharMatcher |
create() |
static CharMatcher |
create(boolean invert) |
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() |
public static CharMatcher create()
public static CharMatcher create(boolean invert)
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.