public class FirstOfMatcher extends CustomDefaultLabelMatcher<FirstOfMatcher>
Matcher trying all of its submatchers in sequence and succeeding when the first submatcher succeeds.| Constructor and Description |
|---|
FirstOfMatcher(Rule[] subRules) |
| 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, hasCustomLabelareMismatchesMemoed, areSubnodesSuppressed, getSubContext, getTag, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toStringgetChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenpublic FirstOfMatcher(Rule[] subRules)
public boolean match(MatcherContext context)
Matchercontext - the MatcherContextpublic <R> R accept(MatcherVisitor<R> visitor)
Matchervisitor - the visitor