proguard.util
Class ListMatcher

java.lang.Object
  extended by proguard.util.ListMatcher
All Implemented Interfaces:
StringMatcher

public class ListMatcher
extends java.lang.Object
implements StringMatcher

This StringMatcher tests whether strings match a given list of StringMatcher instances. The instances are considered sequentially. Each instance in the list can optionally be negated, meaning that a match makes the entire remaining match fail.


Constructor Summary
ListMatcher(StringMatcher[] matchers)
           
ListMatcher(StringMatcher[] matchers, boolean[] negate)
           
 
Method Summary
 boolean matches(java.lang.String string)
          Checks whether the given string matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListMatcher

public ListMatcher(StringMatcher[] matchers)

ListMatcher

public ListMatcher(StringMatcher[] matchers,
                   boolean[] negate)
Method Detail

matches

public boolean matches(java.lang.String string)
Description copied from interface: StringMatcher
Checks whether the given string matches.

Specified by:
matches in interface StringMatcher
Parameters:
string - the string to match.
Returns:
a boolean indicating whether the string matches the criterion.