public abstract class CustomMatcher extends AbstractMatcher
| Modifier | Constructor and Description |
|---|---|
protected |
CustomMatcher(Rule[] subRules,
String label) |
protected |
CustomMatcher(Rule subRule,
String label) |
protected |
CustomMatcher(String label) |
| 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, toStringgetChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenprotected CustomMatcher(String label)
public 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 visitorCopyright © 2019. All rights reserved.