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

Class ReportFilters


public class ReportFilters
extends java.lang.Object

Filters information from coverage, somewhat similar to a FileSet.

Nested Class Summary

static class
ReportFilters.Exclude
concrete exclude class
static class
ReportFilters.FilterElement
default abstract filter element class
static class
ReportFilters.Include
concrete include class

Field Summary

protected Vector
filters
user defined filters
protected Vector
matchers
cached matcher for each filter

Constructor Summary

ReportFilters()

Method Summary

boolean
accept(String methodname)
Check whether a given <classname><method>() is accepted by the list of filters or not.
void
addExclude(ReportFilters.Exclude excl)
void
addInclude(ReportFilters.Include incl)
protected void
createMatchers()
should be called only once to cache matchers
int
size()

Field Details

filters

protected Vector filters
user defined filters

matchers

protected Vector matchers
cached matcher for each filter

Constructor Details

ReportFilters

public ReportFilters()

Method Details

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 B) 2000-2006 Apache Software Foundation. All Rights Reserved.