程序包 proguard.util

类 ClassNameParser

  • 所有已实现的接口:
    StringParser

    public class ClassNameParser
    extends java.lang.Object
    implements StringParser
    This StringParser can create StringMatcher instances for regular expressions matching internal class names (or descriptors containing class names). The regular expressions can contain the following wildcards: '%' for a single internal primitive type character (V, Z, B, C, S, I, F, J, or D), '?' for a single regular class name character, '*' for any number of regular class name characters, '**' for any number of regular class name characters or package separator characters ('/'), 'L***;' for a single internal type (class name or primitive type, array or non-array), 'L///;' for any number of internal types (class names and primitive types), and '' for a reference to an earlier wildcard (n = 1, 2, ...)
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static void main​(java.lang.String[] args)
      A main method for testing class name matching.
      StringMatcher parse​(java.lang.String regularExpression)
      Creates a StringMatcher for the given regular expression.
      • 从类继承的方法 java.lang.Object

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

      • ClassNameParser

        public ClassNameParser()
        Creates a new ClassNameParser.
      • ClassNameParser

        public ClassNameParser​(WildcardManager wildcardManager)
        Creates a new ClassNameParser that supports references to earlier wildcards.
        参数:
        wildcardManager - an optional scope for StringMatcher instances that match wildcards.
    • 方法详细资料

      • parse

        public StringMatcher parse​(java.lang.String regularExpression)
        从接口复制的说明: StringParser
        Creates a StringMatcher for the given regular expression.
        指定者:
        parse 在接口中 StringParser
      • main

        public static void main​(java.lang.String[] args)
        A main method for testing class name matching.