|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.cobertura.instrument.ClassPattern
public class ClassPattern
This class represents a collection of regular expressions that will be used to see if a classname matches them. Regular expressions are specified by calling add methods. If no add methods are called, this class will match any classname.
| Field Summary | |
|---|---|
private java.util.Collection |
excludeClassesRegexes
|
private java.util.Collection |
includeClassesRegexes
|
private static java.lang.String |
WEBINF_CLASSES
|
| Constructor Summary | |
|---|---|
ClassPattern()
|
|
| Method Summary | |
|---|---|
(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Collection includeClassesRegexes
private java.util.Collection excludeClassesRegexes
private static final java.lang.String WEBINF_CLASSES
| Constructor Detail |
|---|
public ClassPattern()
| Method Detail |
|---|
boolean isSpecified()
boolean matches(java.lang.String filename)
filename - Either a full classname or a full class filename
private 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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||