public class FirstOfStringsMatcher extends FirstOfMatcher
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FirstOfStringsMatcher.Record |
Modifier and Type | Field and Description |
---|---|
private FirstOfStringsMatcher.Record |
root |
char[][] |
strings |
Constructor and Description |
---|
FirstOfStringsMatcher(Rule[] subRules,
char[][] strings) |
Modifier and Type | Method and Description |
---|---|
(package private) static FirstOfStringsMatcher.Record |
createRecord(int pos,
char[][] strings) |
boolean |
match(MatcherContext context)
Tries a match on the given MatcherContext.
|
private static void |
verify(char[][] strings) |
accept
defaultLabel, getLabel, hasCustomLabel
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
private final FirstOfStringsMatcher.Record root
public final char[][] strings
public FirstOfStringsMatcher(Rule[] subRules, char[][] strings)
public boolean match(MatcherContext context)
Matcher
match
in interface Matcher
match
in class FirstOfMatcher
context
- the MatcherContextstatic FirstOfStringsMatcher.Record createRecord(int pos, char[][] strings)
private static void verify(char[][] strings)