|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.util.ListParser
public class ListParser
This StringParser can create StringMatcher instances for regular expressions. The regular expressions are either presented as a list, or they are interpreted as comma-separated lists, optionally prefixed with '!' negators. If an entry with a negator matches, a negative match is returned, without considering any subsequent entries in the list. The creation of StringMatcher instances for the entries is delegated to the given StringParser.
| Constructor Summary | |
|---|---|
ListParser(StringParser stringParser)
Creates a new ListParser that parses individual elements in the comma-separated list with the given StringParser. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
A main method for testing name matching. |
StringMatcher |
parse(java.util.List 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListParser(StringParser stringParser)
| Method Detail |
|---|
public StringMatcher parse(java.lang.String regularExpression)
StringParser
parse in interface StringParserpublic StringMatcher parse(java.util.List regularExpressions)
An empty list results in a StringMatcher that matches any string.
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||