public final class OneOrMoreMatcher extends CustomDefaultLabelMatcher<OneOrMoreMatcher>
Matcher that repeatedly tries its submatcher against the input.
Succeeds if its submatcher succeeds at least once.| Constructor and Description |
|---|
OneOrMoreMatcher(Rule subRule) |
| Modifier and Type | Method and Description |
|---|---|
MatcherType |
getType()
Returns the type of this matcher
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
getLabel, hasCustomLabelgetSubContext, label, toStringgetChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenpublic OneOrMoreMatcher(Rule subRule)
public MatcherType getType()
MatcherMatcherTypepublic <V> boolean match(MatcherContext<V> context)
Matchercontext - the MatcherContext