Package proguard.util
Class FileNameParser
java.lang.Object
proguard.util.FileNameParser
- All Implemented Interfaces:
StringParser
This
StringParser can create StringMatcher instances for regular expressions
matching file names. The regular expressions can contain the following wildcards: '?' for a
single regular file name character, '*' for any number of regular file name characters, and '**'
for any number of regular file name characters or directory separator characters (always
including '/').-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new FileNameParser.FileNameParser(WildcardManager wildcardManager) Creates a new FileNameParser that supports references to earlier wildcards. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidA main method for testing file name matching.Creates a StringMatcher for the given regular expression.
-
Constructor Details
-
FileNameParser
public FileNameParser()Creates a new FileNameParser. -
FileNameParser
Creates a new FileNameParser 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 file name matching.
-