public abstract class CustomMatcher extends AbstractMatcher
Modifier | Constructor and Description |
---|---|
protected |
CustomMatcher(Rule[] subRules,
java.lang.String label) |
protected |
CustomMatcher(Rule subRule,
java.lang.String label) |
protected |
CustomMatcher(java.lang.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, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
protected CustomMatcher(java.lang.String label)
protected CustomMatcher(Rule subRule, java.lang.String label)
protected CustomMatcher(Rule[] subRules, java.lang.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)
Matcher
visitor
- the visitor