proguard.util
Class SettableMatcher

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

public class SettableMatcher
extends java.lang.Object
implements StringMatcher

This StringMatcher delegates to a another StringMatcher that can be set after this StringMatcher has been constructed.


Constructor Summary
SettableMatcher()
           
 
Method Summary
 boolean matches(java.lang.String string)
          Checks whether the given string matches.
 void setMatcher(StringMatcher matcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettableMatcher

public SettableMatcher()
Method Detail

setMatcher

public void setMatcher(StringMatcher matcher)

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.