public class SequenceMatcher extends AbstractMatcher
Matcher that executes all of its submatchers in sequence and only succeeds if all submatchers succeed.| Constructor and Description |
|---|
SequenceMatcher(Rule[] subRules) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor.
|
T |
defaultLabel(java.lang.String defaultLabel) |
java.lang.String |
getLabel() |
boolean |
hasCustomLabel() |
boolean |
match(MatcherContext context)
Tries a match on the given MatcherContext.
|
areMismatchesMemoed, areSubnodesSuppressed, getSubContext, getTag, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toStringgetChildrenequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenpublic SequenceMatcher(Rule[] subRules)
public boolean match(MatcherContext context)
Matchercontext - the MatcherContextpublic <R> R accept(MatcherVisitor<R> visitor)
Matchervisitor - the visitorpublic java.lang.String getLabel()
getLabel in interface MatchergetLabel in class AbstractMatcherpublic boolean hasCustomLabel()
hasCustomLabel in interface MatcherhasCustomLabel in class AbstractMatcherpublic T defaultLabel(java.lang.String defaultLabel)