Package proguard.util
Class SingleFunctionParser
- java.lang.Object
-
- proguard.util.SingleFunctionParser
-
- All Implemented Interfaces:
StringFunctionParser
public class SingleFunctionParser extends java.lang.Object implements StringFunctionParser
ThisStringFunctionParser
createsStringFunction
instances for regular expressions with optional "->" transformations. It parses the first part with a givenStringParser
and the second part with an optionalWildcardManager
.
-
-
Constructor Summary
Constructors Constructor Description SingleFunctionParser(StringParser stringParser, WildcardManager wildcardManager)
Creates a new SingleFunctionParser.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
A main method for testing name matching and replacement.StringFunction
parse(java.lang.String regularExpression)
Creates a StringFunction for the given regular expression.
-
-
-
Constructor Detail
-
SingleFunctionParser
public SingleFunctionParser(StringParser stringParser, WildcardManager wildcardManager)
Creates a new SingleFunctionParser.
-
-
Method Detail
-
parse
public StringFunction parse(java.lang.String regularExpression)
Description copied from interface:StringFunctionParser
Creates a StringFunction for the given regular expression.- Specified by:
parse
in interfaceStringFunctionParser
-
main
public static void main(java.lang.String[] args)
A main method for testing name matching and replacement.
-
-