Class CCFilterFactory
java.lang.Object
com.ibm.debug.pdt.codecoverage.core.results.filters.CCFilterFactory
This class generates filters
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringappendFilterSuffixToResultName(String resultname) Appends a unique string to the result name to indicate the result is filteredstatic final ICCFiltercreateLineContentFilter(String filterString) Creates a line content filter based on a filter stringstatic final ICCFiltercreateLineContentFilter(String fileName, String filterString) Creates a line content filter based on a file name and filter stringstatic final ICCFiltercreateRegexLineContentFilter(String filterString) Creates a line content filter that specifies a regular expressionstatic final ICCFiltercreateRegexLineContentFilter(String fileName, String filterString) Creates a line content filter based on a file name and a regular expression
-
Constructor Details
-
CCFilterFactory
public CCFilterFactory()
-
-
Method Details
-
createLineContentFilter
Creates a line content filter based on a filter string- Parameters:
filterString- the string that a code coverage executable line MUST contain- Returns:
- a filter that can be used
-
createLineContentFilter
Creates a line content filter based on a file name and filter string- Parameters:
fileName- the name of the file to include in the filtered report. All other files will be excluded.filterString- the string that a code coverage executable line MUST contain- Returns:
- a filter that can be used with the filtered code coverage modifier.
- See Also:
-
createRegexLineContentFilter
Creates a line content filter that specifies a regular expression- Parameters:
filterString- a regular expression that a code coverage executable line MUST contain- Returns:
- a filter that can be used
-
createRegexLineContentFilter
Creates a line content filter based on a file name and a regular expression- Parameters:
fileName- the name of the file to include in the filtered report. All other files will be excluded.filterString- a regular expression that a code coverage executable line MUST contain- Returns:
- a filter that can be used with the filtered code coverage modifier.
- See Also:
-
appendFilterSuffixToResultName
Appends a unique string to the result name to indicate the result is filtered- Parameters:
resultname- the result name- Returns:
- the result name with the appropriate filter tag
-