org.apache.tools.ant.taskdefs.optional.sitraka

Class ReportFilters

public class ReportFilters extends Object

Filters information from coverage, somewhat similar to a FileSet.
Nested Class Summary
static classReportFilters.Exclude
concrete exclude class
abstract static classReportFilters.FilterElement
default abstract filter element class
static classReportFilters.Include
concrete include class
Field Summary
protected Vectorfilters
user defined filters
protected Vectormatchers
cached matcher for each filter
Constructor Summary
ReportFilters()
Method Summary
booleanaccept(String methodname)
Check whether a given <classname><method>() is accepted by the list of filters or not.
voidaddExclude(ReportFilters.Exclude excl)
voidaddInclude(ReportFilters.Include incl)
protected voidcreateMatchers()
should be called only once to cache matchers
intsize()

Field Detail

filters

protected Vector filters
user defined filters

matchers

protected Vector matchers
cached matcher for each filter

Constructor Detail

ReportFilters

public ReportFilters()

Method Detail

accept

public boolean accept(String methodname)
Check whether a given <classname><method>() is accepted by the list of filters or not.

Parameters: methodname the full method name in the format <classname><method>()

addExclude

public void addExclude(ReportFilters.Exclude excl)

addInclude

public void addInclude(ReportFilters.Include incl)

createMatchers

protected void createMatchers()
should be called only once to cache matchers

size

public int size()
Copyright