public final class TestMatcher extends CustomDefaultLabelMatcher<TestMatcher>
Matcher not actually matching any input but rather trying its submatcher against the current input
position. Succeeds if the submatcher would succeed.| Constructor and Description |
|---|
TestMatcher(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 TestMatcher(Rule subRule)
public MatcherType getType()
MatcherMatcherTypepublic <V> boolean match(MatcherContext<V> context)
Matchercontext - the MatcherContext