proguard.util
Class ClassNameParser
java.lang.Object
proguard.util.ClassNameParser
- All Implemented Interfaces:
- StringParser
public class ClassNameParser
- extends java.lang.Object
- implements StringParser
This 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), and
'L///;' for any number of internal types (class names and primitive
types).
|
Method Summary |
static void |
main(java.lang.String[] args)
A main method for testing class 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 |
ClassNameParser
public ClassNameParser()
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 class name matching.