Package proguard.util
Class MatchedStringFunction
- java.lang.Object
-
- proguard.util.MatchedStringFunction
-
- All Implemented Interfaces:
StringFunction
public class MatchedStringFunction extends java.lang.Object implements StringFunction
ThisStringFunction
returns the most recently matched string of a givenVariableStringMatcher
.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description MatchedStringFunction(VariableStringMatcher variableStringMatcher)
Creates a new MatchedStringFunction with the given variable string matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
transform(java.lang.String string)
Transforms the given string into a new string.
-
-
-
Constructor Detail
-
MatchedStringFunction
public MatchedStringFunction(VariableStringMatcher variableStringMatcher)
Creates a new MatchedStringFunction with the given variable string matcher.
-
-
Method Detail
-
transform
public java.lang.String transform(java.lang.String string)
Description copied from interface:StringFunction
Transforms the given string into a new string.- Specified by:
transform
in interfaceStringFunction
-
-