|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.units4j.dependency.DependencyAnalyzer
public final class DependencyAnalyzer
Analyzes package dependencies.
| Constructor Summary | |
|---|---|
DependencyAnalyzer(Dependencies dependencies)
Constructor with dependency definition. |
|
DependencyAnalyzer(java.io.File dependenciesFile)
Constructor with XML file. |
|
| Method Summary | |
|---|---|
void |
analyze(java.io.File classesDir)
Analyze the dependencies for all classes in the directory and it's sub directories. |
java.util.List<DependencyError> |
getDependencyErrors()
Returns the list of dependency errors from last call to analyze(File). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependencyAnalyzer(java.io.File dependenciesFile)
throws InvalidDependenciesDefinitionException
dependenciesFile - XML file with allowed or forbidden dependencies - Cannot be
null.
InvalidDependenciesDefinitionException - Formal correct (XML) but invalid dependency definition.
public DependencyAnalyzer(Dependencies dependencies)
throws InvalidDependenciesDefinitionException
dependencies - Definition of allowed or forbidden dependencies - Cannot be
null.
InvalidDependenciesDefinitionException - Formal correct (XML) but invalid dependency definition.| Method Detail |
|---|
public final void analyze(java.io.File classesDir)
throws java.io.IOException
classesDir - Directory where the "*.class" files are located (something
like "bin" or "classes").
java.io.IOException - Error reading the classes.public final java.util.List<DependencyError> getDependencyErrors()
analyze(File).
null but may be empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||