public abstract class CustomMatcher extends AbstractMatcher
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor.
|
abstract boolean |
canMatchEmpty()
Determines whether this matcher instance allows empty matches.
|
abstract char |
getStarterChar()
Returns one of possibly several chars that a match can start with.
|
abstract boolean |
isSingleCharMatcher()
Determines whether this matcher instance always matches exactly one character.
|
abstract boolean |
isStarterChar(char c)
Determines whether this matcher instance can start a match with the given char.
|
areMismatchesMemoed, areSubnodesSuppressed, getLabel, getSubContext, getTag, hasCustomLabel, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toStringgetChildrenequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenpublic abstract boolean isSingleCharMatcher()
public abstract boolean canMatchEmpty()
public abstract boolean isStarterChar(char c)
c - the charpublic abstract char getStarterChar()
public <R> R accept(MatcherVisitor<R> visitor)
Matchervisitor - the visitor