public class FirstOfStringsMatcher extends FirstOfMatcher
Modifier and Type | Field and Description |
---|---|
char[][] |
strings |
Constructor and Description |
---|
FirstOfStringsMatcher(Rule[] subRules,
char[][] strings) |
Modifier and Type | Method and Description |
---|---|
T |
defaultLabel(String defaultLabel) |
String |
getLabel() |
boolean |
hasCustomLabel() |
boolean |
match(MatcherContext context)
Tries a match on the given MatcherContext.
|
accept
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 FirstOfStringsMatcher(Rule[] subRules, char[][] strings)
public boolean match(MatcherContext context)
Matcher
match
in interface Matcher
match
in class FirstOfMatcher
context
- the MatcherContextpublic 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 © 2021. All rights reserved.