org.pf.tools.cda.core.dependency.path
Class ClassDependencyPathAnalyzer

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.path.ClassDependencyPathAnalyzer

public class ClassDependencyPathAnalyzer
extends java.lang.Object

This analyzer is able to track all the dependency routes from a specific class to another class that depends on it.

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
ClassDependencyPathAnalyzer(DependencyClassNode from)
          Initialize the new instance with the class code to start from.
 
Method Summary
 ClassDependencyPathsData findPathsTo(ClassInformation classInfo)
          Looks up recursivly all dependency chains that lead from the analyzer's underlying class to the given class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDependencyPathAnalyzer

public ClassDependencyPathAnalyzer(DependencyClassNode from)
Initialize the new instance with the class code to start from.

Method Detail

findPathsTo

public ClassDependencyPathsData findPathsTo(ClassInformation classInfo)
Looks up recursivly all dependency chains that lead from the analyzer's underlying class to the given class. Returns an object that holds all the found paths. If none was found the container's list will be empty. The elements in the list are of the type ClassDependencyPath.