Package proguard.util
Class CollectionParser
java.lang.Object
proguard.util.CollectionParser
- All Implemented Interfaces:
StringParser
This
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 Summary
ConstructorsConstructorDescriptionCreates a new ListParser that parses individual elements in the comma-separated list with the given StringParser. -
Method Summary
Modifier and TypeMethodDescriptionCreates a StringMatcher for the given regular expression.Creates a StringMatcher for the given regular expression, which can be a list of optionally negated simple entries.
-
Constructor Details
-
CollectionParser
public CollectionParser()Creates a new ListParser that parses individual elements in the comma-separated list with the given StringParser.
-
-
Method Details
-
parse
Description copied from interface:StringParserCreates a StringMatcher for the given regular expression.- Specified by:
parsein interfaceStringParser
-
parse
Creates a StringMatcher for the given regular expression, which can be a list of optionally negated simple entries.An empty list results in a StringMatcher that matches any string.
-