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