public class CollectionParser extends java.lang.Object implements StringParser
StringParser can create a CollectionMatcher instance for regular expressions.
The regular expressions are either presented as a list, or they are interpreted as comma-separated lists.
These lists should contain strings that need to be literally matched meaning that wildcards, negations,... are
not interpreted by the StringParser.| Constructor and Description |
|---|
CollectionParser()
Creates a new ListParser that parses individual elements in the
comma-separated list with the given StringParser.
|
| Modifier and Type | Method and Description |
|---|---|
StringMatcher |
parse(java.util.List<java.lang.String> regularExpressions)
Creates a StringMatcher for the given regular expression, which can
be a list of optionally negated simple entries.
|
StringMatcher |
parse(java.lang.String regularExpression)
Creates a StringMatcher for the given regular expression.
|
public CollectionParser()
public StringMatcher parse(java.lang.String regularExpression)
StringParserparse in interface StringParserpublic StringMatcher parse(java.util.List<java.lang.String> regularExpressions)