public class ClassNameParser extends java.lang.Object implements StringParser
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 and Description |
---|
ClassNameParser()
Creates a new ClassNameParser.
|
ClassNameParser(WildcardManager wildcardManager)
Creates a new ClassNameParser that supports references to earlier wildcards.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ClassNameParser()
public ClassNameParser(WildcardManager wildcardManager)
wildcardManager
- an optional scope for StringMatcher instances that match wildcards.public StringMatcher parse(java.lang.String regularExpression)
StringParser
parse
in interface StringParser
public static void main(java.lang.String[] args)