程序包 proguard.util

类 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.
  • 构造器详细资料

    • TransformedStringMatcher

      public TransformedStringMatcher(StringFunction stringFunction, StringMatcher stringMatcher)
      Creates a new TransformedStringMatcher.
      参数:
      stringFunction - the function to transform strings.
      stringMatcher - the string matcher to test the transformed strings.
  • 方法详细资料

    • matches

      public boolean matches(String string)
      从类复制的说明: StringMatcher
      Checks whether the given string matches.
      覆盖:
      matches 在类中 StringMatcher
      参数:
      string - the string to match.
      返回:
      a boolean indicating whether the string matches the criterion.
    • matches

      protected boolean matches(String string, int beginOffset, int endOffset)
      从类复制的说明: StringMatcher
      Checks whether the given substring matches.
      指定者:
      matches 在类中 StringMatcher
      参数:
      string - the string to match.
      beginOffset - the start offset of the substring (inclusive).
      endOffset - the end offset of the substring (exclusive).
      返回:
      a boolean indicating whether the substring matches the criterion.