Package proguard.util
Class CollectionParser
- java.lang.Object
-
- proguard.util.CollectionParser
-
- All Implemented Interfaces:
StringParser
public class CollectionParser extends java.lang.Object implements StringParser
ThisStringParser
can create aCollectionMatcher
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 theStringParser
.
-
-
Constructor Summary
Constructors Constructor Description CollectionParser()
Creates a new ListParser that parses individual elements in the comma-separated list with the given StringParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMatcher
parse(java.lang.String regularExpression)
Creates a StringMatcher for the given regular expression.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.
-
-
-
Method Detail
-
parse
public StringMatcher parse(java.lang.String regularExpression)
Description copied from interface:StringParser
Creates a StringMatcher for the given regular expression.- Specified by:
parse
in interfaceStringParser
-
parse
public 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.An empty list results in a StringMatcher that matches any string.
-
-