ProGuard

proguard.util
Class FileNameListMatcher

java.lang.Object
  extended byproguard.util.BasicListMatcher
      extended byproguard.util.FileNameListMatcher
All Implemented Interfaces:
StringMatcher

public class FileNameListMatcher
extends BasicListMatcher

This StringMatcher tests whether file names match any entry in a given list of regular expressions.

See Also:
BasicListMatcher, FileNameMatcher

Constructor Summary
FileNameListMatcher(List regularExpressionList)
          Creates a new FileNameListMatcher.
FileNameListMatcher(String regularExpression)
          Creates a new FileNameListMatcher.
 
Method Summary
protected  StringMatcher createBasicMatcher(String regularExpression)
          Creates a new StringMatcher for the given regular expression.
static void main(String[] args)
          A main method for testing file name matching.
 
Methods inherited from class proguard.util.BasicListMatcher
matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameListMatcher

public FileNameListMatcher(String regularExpression)
Creates a new FileNameListMatcher.

Parameters:
regularExpression - the comma-separated list of regular expressions against which strings will be matched.

FileNameListMatcher

public FileNameListMatcher(List regularExpressionList)
Creates a new FileNameListMatcher.

Parameters:
regularExpressionList - the list of regular expressions against which strings will be matched.
Method Detail

createBasicMatcher

protected StringMatcher createBasicMatcher(String regularExpression)
Description copied from class: BasicListMatcher
Creates a new StringMatcher for the given regular expression.

Overrides:
createBasicMatcher in class BasicListMatcher

main

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


ProGuard