Modifier and Type | Field and Description |
---|---|
Matcher |
subMatcher |
Constructor and Description |
---|
ZeroOrMoreMatcher(Rule subRule) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor.
|
T |
defaultLabel(String defaultLabel) |
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, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public final Matcher subMatcher
public ZeroOrMoreMatcher(Rule subRule)
public boolean match(MatcherContext context)
Matcher
context
- the MatcherContextpublic <R> R accept(MatcherVisitor<R> visitor)
Matcher
visitor
- the visitorpublic String getLabel()
getLabel
in interface Matcher
getLabel
in class AbstractMatcher
public boolean hasCustomLabel()
hasCustomLabel
in interface Matcher
hasCustomLabel
in class AbstractMatcher
public T defaultLabel(String defaultLabel)
Copyright © 2024. All rights reserved.