proguard.util
Class FixedStringMatcher

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

public class FixedStringMatcher
extends java.lang.Object
implements StringMatcher

This StringMatcher tests whether strings start with a given fixed string and then match another optional given StringMatcher.


Constructor Summary
FixedStringMatcher(java.lang.String fixedString)
           
FixedStringMatcher(java.lang.String fixedString, StringMatcher nextMatcher)
           
 
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

FixedStringMatcher

public FixedStringMatcher(java.lang.String fixedString)

FixedStringMatcher

public FixedStringMatcher(java.lang.String fixedString,
                          StringMatcher nextMatcher)
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.