Package jdepend.framework
Class PackageFilter
java.lang.Object
jdepend.framework.PackageFilter
The
PackageFilter class is used to filter imported
package names.
The default filter contains any packages declared in the
jdepend.properties file, if such a file exists
either in the user's home directory or somewhere in the classpath.
- Author:
- Mike Clark, Clarkware Consulting, Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aPackageFilterinstance containing the filters specified in thejdepend.propertiesfile, if it exists.Constructs aPackageFilterinstance containing the filters contained in the specified file.PackageFilter(Collection packageNames) Constructs aPackageFilterinstance with the specified collection of package names to filter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the specified package name passes this package filter.voidaddPackage(String packageName) voidaddPackages(Collection packageNames) Returns the collection of filtered package names.
-
Constructor Details
-
PackageFilter
public PackageFilter()Constructs aPackageFilterinstance containing the filters specified in thejdepend.propertiesfile, if it exists. -
PackageFilter
Constructs aPackageFilterinstance containing the filters contained in the specified file.- Parameters:
f- Property file.
-
PackageFilter
Constructs aPackageFilterinstance with the specified collection of package names to filter.- Parameters:
packageNames- Package names to filter.
-
-
Method Details
-
getFilters
Returns the collection of filtered package names.- Returns:
- Filtered package names.
-
accept
Indicates whether the specified package name passes this package filter.- Parameters:
packageName- Package name.- Returns:
trueif the package name should be included;falseotherwise.
-
addPackages
-
addPackage
-