Package proguard.util
Class NameParser
java.lang.Object
proguard.util.NameParser
- All Implemented Interfaces:
StringParser
This ' for a reference to an earlier wildcard (n = 1, 2, ...)
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. The regular expressions can
contain the following wildcards: '?' for a single character, '*' for any number of characters,
and '-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new NameParser.NameParser(WildcardManager wildcardManager) Creates a new NameParser that supports references to earlier wildcards. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidA main method for testing name matching.Creates a StringMatcher for the given regular expression.
-
Constructor Details
-
NameParser
public NameParser()Creates a new NameParser. -
NameParser
Creates a new NameParser that supports references to earlier wildcards.- Parameters:
wildcardManager- an optional scope for StringMatcher instances that match wildcards.
-
-
Method Details
-
parse
Description copied from interface:StringParserCreates a StringMatcher for the given regular expression.- Specified by:
parsein interfaceStringParser
-
main
A main method for testing name matching.
-