public final class TestNotMatcher extends CustomDefaultLabelMatcher<TestNotMatcher>
Matcher
not actually matching any input but rather trying its submatcher against the current input
position. Succeeds if the submatcher would fail.Constructor and Description |
---|
TestNotMatcher(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, hasCustomLabel
getSubContext, label, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public TestNotMatcher(Rule subRule)
public MatcherType getType()
Matcher
MatcherType
public <V> boolean match(MatcherContext<V> context)
Matcher
context
- the MatcherContext