|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jorion.jdepend.PackageFilter
public class 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.
| Constructor Summary | |
|---|---|
PackageFilter()
Constructs a PackageFilter instance containing the filters specified in the
jdepend.properties file, if it exists. |
|
PackageFilter(java.util.Collection<java.lang.String> packageNames)
Constructs a PackageFilter instance with the specified collection of package names to filter. |
|
PackageFilter(java.io.File f)
Constructs a PackageFilter instance containing the filters contained in the specified file. |
|
| Method Summary | |
|---|---|
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<java.lang.String> packageNames)
|
java.util.Collection<java.lang.String> |
getFilters()
Returns the collection of filtered package names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.
f - Property file.public PackageFilter(java.util.Collection<java.lang.String> packageNames)
PackageFilter instance with the specified collection of package names to filter.
packageNames - Package names to filter.| Method Detail |
|---|
public java.util.Collection<java.lang.String> getFilters()
public boolean accept(java.lang.String packageName)
packageName - Package name.
true if the package name should be included; false otherwise.public void addPackages(java.util.Collection<java.lang.String> packageNames)
packageNames - The package collection to add.public void addPackage(java.lang.String packageName)
packageName - The package to add.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||