public final class AnyOfMatcher extends AbstractMatcher
Matcher
matching a single character out of a given Characters
set.Constructor and Description |
---|
AnyOfMatcher(Characters characters) |
Modifier and Type | Method and Description |
---|---|
Characters |
getCharacters() |
MatcherType |
getType()
Returns the type of this matcher
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
getLabel, getSubContext, hasCustomLabel, label, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public AnyOfMatcher(Characters characters)
public MatcherType getType()
Matcher
MatcherType
public Characters getCharacters()
public <V> boolean match(MatcherContext<V> context)
Matcher
context
- the MatcherContext