ProGuard

proguard.util
Class ExtensionMatcher

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

public class ExtensionMatcher
extends Object
implements StringMatcher

This StringMatcher tests whether strings end in a given extension.


Constructor Summary
ExtensionMatcher(String extension)
          Creates a new StringMatcher.
 
Method Summary
 boolean matches(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

ExtensionMatcher

public ExtensionMatcher(String extension)
Creates a new StringMatcher.

Parameters:
extension - the extension against which strings will be matched.
Method Detail

matches

public boolean matches(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.

ProGuard