proguard.util
Class NameParser
java.lang.Object
proguard.util.NameParser
- All Implemented Interfaces:
- StringParser
public class NameParser
- extends java.lang.Object
- implements StringParser
This StringParser can create StringMatcher instances for regular expressions
matching names. The regular expressions are interpreted as comma-separated
lists of names, optionally prefixed with '!' negators.
If a name with a negator matches, a negative match is returned, without
considering any subsequent entries in the list.
Names can contain the following wildcards:
'?' for a single character, and
'*' for any number of characters.
|
Method Summary |
static void |
main(java.lang.String[] args)
A main method for testing name matching. |
StringMatcher |
parse(java.lang.String regularExpression)
Creates a StringMatcher for the given regular expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameParser
public NameParser()
parse
public StringMatcher parse(java.lang.String regularExpression)
- Description copied from interface:
StringParser
- Creates a StringMatcher for the given regular expression.
- Specified by:
parse in interface StringParser
main
public static void main(java.lang.String[] args)
- A main method for testing name matching.