public class OneOrMoreMatcher extends CustomDefaultLabelMatcher<OneOrMoreMatcher>
Matcher
that repeatedly tries its submatcher against the input.
Succeeds if its submatcher succeeds at least once.Modifier and Type | Field and Description |
---|---|
Matcher |
subMatcher |
Constructor and Description |
---|
OneOrMoreMatcher(Rule subRule) |
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.
|
defaultLabel, getLabel, hasCustomLabel
areMismatchesMemoed, areSubnodesSuppressed, getSubContext, getTag, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public final Matcher subMatcher
public OneOrMoreMatcher(Rule subRule)
public boolean match(MatcherContext context)
Matcher
context
- the MatcherContextpublic <R> R accept(MatcherVisitor<R> visitor)
Matcher
visitor
- the visitor