ProGuard

proguard.util
Class FileNameMatcher

java.lang.Object
  extended byproguard.util.BasicMatcher
      extended byproguard.util.FileNameMatcher
All Implemented Interfaces:
StringMatcher

public class FileNameMatcher
extends BasicMatcher

This StringMatcher tests whether file names match a given regular expression. Supported wildcards are '?' 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 '/').


Constructor Summary
FileNameMatcher(String regularExpression)
          Creates a new FileNameMatcher.
 
Method Summary
static void main(String[] args)
          A main method for testing file name matching.
 
Methods inherited from class proguard.util.BasicMatcher
matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameMatcher

public FileNameMatcher(String regularExpression)
Creates a new FileNameMatcher.

Parameters:
regularExpression - the regular expression against which strings will be matched.
Method Detail

main

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


ProGuard