public class AnyOfMatcher extends AbstractMatcher
Matcher
matching a single character out of a given Characters
set.Modifier and Type | Field and Description |
---|---|
Characters |
characters |
Constructor and Description |
---|
AnyOfMatcher(Characters characters) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor.
|
boolean |
match(MatcherContext context)
Tries a match on the given MatcherContext.
|
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
public final Characters characters
public AnyOfMatcher(Characters characters)
public boolean match(MatcherContext context)
Matcher
context
- the MatcherContextpublic <R> R accept(MatcherVisitor<R> visitor)
Matcher
visitor
- the visitor