程序包 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.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • 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​(java.lang.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​(java.lang.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.