net.sourceforge.cobertura.instrument
public class ClassPattern extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Collection |
excludeClassesRegexes |
private java.util.Collection |
includeClassesRegexes |
private static java.lang.String |
WEBINF_CLASSES |
Constructor and Description |
---|
ClassPattern() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addExcludeClassesRegex(java.lang.String regex)
Add a regex to the list of class regexes to exclude.
|
(package private) void |
addIncludeClassesRegex(java.lang.String regex)
Add a regex to the list of class regexes to include.
|
(package private) boolean |
isSpecified()
Returns true if any regular expressions have been specified by calling the
add methods.
|
(package private) boolean |
matches(java.lang.String filename)
Check to see if a class matches this ClassPattern
If a pattern has not been specified, this matches anything.
|
private java.lang.String |
removeAnyWebInfClassesString(java.lang.String filename) |
private java.util.Collection includeClassesRegexes
private java.util.Collection excludeClassesRegexes
private static final java.lang.String WEBINF_CLASSES
public ClassPattern()
boolean isSpecified()
boolean matches(java.lang.String filename)
filename
- Either a full classname or a full class filenameprivate java.lang.String removeAnyWebInfClassesString(java.lang.String filename)
void addIncludeClassesRegex(java.lang.String regex)
regex
- A regular expression to add.void addExcludeClassesRegex(java.lang.String regex)
regex
-