public class PackageFilter
extends java.lang.Object
PackageFilter class is used to
filter imported package names.
The default filter contains the java.* and
javax.* packages, as well as any packages
declared in the jdepend.properties file.
The jdepend.properties file can be located
in the user's home directory or the classpath.
| Constructor and Description |
|---|
PackageFilter()
Constructs a
PackageFilter instance. |
PackageFilter(java.util.Collection names)
Constructs a
PackageFilter instance
with the specified collection of package names
to filter. |
PackageFilter(java.io.File f)
Constructs a
PackageFilter instance
with the specified filter file. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String name)
Indicates whether the specified package name should be
included in a parsed Java class.
|
protected void |
addFilteredPackageNames() |
void |
addPackage(java.lang.String name)
Adds the specified package name to the collection
of packages to be filtered.
|
protected java.io.File |
getDefaultFilterFile() |
protected java.io.File |
getFilterFile() |
protected java.util.Properties |
loadProperties() |
protected void |
setFilterFile(java.io.File f) |
public PackageFilter()
PackageFilter instance.names - Package names to filter.public PackageFilter(java.util.Collection names)
PackageFilter instance
with the specified collection of package names
to filter.names - Package names to filter.public PackageFilter(java.io.File f)
PackageFilter instance
with the specified filter file.f - Filter file.public boolean accept(java.lang.String name)
name - Package name.true if the package name should
be included; false otherwise.public void addPackage(java.lang.String name)
name - Package name.protected void addFilteredPackageNames()
protected void setFilterFile(java.io.File f)
protected java.io.File getFilterFile()
protected java.io.File getDefaultFilterFile()
protected java.util.Properties loadProperties()
Copyright ? 1999-2002 Clarkware Consulting, Inc. All Rights Reserved.