Package proguard.util
Class FileNameParser
- java.lang.Object
-
- proguard.util.FileNameParser
-
- All Implemented Interfaces:
StringParser
public class FileNameParser extends java.lang.Object implements StringParser
ThisStringParser
can createStringMatcher
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
Constructors Constructor Description FileNameParser()
Creates a new FileNameParser.FileNameParser(WildcardManager wildcardManager)
Creates a new FileNameParser that supports references to earlier wildcards.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
A main method for testing file name matching.StringMatcher
parse(java.lang.String regularExpression)
Creates a StringMatcher for the given regular expression.
-
-
-
Constructor Detail
-
FileNameParser
public FileNameParser()
Creates a new FileNameParser.
-
FileNameParser
public FileNameParser(WildcardManager wildcardManager)
Creates a new FileNameParser that supports references to earlier wildcards.- Parameters:
wildcardManager
- an optional scope for StringMatcher instances that match wildcards.
-
-
Method Detail
-
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 interfaceStringParser
-
main
public static void main(java.lang.String[] args)
A main method for testing file name matching.
-
-