程序包 proguard.util
类 ListFunctionParser
- java.lang.Object
-
- proguard.util.ListFunctionParser
-
- 所有已实现的接口:
StringFunctionParser
public class ListFunctionParser extends java.lang.Object implements StringFunctionParser
ThisStringFunctionParsercan createStringFunctioninstances for regular expressions. The created function returns a String, or null if it doesn't match. 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 ofStringFunctioninstances for the entries is delegated to the givenStringFunctionParser.
-
-
构造器概要
构造器 构造器 说明 ListFunctionParser(StringFunctionParser stringFunctionParser)Creates a new ListFunctionParser that parses individual elements in the comma-separated list with the given StringFunctionParser.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static voidmain(java.lang.String[] args)A main method for testing name matching and replacement.StringFunctionparse(java.lang.String regularExpression)Creates a StringFunction for the given regular expression.StringFunctionparse(java.util.List regularExpressions)Creates a StringFunction for the given regular expression, which can be a list of optionally negated simple entries.
-
-
-
构造器详细资料
-
ListFunctionParser
public ListFunctionParser(StringFunctionParser stringFunctionParser)
Creates a new ListFunctionParser that parses individual elements in the comma-separated list with the given StringFunctionParser.
-
-
方法详细资料
-
parse
public StringFunction parse(java.lang.String regularExpression)
从接口复制的说明:StringFunctionParserCreates a StringFunction for the given regular expression.- 指定者:
parse在接口中StringFunctionParser
-
parse
public StringFunction parse(java.util.List regularExpressions)
Creates a StringFunction for the given regular expression, which can be a list of optionally negated simple entries.An empty list results in a StringFunction that matches any string.
-
main
public static void main(java.lang.String[] args)
A main method for testing name matching and replacement.
-
-