|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdepend.framework.PackageFilter
public class PackageFilter
The 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |