public class ListParser extends Object implements StringParser
| Constructor and Description |
|---|
ListParser(StringParser stringParser)
Creates a new ListParser that parses individual elements in the
comma-separated list with the given StringParser.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
A main method for testing name matching.
|
StringMatcher |
parse(List regularExpressions)
Creates a StringMatcher for the given regular expression, which can
be a list of optionally negated simple entries.
|
StringMatcher |
parse(String regularExpression)
Creates a StringMatcher for the given regular expression.
|
public ListParser(StringParser stringParser)
public StringMatcher parse(String regularExpression)
StringParserparse in interface StringParserpublic StringMatcher parse(List regularExpressions)
An empty list results in a StringMatcher that matches any string.
public static void main(String[] args)
Copyright © 2015. All Rights Reserved.