java.lang.Object
com.ibm.debug.pdt.codecoverage.core.results.filters.CCFilterFactory

public class CCFilterFactory extends Object
This class generates filters
Since:
4.0
  • Constructor Details

    • CCFilterFactory

      public CCFilterFactory()
  • Method Details

    • createLineContentFilter

      public static final ICCFilter createLineContentFilter(String filterString)
      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

      public static final ICCFilter createLineContentFilter(String fileName, String filterString)
      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

      public static final ICCFilter createRegexLineContentFilter(String filterString)
      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

      public static final ICCFilter createRegexLineContentFilter(String fileName, String filterString)
      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

      public static final String appendFilterSuffixToResultName(String resultname)
      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