Package proguard.util
Class TransformedStringMatcher
- java.lang.Object
-
- proguard.util.StringMatcher
-
- proguard.util.TransformedStringMatcher
-
public class TransformedStringMatcher extends StringMatcher
This StringMatcher delegates its tests to another given StringMatcher, with strings that have been transformed with a given function.
-
-
Constructor Summary
Constructors Constructor Description TransformedStringMatcher(StringFunction stringFunction, StringMatcher stringMatcher)
Creates a new TransformedStringMatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String string)
Checks whether the given string matches.protected boolean
matches(java.lang.String string, int beginOffset, int endOffset)
Checks whether the given substring matches.-
Methods inherited from class proguard.util.StringMatcher
prefix
-
-
-
-
Constructor Detail
-
TransformedStringMatcher
public TransformedStringMatcher(StringFunction stringFunction, StringMatcher stringMatcher)
Creates a new TransformedStringMatcher.- Parameters:
stringFunction
- the function to transform strings.stringMatcher
- the string matcher to test the transformed strings.
-
-
Method Detail
-
matches
public boolean matches(java.lang.String string)
Description copied from class:StringMatcher
Checks whether the given string matches.- Overrides:
matches
in classStringMatcher
- Parameters:
string
- the string to match.- Returns:
- a boolean indicating whether the string matches the criterion.
-
matches
protected boolean matches(java.lang.String string, int beginOffset, int endOffset)
Description copied from class:StringMatcher
Checks whether the given substring matches.- Specified by:
matches
in classStringMatcher
- Parameters:
string
- the string to match.beginOffset
- the start offset of the substring (inclusive).endOffset
- the end offset of the substring (exclusive).- Returns:
- a boolean indicating whether the substring matches the criterion.
-
-