java.lang.Object | +--jdepend.framework.PackageFilter
Constructs a PackageFilter instance containing the filters specified in the jdepend.properties file, if it exists. |
PackageFilter(java.io.File f) Constructs a PackageFilter instance containing the filters contained in the specified file. |
PackageFilter(java.util.Collection packageNames) Constructs a PackageFilter instance with the specified collection of package names to filter. |
boolean | accept(java.lang.String packageName) Indicates whether the specified package name passes this package filter. |
void | addPackage(java.lang.String packageName) |
void | addPackages(java.util.Collection packageNames) |
java.util.Collection | Returns the collection of filtered package names. |
public PackageFilter()
PackageFilter
instance
containing the filters specified in the
jdepend.properties
file, if it exists.
public PackageFilter(java.io.File f)
PackageFilter
instance
containing the filters contained in the specified
file.
public PackageFilter(java.util.Collection packageNames)
PackageFilter
instance
with the specified collection of package names
to filter.
public boolean accept(java.lang.String packageName)
public void addPackage(java.lang.String packageName)
public void addPackages(java.util.Collection packageNames)
public Collection getFilters()
PackageFilter
class is used to filter imported package names. The default filter contains any packages declared in thejdepend.properties
file, if such a file exists either in the user's home directory or somewhere in the classpath.