程序包 proguard.util

类 NameParser

  • 所有已实现的接口:
    StringParser

    public class NameParser
    extends java.lang.Object
    implements StringParser
    This StringParser can create StringMatcher instances for regular expressions matching names. The regular expressions are interpreted as comma-separated lists of names, optionally prefixed with '!' negators. If a name with a negator matches, a negative match is returned, without considering any subsequent entries in the list. The regular expressions can contain the following wildcards: '?' for a single character, '*' for any number of characters, and '' for a reference to an earlier wildcard (n = 1, 2, ...)
    • 构造器概要

      构造器 
      构造器 说明
      NameParser()
      Creates a new NameParser.
      NameParser​(WildcardManager wildcardManager)
      Creates a new NameParser that supports references to earlier wildcards.
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static void main​(java.lang.String[] args)
      A main method for testing 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
    • 构造器详细资料

      • NameParser

        public NameParser()
        Creates a new NameParser.
      • NameParser

        public NameParser​(WildcardManager wildcardManager)
        Creates a new NameParser 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 name matching.