public abstract class CharMatcher
extends com.oracle.truffle.api.nodes.Node
| Modifier and Type | Field and Description |
|---|---|
static CharMatcher[] |
EMPTY |
| Constructor and Description |
|---|
CharMatcher() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.execute(int). |
abstract boolean |
execute(int c)
Check if a given code point matches this
CharMatcher. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic static final CharMatcher[] EMPTY
public abstract boolean execute(int c)
CharMatcher.c - any code point.true if the character matches.CompilerDirectives.isPartialEvaluationConstant(Object)public abstract int estimatedCost()
CharMatcher.execute(int).CharMatcher.execute(int) is roughly
equivalent to. Array loads are treated as two comparisons.