程序包 proguard.util
类 ListParser
java.lang.Object
proguard.util.ListParser
- 所有已实现的接口:
StringParser
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.
For example, "*.xml,*.jpg" matches all strings with the given extensions; "!dummy" matches all strings except "dummy"; "!dummy.xml,*.xml" matches all strings with .xml, except "dummy.xml"; "special.xml,!*.xml" matches "special.xml" and all other non-.xml strings.
-
构造器概要
构造器构造器说明ListParser(StringParser stringParser) Creates a new ListParser that parses individual elements in the comma-separated list with the given StringParser. -
方法概要
修饰符和类型方法说明static voidA main method for testing name matching.Creates 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.
-
构造器详细资料
-
ListParser
Creates a new ListParser that parses individual elements in the comma-separated list with the given StringParser.
-
-
方法详细资料
-
parse
从接口复制的说明:StringParserCreates a StringMatcher for the given regular expression.- 指定者:
parse在接口中StringParser
-
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.
-
main
A main method for testing name matching.
-