public abstract class SingleCharMatcher extends InvertibleCharMatcher
EMPTY| Modifier and Type | Method and Description |
|---|---|
static SingleCharMatcher |
create(boolean invert,
int c) |
int |
estimatedCost()
Conservatively estimate the equivalent number of integer comparisons of calling
CharMatcher.execute(int). |
int |
getChar() |
boolean |
match(int m) |
String |
toString() |
modifiersToString, resultexecuteaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic static SingleCharMatcher create(boolean invert, int c)
public int getChar()
public boolean match(int m)
public int estimatedCost()
CharMatcherCharMatcher.execute(int).estimatedCost in class CharMatcherCharMatcher.execute(int) is roughly
equivalent to. Array loads are treated as two comparisons.public String toString()
toString in class com.oracle.truffle.api.nodes.Node