程序包 proguard.util

类 FileNameParser

java.lang.Object
proguard.util.FileNameParser
所有已实现的接口:
StringParser

public class FileNameParser extends Object implements StringParser
This StringParser can create StringMatcher instances for regular expressions matching file names. The regular expressions can contain the following wildcards: '?' for a single regular file name character, '*' for any number of regular file name characters, and '**' for any number of regular file name characters or directory separator characters (always including '/').
  • 构造器详细资料

    • FileNameParser

      public FileNameParser()
      Creates a new FileNameParser.
    • FileNameParser

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

    • parse

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

      public static void main(String[] args)
      A main method for testing file name matching.