Package proguard.util
Class ClassNameParser
java.lang.Object
proguard.util.ClassNameParser
- All Implemented Interfaces:
StringParser
This ' for a reference to an earlier wildcard (n = 1, 2, ...)
StringParser can create StringMatcher instances for regular expressions
matching internal class names (or descriptors containing class names). The regular expressions
can contain the following wildcards: '%' for a single internal primitive type character (V, Z, B,
C, S, I, F, J, or D), '?' for a single regular class name character, '*' for any number of
regular class name characters, '**' for any number of regular class name characters or package
separator characters ('/'), 'L***;' for a single internal type (class name or primitive type,
array or non-array), 'L///;' for any number of internal types (class names and primitive types),
and '-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ClassNameParser.ClassNameParser(WildcardManager wildcardManager) Creates a new ClassNameParser that supports references to earlier wildcards. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidA main method for testing class name matching.Creates a StringMatcher for the given regular expression.
-
Constructor Details
-
ClassNameParser
public ClassNameParser()Creates a new ClassNameParser. -
ClassNameParser
Creates a new ClassNameParser 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 class name matching.
-